[FFmpeg-devel] [PATCH 2/9] Add NV12 and NV21 AVI tags.

Stefano Sabatini stefano.sabatini-lala
Sat May 15 16:08:03 CEST 2010


Both are listed in fourcc.org.
---
 libavcodec/raw.c   |    2 ++
 libavformat/riff.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libavcodec/raw.c b/libavcodec/raw.c
index 06ae440..b72dd25 100644
--- a/libavcodec/raw.c
+++ b/libavcodec/raw.c
@@ -64,6 +64,8 @@ const PixelFormatTag ff_raw_pixelFormatTags[] = {
     { PIX_FMT_UYVY422, MKTAG('V', 'D', 'T', 'Z') }, /* SoftLab-NSK VideoTizer */
     { PIX_FMT_UYYVYY411, MKTAG('Y', '4', '1', '1') },
     { PIX_FMT_GRAY8,   MKTAG('G', 'R', 'E', 'Y') },
+    { PIX_FMT_NV12,    MKTAG('N', 'V', '1', '2') },
+    { PIX_FMT_NV21,    MKTAG('N', 'V', '2', '1') },
 
     /* nut */
     { PIX_FMT_RGB555LE, MKTAG('R', 'G', 'B', 15) },
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 4355863..4cbdd01 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -169,6 +169,8 @@ const AVCodecTag ff_codec_bmp_tags[] = {
     { CODEC_ID_RAWVIDEO,     MKTAG('Y', 'V', 'U', '9') },
     { CODEC_ID_RAWVIDEO,     MKTAG('V', 'D', 'T', 'Z') }, /* SoftLab-NSK VideoTizer */
     { CODEC_ID_RAWVIDEO,     MKTAG('Y', '4', '1', '1') },
+    { CODEC_ID_RAWVIDEO,     MKTAG('N', 'V', '1', '2') },
+    { CODEC_ID_RAWVIDEO,     MKTAG('N', 'V', '2', '1') },
     { CODEC_ID_FRWU,         MKTAG('F', 'R', 'W', 'U') },
     { CODEC_ID_R210,         MKTAG('r', '2', '1', '0') },
     { CODEC_ID_V210,         MKTAG('v', '2', '1', '0') },
-- 
1.7.0




More information about the ffmpeg-devel mailing list