mirror of https://git.ffmpeg.org/ffmpeg.git
png: Support RGBA64 pixel format
This commit is contained in:
parent
9f5b77c16f
commit
0c99b900d8
|
@ -520,6 +520,9 @@ static int decode_frame(AVCodecContext *avctx,
|
||||||
} else if (s->bit_depth == 16 &&
|
} else if (s->bit_depth == 16 &&
|
||||||
s->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
|
s->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
|
||||||
avctx->pix_fmt = AV_PIX_FMT_YA16BE;
|
avctx->pix_fmt = AV_PIX_FMT_YA16BE;
|
||||||
|
} else if (s->bit_depth == 16 &&
|
||||||
|
s->color_type == PNG_COLOR_TYPE_RGB_ALPHA) {
|
||||||
|
avctx->pix_fmt = AV_PIX_FMT_RGBA64BE;
|
||||||
} else {
|
} else {
|
||||||
avpriv_report_missing_feature(avctx,
|
avpriv_report_missing_feature(avctx,
|
||||||
"Bit depth %d color type %d",
|
"Bit depth %d color type %d",
|
||||||
|
|
Loading…
Reference in New Issue