From 9825bbb8cf5090bbc9bd652687f2f196de54e7f7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 20 Apr 2018 19:28:38 +0200 Subject: vo_libmpv: add support for DR With all the preparation work done, this only has to do the annoying dance of passing it through all the damn layers. --- video/out/gpu/libmpv_gpu.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'video/out/gpu') diff --git a/video/out/gpu/libmpv_gpu.c b/video/out/gpu/libmpv_gpu.c index d08b3a56b9..3674d678c7 100644 --- a/video/out/gpu/libmpv_gpu.c +++ b/video/out/gpu/libmpv_gpu.c @@ -182,6 +182,14 @@ static int render(struct render_backend *ctx, mpv_render_param *params, return 0; } +static struct mp_image *get_image(struct render_backend *ctx, int imgfmt, + int w, int h, int stride_align) +{ + struct priv *p = ctx->priv; + + return gl_video_get_image(p->renderer, imgfmt, w, h, stride_align); +} + static void destroy(struct render_backend *ctx) { struct priv *p = ctx->priv; @@ -208,5 +216,6 @@ const struct render_backend_fns render_backend_gpu = { .resize = resize, .get_target_size = get_target_size, .render = render, + .get_image = get_image, .destroy = destroy, }; -- cgit v1.2.3