From edf34c346ec9d5d1a790db4b500113bf8d5fac07 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 9 Feb 2012 23:25:46 +0100 Subject: [PATCH] Allow encoding rawvideo RGBA64 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 320c4f4cb1..ec532a32c4 100644 --- a/libavcodec/raw.c +++ b/libavcodec/raw.c @@ -82,6 +82,10 @@ 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', 'B', 'A', 64 ) }, + { PIX_FMT_BGRA64LE, MKTAG('B', 'R', 'A', 64 ) }, + { PIX_FMT_RGBA64BE, MKTAG(64 , 'R', 'B', 'A') }, + { PIX_FMT_BGRA64BE, MKTAG(64 , 'B', 'R', 'A') }, { PIX_FMT_RGBA, MKTAG('R', 'G', 'B', 'A') }, { PIX_FMT_RGB0, MKTAG('R', 'G', 'B', 0 ) }, { PIX_FMT_BGRA, MKTAG('B', 'G', 'R', 'A') }, diff --git a/libavformat/nut.c b/libavformat/nut.c index b17beea68b..953ec3679e 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -74,6 +74,10 @@ const AVCodecTag ff_nut_video_tags[] = { { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 48 ) }, { CODEC_ID_RAWVIDEO, MKTAG(48 , 'B', 'G', 'R') }, { CODEC_ID_RAWVIDEO, MKTAG(48 , 'R', 'G', 'B') }, + { CODEC_ID_RAWVIDEO, MKTAG('B', 'R', 'A', 64 ) }, + { CODEC_ID_RAWVIDEO, MKTAG('R', 'B', 'A', 64 ) }, + { CODEC_ID_RAWVIDEO, MKTAG(64 , 'B', 'R', 'A') }, + { CODEC_ID_RAWVIDEO, MKTAG(64 , 'R', 'B', 'A') }, { CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 11 , 10 ) }, { CODEC_ID_RAWVIDEO, MKTAG(10 , 11 , '3', 'Y') }, { CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 10 , 10 ) },