diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-01-16 10:59:27 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-01-16 10:59:27 +0100 |
commit | 203ea375cac897ce1653f4148107d765084244a6 (patch) | |
tree | 9c051706875a94e6e33c3ca3b1f5e63b9f7ed710 /libavcodec/dpxenc.c | |
parent | a8b117f800152bd19f1f99f9a76b5b1933927441 (diff) | |
download | ffmpeg-203ea375cac897ce1653f4148107d765084244a6.tar.gz |
Support rgb64 dpx encoding.
Diffstat (limited to 'libavcodec/dpxenc.c')
-rw-r--r-- | libavcodec/dpxenc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/dpxenc.c b/libavcodec/dpxenc.c index f69cfdc94e..fa8a190aa2 100644 --- a/libavcodec/dpxenc.c +++ b/libavcodec/dpxenc.c @@ -53,6 +53,12 @@ static av_cold int encode_init(AVCodecContext *avctx) case PIX_FMT_RGB48BE: s->bits_per_component = avctx->bits_per_raw_sample ? avctx->bits_per_raw_sample : 16; break; + case PIX_FMT_RGBA64LE: + s->big_endian = 0; + case PIX_FMT_RGBA64BE: + s->descriptor = 51; + s->bits_per_component = 16; + break; default: av_log(avctx, AV_LOG_INFO, "unsupported pixel format\n"); return -1; @@ -171,6 +177,8 @@ AVCodec ff_dpx_encoder = { PIX_FMT_RGBA, PIX_FMT_RGB48LE, PIX_FMT_RGB48BE, + PIX_FMT_RGBA64LE, + PIX_FMT_RGBA64BE, PIX_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("DPX image"), }; |