[FFmpeg-cvslog] Allow encoding rawvideo RGB0 and friends.

Carl Eugen Hoyos git at videolan.org
Thu Feb 9 23:28:11 CET 2012


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Feb  9 23:20:48 2012 +0100| [5c2c6bbfbaf0d27e386e5f849de2a42fa207b3a3] | committer: Carl Eugen Hoyos

Allow encoding rawvideo RGB0 and friends.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5c2c6bbfbaf0d27e386e5f849de2a42fa207b3a3
---

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

diff --git a/libavcodec/raw.c b/libavcodec/raw.c
index cfa650e..320c4f4 100644
--- a/libavcodec/raw.c
+++ b/libavcodec/raw.c
@@ -83,9 +83,13 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
     { PIX_FMT_RGB444BE, MKTAG(12 , 'B', 'G', 'R') },
     { PIX_FMT_BGR444BE, MKTAG(12 , 'R', 'G', 'B') },
     { PIX_FMT_RGBA,     MKTAG('R', 'G', 'B', 'A') },
+    { PIX_FMT_RGB0,     MKTAG('R', 'G', 'B',  0 ) },
     { PIX_FMT_BGRA,     MKTAG('B', 'G', 'R', 'A') },
+    { PIX_FMT_BGR0,     MKTAG('B', 'G', 'R',  0 ) },
     { PIX_FMT_ABGR,     MKTAG('A', 'B', 'G', 'R') },
+    { PIX_FMT_0BGR,     MKTAG( 0 , 'B', 'G', 'R') },
     { PIX_FMT_ARGB,     MKTAG('A', 'R', 'G', 'B') },
+    { PIX_FMT_0RGB,     MKTAG( 0 , 'R', 'G', 'B') },
     { PIX_FMT_RGB24,    MKTAG('R', 'G', 'B', 24 ) },
     { PIX_FMT_BGR24,    MKTAG('B', 'G', 'R', 24 ) },
     { PIX_FMT_YUV411P,  MKTAG('4', '1', '1', 'P') },
diff --git a/libavformat/nut.c b/libavformat/nut.c
index 0a44811..b17beea 100644
--- a/libavformat/nut.c
+++ b/libavformat/nut.c
@@ -46,9 +46,13 @@ const AVCodecTag ff_nut_video_tags[] = {
     { CODEC_ID_RAWVIDEO, MKTAG(12 , 'B', 'G', 'R') },
     { CODEC_ID_RAWVIDEO, MKTAG(12 , 'R', 'G', 'B') },
     { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 'A') },
+    { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B',  0 ) },
     { CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 'A') },
+    { CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R',  0 ) },
     { CODEC_ID_RAWVIDEO, MKTAG('A', 'B', 'G', 'R') },
+    { CODEC_ID_RAWVIDEO, MKTAG( 0 , 'B', 'G', 'R') },
     { CODEC_ID_RAWVIDEO, MKTAG('A', 'R', 'G', 'B') },
+    { CODEC_ID_RAWVIDEO, MKTAG( 0 , 'R', 'G', 'B') },
     { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 24 ) },
     { CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 24 ) },
     { CODEC_ID_RAWVIDEO, MKTAG('4', '1', '1', 'P') },



More information about the ffmpeg-cvslog mailing list