You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
Merge commit 'cccac7654f3f6b82967bc6ae08b35ae8b4fbe1a9'
* commit 'cccac7654f3f6b82967bc6ae08b35ae8b4fbe1a9':
png: Support rgb48 and rgba64 encoding
Conflicts:
libavcodec/pngenc.c
See: f94ce3bcab
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -248,11 +248,11 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
is_progressive = !!(avctx->flags & CODEC_FLAG_INTERLACED_DCT);
|
is_progressive = !!(avctx->flags & CODEC_FLAG_INTERLACED_DCT);
|
||||||
switch (avctx->pix_fmt) {
|
switch (avctx->pix_fmt) {
|
||||||
case AV_PIX_FMT_RGBA64BE:
|
case AV_PIX_FMT_RGBA64BE:
|
||||||
bit_depth = 16;
|
bit_depth = 16;
|
||||||
color_type = PNG_COLOR_TYPE_RGB_ALPHA;
|
color_type = PNG_COLOR_TYPE_RGB_ALPHA;
|
||||||
break;
|
break;
|
||||||
case AV_PIX_FMT_RGB48BE:
|
case AV_PIX_FMT_RGB48BE:
|
||||||
bit_depth = 16;
|
bit_depth = 16;
|
||||||
color_type = PNG_COLOR_TYPE_RGB;
|
color_type = PNG_COLOR_TYPE_RGB;
|
||||||
break;
|
break;
|
||||||
case AV_PIX_FMT_RGBA:
|
case AV_PIX_FMT_RGBA:
|
||||||
|
Reference in New Issue
Block a user