[FFmpeg-cvslog] r23074 - trunk/libavcodec/raw.c

stefano subversion
Mon May 10 01:04:03 CEST 2010


Author: stefano
Date: Mon May 10 01:04:03 2010
New Revision: 23074

Log:
Add missing nut-specific codec tags for rawvideo pixel formats.

Add codec tags for the formats:
[15]BGR Packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), big-endian [NOT in AVI]
[15]RGB Packed BGR 5:5:5, 16bpp, (msb)1A 5B 5G 5R(lsb), big-endian [NOT in AVI]
[16]BGR Packed RGB 5:6:5, 16bpp, (msb)   5R 6G 5B(lsb), big-endian [NOT in AVI]
[16]RGB Packed BGR 5:6:5, 16bpp, (msb)   5B 6G 5R(lsb), big-endian [NOT in AVI]
RGBA    Packed RGBA 8:8:8:8, 32bpp, RGBA [NOT in AVI]
BGRA    Packed RGBA 8:8:8:8, 32bpp, BGRA [NOT in AVI]
ABGR    Packed RGBA 8:8:8:8, 32bpp, ABGR [NOT in AVI]
ARGB    Packed RGBA 8:8:8:8, 32bpp, ARGB [NOT in AVI]
RGB[24] Packed RGB 8:8:8, 24bpp RGB [NOT in AVI]
BGR[24] Packed RGB 8:8:8, 24bpp BGR [NOT in AVI]

which are listed in the nut4cc.txt spec.

Modified:
   trunk/libavcodec/raw.c

Modified: trunk/libavcodec/raw.c
==============================================================================
--- trunk/libavcodec/raw.c	Mon May 10 01:04:01 2010	(r23073)
+++ trunk/libavcodec/raw.c	Mon May 10 01:04:03 2010	(r23074)
@@ -69,6 +69,16 @@ const PixelFormatTag ff_raw_pixelFormatT
     { PIX_FMT_RGB565LE, MKTAG('R', 'G', 'B', 16) },
     { PIX_FMT_BGR565LE, MKTAG('B', 'G', 'R', 16) },
     { PIX_FMT_RGB565LE, MKTAG( 3 ,  0 ,  0 ,  0) },
+    { PIX_FMT_RGB555BE, MKTAG(15 , 'B', 'G', 'R') },
+    { PIX_FMT_BGR555BE, MKTAG(15 , 'R', 'G', 'B') },
+    { PIX_FMT_RGB565BE, MKTAG(16 , 'B', 'G', 'R') },
+    { PIX_FMT_BGR565BE, MKTAG(16 , 'R', 'G', 'B') },
+    { PIX_FMT_RGBA,     MKTAG('R', 'G', 'B', 'A') },
+    { PIX_FMT_BGRA,     MKTAG('B', 'G', 'R', 'A') },
+    { PIX_FMT_ABGR,     MKTAG('A', 'B', 'G', 'R') },
+    { PIX_FMT_ARGB,     MKTAG('A', 'R', 'G', 'B') },
+    { PIX_FMT_RGB24,    MKTAG('R', 'G', 'B', 24 ) },
+    { PIX_FMT_BGR24,    MKTAG('B', 'G', 'R', 24 ) },
 
     /* quicktime */
     { PIX_FMT_UYVY422, MKTAG('2', 'v', 'u', 'y') },



More information about the ffmpeg-cvslog mailing list