diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-08-16 23:06:02 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-08-16 23:06:02 +0200 |
commit | 62f5e601aa4d42cf17f5f4331a2b7e2b533d4e69 (patch) | |
tree | 98f50ea46a04e8c0f6f6861387b5a139bf5017f8 /libavcodec/ffv1enc.c | |
parent | a95fdac4c6203037a4690a4f7960223c8daad73e (diff) | |
download | ffmpeg-62f5e601aa4d42cf17f5f4331a2b7e2b533d4e69.tar.gz |
avcodec/ffv1enc: Add RGB48 support
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/ffv1enc.c')
-rw-r--r-- | libavcodec/ffv1enc.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c index dc9c499c70..dae68aee63 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -624,6 +624,16 @@ FF_ENABLE_DEPRECATION_WARNINGS s->chroma_planes = 1; s->bits_per_raw_sample = 8; break; + case AV_PIX_FMT_RGB48: + s->colorspace = 1; + s->chroma_planes = 1; + s->bits_per_raw_sample = 16; + s->use32bit = 1; + if (avctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) { + av_log(avctx, AV_LOG_ERROR, "16bit RGB is experimental and under development, only use it for experiments\n"); + return AVERROR_INVALIDDATA; + } + break; case AV_PIX_FMT_0RGB32: s->colorspace = 1; s->chroma_planes = 1; @@ -1287,7 +1297,7 @@ AVCodec ff_ffv1_encoder = { AV_PIX_FMT_GRAY16, AV_PIX_FMT_GRAY8, AV_PIX_FMT_GBRP9, AV_PIX_FMT_GBRP10, AV_PIX_FMT_GBRP12, AV_PIX_FMT_GBRP14, AV_PIX_FMT_YA8, - AV_PIX_FMT_GBRP16, + AV_PIX_FMT_GBRP16, AV_PIX_FMT_RGB48, AV_PIX_FMT_NONE }, |