Commit b0a30ea7 authored by Paul B Mahol's avatar Paul B Mahol Committed by Michael Niedermayer

ffv1enc: PIX_FMT_YUVA444P support

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ab7da16e
...@@ -935,6 +935,7 @@ static av_cold int encode_init(AVCodecContext *avctx) ...@@ -935,6 +935,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
case PIX_FMT_YUV410P: case PIX_FMT_YUV410P:
s->colorspace= 0; s->colorspace= 0;
break; break;
case PIX_FMT_YUVA444P:
case PIX_FMT_YUVA420P: case PIX_FMT_YUVA420P:
s->colorspace= 0; s->colorspace= 0;
s->transparency= 1; s->transparency= 1;
...@@ -1813,7 +1814,7 @@ AVCodec ff_ffv1_encoder = { ...@@ -1813,7 +1814,7 @@ AVCodec ff_ffv1_encoder = {
.encode = encode_frame, .encode = encode_frame,
.close = common_end, .close = common_end,
.capabilities = CODEC_CAP_SLICE_THREADS, .capabilities = CODEC_CAP_SLICE_THREADS,
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUVA420P, PIX_FMT_YUV444P, PIX_FMT_YUV422P, PIX_FMT_YUV411P, PIX_FMT_YUV410P, PIX_FMT_0RGB32, PIX_FMT_RGB32, PIX_FMT_YUV420P16, PIX_FMT_YUV422P16, PIX_FMT_YUV444P16, PIX_FMT_YUV420P9, PIX_FMT_YUV420P10, PIX_FMT_YUV422P10, PIX_FMT_NONE}, .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUVA420P, PIX_FMT_YUV444P, PIX_FMT_YUVA444P, PIX_FMT_YUV422P, PIX_FMT_YUV411P, PIX_FMT_YUV410P, PIX_FMT_0RGB32, PIX_FMT_RGB32, PIX_FMT_YUV420P16, PIX_FMT_YUV422P16, PIX_FMT_YUV444P16, PIX_FMT_YUV420P9, PIX_FMT_YUV420P10, PIX_FMT_YUV422P10, PIX_FMT_NONE},
.long_name= NULL_IF_CONFIG_SMALL("FFmpeg video codec #1"), .long_name= NULL_IF_CONFIG_SMALL("FFmpeg video codec #1"),
}; };
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment