mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
hevc: offer DXVA2 for 10bit 420
This commit is contained in:
parent
38efff92f1
commit
33f6690eb4
@ -397,10 +397,13 @@ static int set_sps(HEVCContext *s, const HEVCSPS *sps)
|
|||||||
|
|
||||||
export_stream_params(s->avctx, &s->ps, 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
|
#if CONFIG_HEVC_DXVA2_HWACCEL
|
||||||
*fmt++ = AV_PIX_FMT_DXVA2_VLD;
|
*fmt++ = AV_PIX_FMT_DXVA2_VLD;
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
if (sps->pix_fmt == AV_PIX_FMT_YUV420P || sps->pix_fmt == AV_PIX_FMT_YUVJ420P) {
|
||||||
#if CONFIG_HEVC_D3D11VA_HWACCEL
|
#if CONFIG_HEVC_D3D11VA_HWACCEL
|
||||||
*fmt++ = AV_PIX_FMT_D3D11VA_VLD;
|
*fmt++ = AV_PIX_FMT_D3D11VA_VLD;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user