diff options
author | Linjie Fu <linjie.fu@intel.com> | 2020-01-15 10:02:21 +0300 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2020-02-24 03:09:51 +0300 |
commit | 669428ac5d9b39f718e7d46f52410722dd20b94a (patch) | |
tree | 61389156f928b5799a6646281d91b81af4ffd10d /libavcodec/hevcdec.c | |
parent | d2378645fbdd1da7acaa084ddcae90830f54589b (diff) |
lavc/hevcdec: add 4:2:2 8-bit/10-bit VAAPI decode support
Add decode support for 4:2:2 8-bt and 10-bit HEVC Range Extension clips.
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Diffstat (limited to 'libavcodec/hevcdec.c')
-rw-r--r-- | libavcodec/hevcdec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index c74881e814..7448be482c 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -427,6 +427,12 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps) *fmt++ = AV_PIX_FMT_CUDA; #endif break; + case AV_PIX_FMT_YUV422P: + case AV_PIX_FMT_YUV422P10LE: +#if CONFIG_HEVC_VAAPI_HWACCEL + *fmt++ = AV_PIX_FMT_VAAPI; +#endif + break; case AV_PIX_FMT_YUV420P12: case AV_PIX_FMT_YUV444P10: case AV_PIX_FMT_YUV444P12: |