[FFmpeg-devel] [PATCH 10/13] Add rawvideo pixel formats to codec tags mapping for the newly added nut rawvideo pixel formats codec tags.

Stefano Sabatini stefano.sabatini-lala
Sun May 9 15:30:00 CEST 2010


---
 libavcodec/raw.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/libavcodec/raw.c b/libavcodec/raw.c
index 3bb0cc8..ba0ec66 100644
--- a/libavcodec/raw.c
+++ b/libavcodec/raw.c
@@ -80,6 +80,20 @@ const PixelFormatTag ff_raw_pixelFormatTags[] = {
     { PIX_FMT_ARGB,     MKTAG('A', 'R', 'G', 'B') },
     { PIX_FMT_RGB24,    MKTAG('R', 'G', 'B', 24 ) },
     { PIX_FMT_BGR24,    MKTAG('B', 'G', 'R', 24 ) },
+    { PIX_FMT_YUV444P,  MKTAG('4', '4', '4', 'P') },
+    { PIX_FMT_YUVJ444P, MKTAG('4', '4', '4', 'P') },
+    { PIX_FMT_YUV440P,  MKTAG('4', '4', '0', 'P') },
+    { PIX_FMT_YUVJ440P, MKTAG('4', '4', '0', 'P') },
+    { PIX_FMT_MONOWHITE,MKTAG('M', 'O', 'W', 'H') },
+    { PIX_FMT_MONOBLACK,MKTAG('M', 'O', 'B', 'L') },
+    { PIX_FMT_BGR8,     MKTAG('B', 'G', 'R',  8 ) },
+    { PIX_FMT_BGR4,     MKTAG('B', 'G', 'R',  4 ) },
+    { PIX_FMT_RGB8,     MKTAG('R', 'G', 'B',  8 ) },
+    { PIX_FMT_RGB4,     MKTAG('R', 'G', 'B',  4 ) },
+    { PIX_FMT_NV12,     MKTAG('N', 'V', '1', '2') },
+    { PIX_FMT_NV21,     MKTAG('N', 'V', '2', '1') },
+    { PIX_FMT_RGB48LE,  MKTAG('R', 'G', 'B', 48 ) },
+    { PIX_FMT_RGB48BE,  MKTAG( 48, 'B', 'G', 'R') },
 
     /* quicktime */
     { PIX_FMT_UYVY422, MKTAG('2', 'v', 'u', 'y') },
-- 
1.7.0




More information about the ffmpeg-devel mailing list