changeset 29444:298ee5238e8c

Add IMGFMT_RGB48LE and IMGFMT_RGB48BE.
author cehoyos
date Tue, 11 Aug 2009 17:51:11 +0000
parents c812ae703e3d
children 3e9db1ac8cf1
files libmpcodecs/img_format.c libmpcodecs/img_format.h libmpcodecs/vf_scale.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/img_format.c	Mon Aug 10 10:53:32 2009 +0000
+++ b/libmpcodecs/img_format.c	Tue Aug 11 17:51:11 2009 +0000
@@ -15,6 +15,8 @@
 	case IMGFMT_RGB16: return "RGB 16-bit";
 	case IMGFMT_RGB24: return "RGB 24-bit";
 //	case IMGFMT_RGB32: return "RGB 32-bit";
+	case IMGFMT_RGB48LE: return "RGB 48-bit LE";
+	case IMGFMT_RGB48BE: return "RGB 48-bit BE";
 	case IMGFMT_BGR1: return "BGR 1-bit";
 	case IMGFMT_BGR4: return "BGR 4-bit";
 	case IMGFMT_BG4B: return "BGR 4-bit per byte";
--- a/libmpcodecs/img_format.h	Mon Aug 10 10:53:32 2009 +0000
+++ b/libmpcodecs/img_format.h	Tue Aug 11 17:51:11 2009 +0000
@@ -13,6 +13,8 @@
 #define IMGFMT_RGB16 (IMGFMT_RGB|16)
 #define IMGFMT_RGB24 (IMGFMT_RGB|24)
 #define IMGFMT_RGB32 (IMGFMT_RGB|32)
+#define IMGFMT_RGB48LE (IMGFMT_RGB|48)
+#define IMGFMT_RGB48BE (IMGFMT_RGB|49)
 
 #define IMGFMT_BGR_MASK 0xFFFFFF00
 #define IMGFMT_BGR (('B'<<24)|('G'<<16)|('R'<<8))
--- a/libmpcodecs/vf_scale.c	Mon Aug 10 10:53:32 2009 +0000
+++ b/libmpcodecs/vf_scale.c	Tue Aug 11 17:51:11 2009 +0000
@@ -474,6 +474,8 @@
     case IMGFMT_RGB8:
     case IMGFMT_BG4B:
     case IMGFMT_RG4B:
+    case IMGFMT_RGB48LE:
+    case IMGFMT_RGB48BE:
     {
 	unsigned int best=find_best_out(vf);
 	int flags;