diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-01-14 01:34:16 +0000 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-03-18 21:54:31 +0100 |
commit | 8f45bd1433a1d8534d7b3997219c4ca31a669042 (patch) | |
tree | 53f4410e3cfedd19a1362074f9bf02261c1bc211 /libavcodec | |
parent | 1ea9fa15c3f9074f6199f68bdd6258c5a2bb89e0 (diff) | |
download | ffmpeg-8f45bd1433a1d8534d7b3997219c4ca31a669042.tar.gz |
libopenjpeg: Support rgba64 encoding
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libopenjpegenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/libopenjpegenc.c b/libavcodec/libopenjpegenc.c index e78a669a52..e98d5502bb 100644 --- a/libavcodec/libopenjpegenc.c +++ b/libavcodec/libopenjpegenc.c @@ -96,6 +96,7 @@ static opj_image_t *libopenjpeg_create_image(AVCodecContext *avctx, case AV_PIX_FMT_RGB24: case AV_PIX_FMT_RGBA: case AV_PIX_FMT_RGB48: + case AV_PIX_FMT_RGBA64: color_space = CLRSPC_SRGB; break; case AV_PIX_FMT_YUV410P: @@ -305,6 +306,7 @@ static int libopenjpeg_encode_frame(AVCodecContext *avctx, AVPacket *pkt, libopenjpeg_copy_packed8(avctx, frame, image); break; case AV_PIX_FMT_RGB48: + case AV_PIX_FMT_RGBA64: libopenjpeg_copy_packed16(avctx, frame, image); break; case AV_PIX_FMT_GRAY8: @@ -421,6 +423,7 @@ AVCodec ff_libopenjpeg_encoder = { .capabilities = 0, .pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_RGB24, AV_PIX_FMT_RGBA, AV_PIX_FMT_RGB48, + AV_PIX_FMT_RGBA64, AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY16, AV_PIX_FMT_Y400A, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUVA420P, AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUV444P, |