mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/utvideodec: add support for UQY0
This commit is contained in:
parent
b484eb2556
commit
022796c82f
@ -890,6 +890,15 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
|
||||
}
|
||||
}
|
||||
break;
|
||||
case AV_PIX_FMT_YUV420P10:
|
||||
for (i = 0; i < 3; i++) {
|
||||
ret = decode_plane10(c, i, (uint16_t *)frame.f->data[i], frame.f->linesize[i] / 2,
|
||||
avctx->width >> !!i, avctx->height >> !!i,
|
||||
plane_start[i], plane_start[i + 1] - 1024, c->frame_pred == PRED_LEFT);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
break;
|
||||
case AV_PIX_FMT_YUV422P10:
|
||||
for (i = 0; i < 3; i++) {
|
||||
ret = decode_plane10(c, i, (uint16_t *)frame.f->data[i], frame.f->linesize[i] / 2,
|
||||
@ -948,6 +957,11 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUV444P;
|
||||
avctx->colorspace = AVCOL_SPC_BT470BG;
|
||||
break;
|
||||
case MKTAG('U', 'Q', 'Y', '0'):
|
||||
c->planes = 3;
|
||||
c->pro = 1;
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUV420P10;
|
||||
break;
|
||||
case MKTAG('U', 'Q', 'Y', '2'):
|
||||
c->planes = 3;
|
||||
c->pro = 1;
|
||||
|
@ -403,6 +403,7 @@ const AVCodecTag ff_codec_bmp_tags[] = {
|
||||
{ AV_CODEC_ID_UTVIDEO, MKTAG('U', 'L', 'H', '0') },
|
||||
{ AV_CODEC_ID_UTVIDEO, MKTAG('U', 'L', 'H', '2') },
|
||||
{ AV_CODEC_ID_UTVIDEO, MKTAG('U', 'L', 'H', '4') },
|
||||
{ AV_CODEC_ID_UTVIDEO, MKTAG('U', 'Q', 'Y', '0') },
|
||||
{ AV_CODEC_ID_UTVIDEO, MKTAG('U', 'Q', 'Y', '2') },
|
||||
{ AV_CODEC_ID_UTVIDEO, MKTAG('U', 'Q', 'R', 'A') },
|
||||
{ AV_CODEC_ID_UTVIDEO, MKTAG('U', 'Q', 'R', 'G') },
|
||||
|
Loading…
Reference in New Issue
Block a user