Commit 1ca6c2db authored by kostya's avatar kostya

Make SwScaler recognize RGB48 BE/LE colourspaces (not support though).



git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@29316 b3059339-0415-0410-9bf9-f77b7e298cf2
parent d319f20f
...@@ -463,6 +463,10 @@ const char *sws_format_name(enum PixelFormat format) ...@@ -463,6 +463,10 @@ const char *sws_format_name(enum PixelFormat format)
return "rgb4"; return "rgb4";
case PIX_FMT_RGB4_BYTE: case PIX_FMT_RGB4_BYTE:
return "rgb4 byte"; return "rgb4 byte";
case PIX_FMT_RGB48BE:
return "rgb48be";
case PIX_FMT_RGB48LE:
return "rgb48le";
case PIX_FMT_NV12: case PIX_FMT_NV12:
return "nv12"; return "nv12";
case PIX_FMT_NV21: case PIX_FMT_NV21:
......
...@@ -376,6 +376,9 @@ const char *sws_format_name(int format); ...@@ -376,6 +376,9 @@ const char *sws_format_name(int format);
static inline int fmt_depth(int fmt) static inline int fmt_depth(int fmt)
{ {
switch(fmt) { switch(fmt) {
case PIX_FMT_RGB48BE:
case PIX_FMT_RGB48LE:
return 48;
case PIX_FMT_BGRA: case PIX_FMT_BGRA:
case PIX_FMT_ABGR: case PIX_FMT_ABGR:
case PIX_FMT_RGBA: case PIX_FMT_RGBA:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment