aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-02-25 13:09:20 +0100
committerPaul B Mahol <onemda@gmail.com>2020-02-25 13:09:20 +0100
commit022796c82f5dde0079d5cfdb7fd8ead3e8bc446d (patch)
treeedce96ede27664fcb46681927f56be64620ef61d /libavcodec
parentb484eb2556608d6a818b27c705d959c1c2cd44ee (diff)
downloadffmpeg-022796c82f5dde0079d5cfdb7fd8ead3e8bc446d.tar.gz
avcodec/utvideodec: add support for UQY0
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/utvideodec.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c
index d5af9d53a8..4da257fc61 100644
--- a/libavcodec/utvideodec.c
+++ b/libavcodec/utvideodec.c
@@ -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;