summaryrefslogtreecommitdiffstats
path: root/video/decode/d3d.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-12-01 06:47:37 +0100
committerwm4 <wm4@nowhere>2017-12-01 08:01:41 +0100
commitc5fac0c2b048b695bf217ae77530269605eebfb9 (patch)
treee2ce5d58346a93173b1e1ee4d1fda152261a54b8 /video/decode/d3d.c
parent643a1fc7de84b234d5a4723fa0ec31f9351e770b (diff)
downloadmpv-c5fac0c2b048b695bf217ae77530269605eebfb9.tar.bz2
mpv-c5fac0c2b048b695bf217ae77530269605eebfb9.tar.xz
vd_lavc: move entrypoint for hwframes_refine
The idea is to get rid of vd_lavc_hwdec, so special functionality like this has to go somewhere else. At this point, hwframes_refine is only needed for d3d11, and it doesn't do much, so for now the new callback has no context. In can be made more fancy if really needed.
Diffstat (limited to 'video/decode/d3d.c')
-rw-r--r--video/decode/d3d.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/decode/d3d.c b/video/decode/d3d.c
index dcaa0008b2..cab878bafe 100644
--- a/video/decode/d3d.c
+++ b/video/decode/d3d.c
@@ -80,7 +80,7 @@ bool d3d11_check_decoding(ID3D11Device *dev)
return !FAILED(hr) && (supported & D3D11_BIND_DECODER);
}
-void d3d_hwframes_refine(struct lavc_ctx *ctx, AVBufferRef *hw_frames_ctx)
+static void d3d11_refine_hwframes(AVBufferRef *hw_frames_ctx)
{
AVHWFramesContext *fctx = (void *)hw_frames_ctx->data;
@@ -127,4 +127,5 @@ static void d3d11_complete_image_params(struct mp_image *img)
const struct hwcontext_fns hwcontext_fns_d3d11 = {
.av_hwdevice_type = AV_HWDEVICE_TYPE_D3D11VA,
.complete_image_params = d3d11_complete_image_params,
+ .refine_hwframes = d3d11_refine_hwframes,
};