mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-04 14:22:12 +00:00
avcodec/huffyuv: add YUVA{420,422,444}P{9,10} support
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ef0282125c
commit
3d87927959
@ -441,12 +441,27 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
||||
case 0x770:
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUVA444P;
|
||||
break;
|
||||
case 0x780:
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUVA444P9;
|
||||
break;
|
||||
case 0x790:
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUVA444P10;
|
||||
break;
|
||||
case 0x771:
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUVA422P;
|
||||
break;
|
||||
case 0x781:
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUVA422P9;
|
||||
break;
|
||||
case 0x791:
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUVA422P10;
|
||||
break;
|
||||
case 0x775:
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUVA420P;
|
||||
break;
|
||||
case 0x785:
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUVA420P9;
|
||||
break;
|
||||
case 0x795:
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUVA420P10;
|
||||
break;
|
||||
|
@ -264,6 +264,12 @@ static av_cold int encode_init(AVCodecContext *avctx)
|
||||
case AV_PIX_FMT_YUV444P10:
|
||||
case AV_PIX_FMT_YUV444P12:
|
||||
case AV_PIX_FMT_YUV444P14:
|
||||
case AV_PIX_FMT_YUVA420P9:
|
||||
case AV_PIX_FMT_YUVA420P10:
|
||||
case AV_PIX_FMT_YUVA422P9:
|
||||
case AV_PIX_FMT_YUVA422P10:
|
||||
case AV_PIX_FMT_YUVA444P9:
|
||||
case AV_PIX_FMT_YUVA444P10:
|
||||
s->version = 3;
|
||||
break;
|
||||
case AV_PIX_FMT_RGB32:
|
||||
@ -962,6 +968,9 @@ AVCodec ff_ffvhuff_encoder = {
|
||||
AV_PIX_FMT_YUV420P9, AV_PIX_FMT_YUV420P10, AV_PIX_FMT_YUV420P12, AV_PIX_FMT_YUV420P14,
|
||||
AV_PIX_FMT_YUV422P9, AV_PIX_FMT_YUV422P10, AV_PIX_FMT_YUV422P12, AV_PIX_FMT_YUV422P14,
|
||||
AV_PIX_FMT_YUV444P9, AV_PIX_FMT_YUV444P10, AV_PIX_FMT_YUV444P12, AV_PIX_FMT_YUV444P14,
|
||||
AV_PIX_FMT_YUVA420P9, AV_PIX_FMT_YUVA420P10,
|
||||
AV_PIX_FMT_YUVA422P9, AV_PIX_FMT_YUVA422P10,
|
||||
AV_PIX_FMT_YUVA444P9, AV_PIX_FMT_YUVA444P10,
|
||||
AV_PIX_FMT_RGB24,
|
||||
AV_PIX_FMT_RGB32, AV_PIX_FMT_NONE
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user