diff options
author | wm4 <wm4@nowhere> | 2017-12-01 05:26:37 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-12-01 05:57:41 +0100 |
commit | 9345964bad6413a94447b3a1c79dca6b878f0ec4 (patch) | |
tree | 1f4f00202adc9e28b4fc62de1be180eaf00f6a6b /video/decode/hw_d3d11va.c | |
parent | 7e87feaf15d5ab99473d13856bb247a0ed10e521 (diff) |
d3d11: move code for d3d11eglrgb hack
Diffstat (limited to 'video/decode/hw_d3d11va.c')
-rw-r--r-- | video/decode/hw_d3d11va.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/video/decode/hw_d3d11va.c b/video/decode/hw_d3d11va.c index 95bfad38fe..eabb984dec 100644 --- a/video/decode/hw_d3d11va.c +++ b/video/decode/hw_d3d11va.c @@ -78,22 +78,12 @@ static struct mp_hwdec_ctx *d3d11_create_dev(struct mpv_global *global, return ctx; } -static struct mp_image *d3d11_update_image_attribs(struct lavc_ctx *s, - struct mp_image *img) -{ - if (img->params.hw_subfmt == IMGFMT_NV12) - mp_image_setfmt(img, IMGFMT_D3D11NV12); - - return img; -} - const struct vd_lavc_hwdec mp_vd_lavc_d3d11va = { .type = HWDEC_D3D11VA, .image_format = IMGFMT_D3D11VA, .generic_hwaccel = true, .set_hwframes = true, .hwframes_refine = d3d_hwframes_refine, - .process_image = d3d11_update_image_attribs, }; const struct vd_lavc_hwdec mp_vd_lavc_d3d11va_copy = { |