[FFmpeg-cvslog] hevc: offer DXVA2 for 10bit 420
Anton Khirnov
git at videolan.org
Tue Jan 24 17:32:44 EET 2017
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jun 29 09:33:57 2016 +0200| [33f6690eb4e21acc4b581688eecfc4cc5ea9515e] | committer: Anton Khirnov
hevc: offer DXVA2 for 10bit 420
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=33f6690eb4e21acc4b581688eecfc4cc5ea9515e
---
libavcodec/hevc.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 177cf93..5e1b3a0 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -397,10 +397,13 @@ static int set_sps(HEVCContext *s, const HEVCSPS *sps)
export_stream_params(s->avctx, &s->ps, sps);
- if (sps->pix_fmt == AV_PIX_FMT_YUV420P || sps->pix_fmt == AV_PIX_FMT_YUVJ420P) {
+ if (sps->pix_fmt == AV_PIX_FMT_YUV420P || sps->pix_fmt == AV_PIX_FMT_YUVJ420P ||
+ sps->pix_fmt == AV_PIX_FMT_YUV420P10) {
#if CONFIG_HEVC_DXVA2_HWACCEL
*fmt++ = AV_PIX_FMT_DXVA2_VLD;
#endif
+ }
+ if (sps->pix_fmt == AV_PIX_FMT_YUV420P || sps->pix_fmt == AV_PIX_FMT_YUVJ420P) {
#if CONFIG_HEVC_D3D11VA_HWACCEL
*fmt++ = AV_PIX_FMT_D3D11VA_VLD;
#endif
More information about the ffmpeg-cvslog
mailing list