[FFmpeg-devel] [PATCH 7/7] Add support for the newly added Nut codec tags (added in Nut r669): Y1[00][16], [16][00]1Y, Y3[11][16], [16][11]3Y, Y3[10][16], [16][10]3Y, Y3[00][16], [16][00]3Y, Y4[11][ 8], YA[00][ 8].

Stefano Sabatini stefano.sabatini-lala
Wed May 26 01:32:45 CEST 2010


---
 libavcodec/raw.c  |    9 +++++++++
 libavformat/nut.c |    9 +++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/libavcodec/raw.c b/libavcodec/raw.c
index 40e4bf4..27837c3 100644
--- a/libavcodec/raw.c
+++ b/libavcodec/raw.c
@@ -97,6 +97,15 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
     { PIX_FMT_RGB4,     MKTAG('R', 'G', 'B',  4 ) },
     { PIX_FMT_RGB48LE,  MKTAG('R', 'G', 'B', 48 ) },
     { PIX_FMT_RGB48BE,  MKTAG( 48, 'R', 'G', 'B') },
+    { PIX_FMT_GRAY16LE, MKTAG('Y', '1',  0 , 16 ) },
+    { PIX_FMT_GRAY16BE, MKTAG( 16,  0 ,  1 , 'Y') },
+    { PIX_FMT_YUV422P16LE, MKTAG('Y', '3', 11 , 16 ) },
+    { PIX_FMT_YUV422P16BE, MKTAG( 16, 11 ,  3 , 'Y') },
+    { PIX_FMT_YUV420P16LE, MKTAG('Y', '3', 10 , 16 ) },
+    { PIX_FMT_YUV420P16BE, MKTAG(16 , 10 ,  3 , 'Y') },
+    { PIX_FMT_YUV444P16LE, MKTAG('Y', '3',  0 , 16 ) },
+    { PIX_FMT_YUV444P16BE, MKTAG(16 ,  0 ,  3 , 'Y') },
+    { PIX_FMT_Y400A,       MKTAG('Y', '2',  0 ,  8 ) },
 
     /* quicktime */
     { PIX_FMT_UYVY422, MKTAG('2', 'v', 'u', 'y') },
diff --git a/libavformat/nut.c b/libavformat/nut.c
index b148a78..4bb2abf 100644
--- a/libavformat/nut.c
+++ b/libavformat/nut.c
@@ -61,6 +61,15 @@ const AVCodecTag ff_nut_video_tags[] = {
     { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B',  4 ) },
     { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 48 ) },
     { CODEC_ID_RAWVIDEO, MKTAG(48 , 'R', 'G', 'B') },
+    { CODEC_ID_RAWVIDEO, MKTAG('Y', '1',  0 , 16 ) },
+    { CODEC_ID_RAWVIDEO, MKTAG( 16,  0 ,  1 , 'Y') },
+    { CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 11 , 16 ) },
+    { CODEC_ID_RAWVIDEO, MKTAG( 16, 11 ,  3 , 'Y') },
+    { CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 10 , 16 ) },
+    { CODEC_ID_RAWVIDEO, MKTAG(16 , 10 ,  3 , 'Y') },
+    { CODEC_ID_RAWVIDEO, MKTAG('Y', '3',  0 , 16 ) },
+    { CODEC_ID_RAWVIDEO, MKTAG(16 ,  0 ,  3 , 'Y') },
+    { CODEC_ID_RAWVIDEO, MKTAG('Y', '2',  0 ,  8 ) },
     { CODEC_ID_NONE    , 0                         }
 };
 
-- 
1.7.1




More information about the ffmpeg-devel mailing list