From 5c2c6bbfbaf0d27e386e5f849de2a42fa207b3a3 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 9 Feb 2012 23:20:48 +0100 Subject: [PATCH] Allow encoding rawvideo RGB0 and friends. --- libavcodec/raw.c | 4 ++++ libavformat/nut.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/libavcodec/raw.c b/libavcodec/raw.c index cfa650ee6b..320c4f4cb1 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 0a44811c57..b17beea68b 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') },