[FFmpeg-devel] [PATCH 8/8] Add support to the newly added NUT codec tags (NUT r672): BGR[12], RGB[12], [12]RGB, [12]BGR, B4BY, R4BY.
Stefano Sabatini
stefano.sabatini-lala
Sat Jun 5 19:36:01 CEST 2010
---
libavcodec/raw.c | 6 ++++++
libavformat/nut.c | 6 ++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/libavcodec/raw.c b/libavcodec/raw.c
index c488c1d..0b5f604 100644
--- a/libavcodec/raw.c
+++ b/libavcodec/raw.c
@@ -94,6 +94,12 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
{ PIX_FMT_RGB8, MKTAG('R', 'G', 'B', 8 ) },
{ PIX_FMT_BGR4, MKTAG('B', 'G', 'R', 4 ) },
{ PIX_FMT_RGB4, MKTAG('R', 'G', 'B', 4 ) },
+ { PIX_FMT_BGR444LE, MKTAG('B', 'G', 'R', 12 ) },
+ { PIX_FMT_BGR444BE, MKTAG(12 , 'R', 'G', 'B') },
+ { PIX_FMT_RGB444LE, MKTAG('R', 'G', 'B', 12 ) },
+ { PIX_FMT_RGB444BE, MKTAG(12 , 'B', 'G', 'R') },
+ { PIX_FMT_RGB4_BYTE,MKTAG('B', '4', 'B', 'Y') },
+ { PIX_FMT_BGR4_BYTE,MKTAG('R', '4', 'B', 'Y') },
{ PIX_FMT_RGB48LE, MKTAG('R', 'G', 'B', 48 ) },
{ PIX_FMT_RGB48BE, MKTAG( 48, 'R', 'G', 'B') },
{ PIX_FMT_GRAY16LE, MKTAG('Y', '1', 0 , 16 ) },
diff --git a/libavformat/nut.c b/libavformat/nut.c
index 7a85961..ad5b515 100644
--- a/libavformat/nut.c
+++ b/libavformat/nut.c
@@ -71,6 +71,12 @@ const AVCodecTag ff_nut_video_tags[] = {
{ CODEC_ID_RAWVIDEO, MKTAG(16 , 0 , '3', 'Y') },
{ CODEC_ID_RAWVIDEO, MKTAG('Y', '4', 11 , 8 ) },
{ CODEC_ID_RAWVIDEO, MKTAG('Y', '2', 0 , 8 ) },
+ { CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 12 ) },
+ { CODEC_ID_RAWVIDEO, MKTAG(12 , 'R', 'G', 'B') },
+ { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 12 ) },
+ { CODEC_ID_RAWVIDEO, MKTAG(12 , 'B', 'G', 'R') },
+ { CODEC_ID_RAWVIDEO, MKTAG('B', '4', 'B', 'Y') },
+ { CODEC_ID_RAWVIDEO, MKTAG('R', '4', 'B', 'Y') },
{ CODEC_ID_NONE , 0 }
};
--
1.7.1
More information about the ffmpeg-devel
mailing list