Message ID | 201611150054.12000.cehoyos@ag.or.at |
---|---|
State | Accepted |
Commit | f8247c0ccebc2a153eb76a82961e4f6ca81e6f82 |
Headers | show |
On Tue, Nov 15, 2016 at 12:54:11AM +0100, Carl Eugen Hoyos wrote: > Hi! > > Attached patch allows GRAY10 encoding, decoding works fine with current > FFmpeg. > > Please comment, Carl Eugen > ffv1enc.c | 2 ++ > 1 file changed, 2 insertions(+) > b71c71317d488d0f7e8cd4b820c247c977443080 0001-lavc-ffv1enc-Support-pix_fmt-GRAY10.patch > From 5fb552828dc775045ad437065a429a54b4f1e353 Mon Sep 17 00:00:00 2001 > From: Carl Eugen Hoyos <cehoyos@ag.or.at> > Date: Tue, 15 Nov 2016 00:52:30 +0100 > Subject: [PATCH] lavc/ffv1enc: Support pix_fmt GRAY10. > LGTM can you add a matching fate test too ? thx [...]
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c index 68d311d..c56623b 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -573,6 +573,7 @@ FF_ENABLE_DEPRECATION_WARNINGS case AV_PIX_FMT_YUVA420P9: if (!avctx->bits_per_raw_sample) s->bits_per_raw_sample = 9; + case AV_PIX_FMT_GRAY10: case AV_PIX_FMT_YUV444P10: case AV_PIX_FMT_YUV420P10: case AV_PIX_FMT_YUV422P10: @@ -1298,6 +1299,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_GRAY10, AV_PIX_FMT_GBRP16, AV_PIX_FMT_RGB48, AV_PIX_FMT_NONE
Hi! Attached patch allows GRAY10 encoding, decoding works fine with current FFmpeg. Please comment, Carl Eugen From 5fb552828dc775045ad437065a429a54b4f1e353 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos <cehoyos@ag.or.at> Date: Tue, 15 Nov 2016 00:52:30 +0100 Subject: [PATCH] lavc/ffv1enc: Support pix_fmt GRAY10. --- libavcodec/ffv1enc.c | 2 ++ 1 file changed, 2 insertions(+)