diff options
author | Philip Langdale <philipl@overt.org> | 2018-10-06 18:11:52 -0700 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2019-02-16 08:47:36 -0800 |
commit | e06ccfbe1d33c00d6f1df202a514219c7fdb7c03 (patch) | |
tree | c5c8e12daa938de6bab9bf1e1fe7a03a2093dc01 /libavcodec/hevcdec.c | |
parent | f4ea930a119298c6110ee4e3d24219a66e27e230 (diff) | |
download | ffmpeg-e06ccfbe1d33c00d6f1df202a514219c7fdb7c03.tar.gz |
avcodec/nvdec: Add support for decoding HEVC 4:4:4 content
The latest generation video decoder on the Turing chips supports
decoding HEVC 4:4:4. Supporting this is relatively straight-forward;
we need to account for the different chroma format and pick the
right output and sw formats at the right times.
There was one bug which was the hard-coded assumption that the
first chroma plane would be half-height; I fixed this to use the
actual shift value on the plane.
We also need to pass the SPS and PPS range extension flags.
Diffstat (limited to 'libavcodec/hevcdec.c')
-rw-r--r-- | libavcodec/hevcdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index b2a87d55db..967f8f1def 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -409,6 +409,9 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps) #endif break; case AV_PIX_FMT_YUV420P12: + case AV_PIX_FMT_YUV444P: + case AV_PIX_FMT_YUV444P10: + case AV_PIX_FMT_YUV444P12: #if CONFIG_HEVC_NVDEC_HWACCEL *fmt++ = AV_PIX_FMT_CUDA; #endif |