diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2015-08-26 14:55:40 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2015-08-27 17:05:44 +0200 |
commit | 1dd854e10fe19d3a9cee38f886f66707c082c132 (patch) | |
tree | 51889832ba59b124f307593d082fe9f15409990e /libavcodec/hevc.c | |
parent | bfe525e6328e506ffab055ab5dc6acb2dfdfe8e5 (diff) | |
download | ffmpeg-1dd854e10fe19d3a9cee38f886f66707c082c132.tar.gz |
vaapi: Add hevc hwaccel support
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r-- | libavcodec/hevc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 3f1a2bb8ac..e7ac50ef59 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -328,7 +328,7 @@ static void export_stream_params(AVCodecContext *avctx, const HEVCParamSets *ps, static int set_sps(HEVCContext *s, const HEVCSPS *sps, enum AVPixelFormat pix_fmt) { - #define HWACCEL_MAX (CONFIG_HEVC_DXVA2_HWACCEL + CONFIG_HEVC_D3D11VA_HWACCEL + CONFIG_HEVC_VDPAU_HWACCEL) + #define HWACCEL_MAX (CONFIG_HEVC_DXVA2_HWACCEL + CONFIG_HEVC_D3D11VA_HWACCEL + CONFIG_HEVC_VAAPI_HWACCEL + CONFIG_HEVC_VDPAU_HWACCEL) enum AVPixelFormat pix_fmts[HWACCEL_MAX + 2], *fmt = pix_fmts; int ret, i; @@ -352,6 +352,9 @@ static int set_sps(HEVCContext *s, const HEVCSPS *sps, enum AVPixelFormat pix_fm #if CONFIG_HEVC_D3D11VA_HWACCEL *fmt++ = AV_PIX_FMT_D3D11VA_VLD; #endif +#if CONFIG_HEVC_VAAPI_HWACCEL + *fmt++ = AV_PIX_FMT_VAAPI; +#endif #if CONFIG_HEVC_VDPAU_HWACCEL *fmt++ = AV_PIX_FMT_VDPAU; #endif |