diff options
author | ManojGuptaBonda <mbonda@nvidia.com> | 2019-04-26 09:43:36 +0530 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2019-05-05 11:35:35 -0700 |
commit | d7d82cfcd4394fde5f9b53ab0251ce1b55b674a7 (patch) | |
tree | d710fcfaa2ea0e1c5064ed3c92aba88bd648cac8 /libavcodec/hevcdec.c | |
parent | fc8fb88f10efe7e15c08c12c8895d36cfc92316d (diff) | |
download | ffmpeg-d7d82cfcd4394fde5f9b53ab0251ce1b55b674a7.tar.gz |
avcodec/hevcdec: Declare that VDPAU can handle HEVC 4:4:4 content
The latest generation video decoder on the Turing chips supports
decoding HEVC 4:4:4. This change adds AV_PIX_FMT_VDPAU as a valid format
for HEVC 4:4:4 8 bit.
Diffstat (limited to 'libavcodec/hevcdec.c')
-rw-r--r-- | libavcodec/hevcdec.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 857c10dd12..515b346535 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -408,8 +408,15 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps) *fmt++ = AV_PIX_FMT_CUDA; #endif break; - case AV_PIX_FMT_YUV420P12: case AV_PIX_FMT_YUV444P: +#if CONFIG_HEVC_VDPAU_HWACCEL + *fmt++ = AV_PIX_FMT_VDPAU; +#endif +#if CONFIG_HEVC_NVDEC_HWACCEL + *fmt++ = AV_PIX_FMT_CUDA; +#endif + break; + case AV_PIX_FMT_YUV420P12: case AV_PIX_FMT_YUV444P10: case AV_PIX_FMT_YUV444P12: #if CONFIG_HEVC_NVDEC_HWACCEL |