Make SwScaler recognize RGB48 BE/LE colourspaces (not support though).
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 19 May 2009 17:26:22 +0000 (17:26 +0000)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 19 May 2009 17:26:22 +0000 (17:26 +0000)
Originally committed as revision 29316 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale.c
libswscale/swscale_internal.h

index 31e3b83..e3bf0c3 100644 (file)
@@ -463,6 +463,10 @@ const char *sws_format_name(enum PixelFormat format)
             return "rgb4";
         case PIX_FMT_RGB4_BYTE:
             return "rgb4 byte";
+        case PIX_FMT_RGB48BE:
+            return "rgb48be";
+        case PIX_FMT_RGB48LE:
+            return "rgb48le";
         case PIX_FMT_NV12:
             return "nv12";
         case PIX_FMT_NV21:
index d9bbb6c..effbae9 100644 (file)
@@ -376,6 +376,9 @@ const char *sws_format_name(int format);
 static inline int fmt_depth(int fmt)
 {
     switch(fmt) {
+        case PIX_FMT_RGB48BE:
+        case PIX_FMT_RGB48LE:
+            return 48;
         case PIX_FMT_BGRA:
         case PIX_FMT_ABGR:
         case PIX_FMT_RGBA: