changeset 29274:9f1499cf3a68

Make SwScaler recognize RGB48 BE/LE colourspaces (not support though).
author kostya
date Tue, 19 May 2009 17:26:22 +0000
parents 69304fca8564
children bc48593c663e
files libswscale/swscale.c libswscale/swscale_internal.h
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Tue May 19 08:56:23 2009 +0000
+++ b/libswscale/swscale.c	Tue May 19 17:26:22 2009 +0000
@@ -463,6 +463,10 @@
             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:
--- a/libswscale/swscale_internal.h	Tue May 19 08:56:23 2009 +0000
+++ b/libswscale/swscale_internal.h	Tue May 19 17:26:22 2009 +0000
@@ -376,6 +376,9 @@
 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: