Allow encoding rawvideo RGB0 and friends.

This commit is contained in:
Carl Eugen Hoyos 2012-02-09 23:20:48 +01:00
parent dd7198b25f
commit 5c2c6bbfba
2 changed files with 8 additions and 0 deletions

View File

@ -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') },

View File

@ -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') },