mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavc/pngenc: Support encoding ya16be.
This commit is contained in:
parent
f845ae0c8e
commit
c6a36f6931
@ -275,6 +275,10 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
bit_depth = 8;
|
||||
color_type = PNG_COLOR_TYPE_GRAY_ALPHA;
|
||||
break;
|
||||
case AV_PIX_FMT_YA16BE:
|
||||
bit_depth = 16;
|
||||
color_type = PNG_COLOR_TYPE_GRAY_ALPHA;
|
||||
break;
|
||||
case AV_PIX_FMT_MONOBLACK:
|
||||
bit_depth = 1;
|
||||
color_type = PNG_COLOR_TYPE_GRAY;
|
||||
@ -533,7 +537,7 @@ AVCodec ff_png_encoder = {
|
||||
AV_PIX_FMT_RGB48BE, AV_PIX_FMT_RGBA64BE,
|
||||
AV_PIX_FMT_PAL8,
|
||||
AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY8A,
|
||||
AV_PIX_FMT_GRAY16BE,
|
||||
AV_PIX_FMT_GRAY16BE, AV_PIX_FMT_YA16BE,
|
||||
AV_PIX_FMT_MONOBLACK, AV_PIX_FMT_NONE
|
||||
},
|
||||
.priv_class = &pngenc_class,
|
||||
|
Loading…
Reference in New Issue
Block a user