[FFmpeg-devel] [PATCH]Support putting RGB0 / RGB64 and friends in rawvideo

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Feb 9 10:35:42 CET 2012


Hi!

Assuming most of the rawvideo tags were invented, I think we should also add 
the new colourspaces.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/raw.c b/libavcodec/raw.c
index cfa650e..a28d26a 100644
--- a/libavcodec/raw.c
+++ b/libavcodec/raw.c
@@ -82,10 +82,18 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
     { PIX_FMT_BGR444LE, MKTAG('B', 'G', 'R', 12) },
     { PIX_FMT_RGB444BE, MKTAG(12 , 'B', 'G', 'R') },
     { PIX_FMT_BGR444BE, MKTAG(12 , 'R', 'G', 'B') },
+    { PIX_FMT_RGBA64LE, MKTAG('R', 'G', 'B', 64 ) },
+    { PIX_FMT_BGRA64LE, MKTAG('B', 'G', 'R', 64 ) },
+    { PIX_FMT_RGBA64BE, MKTAG(64 , 'B', 'G', 'R') },
+    { PIX_FMT_BGRA64BE, MKTAG(64 , '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') },


More information about the ffmpeg-devel mailing list