summaryrefslogtreecommitdiffstats
path: root/video/out/libmpv.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-04-20 19:28:38 +0200
committerJan Ekström <jeebjp@gmail.com>2018-04-29 02:21:32 +0300
commit9825bbb8cf5090bbc9bd652687f2f196de54e7f7 (patch)
tree706c0a709de67b1593ab7e7f803e8d0c3d8cb570 /video/out/libmpv.h
parent67689ff6b42173b72bffecf23de3507e3ab605b0 (diff)
downloadmpv-9825bbb8cf5090bbc9bd652687f2f196de54e7f7.tar.bz2
mpv-9825bbb8cf5090bbc9bd652687f2f196de54e7f7.tar.xz
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.
Diffstat (limited to 'video/out/libmpv.h')
-rw-r--r--video/out/libmpv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/libmpv.h b/video/out/libmpv.h
index ae154bbd24..4544a278db 100644
--- a/video/out/libmpv.h
+++ b/video/out/libmpv.h
@@ -52,6 +52,9 @@ struct render_backend_fns {
void (*reconfig)(struct render_backend *ctx, struct mp_image_params *params);
// Like VOCTRL_RESET.
void (*reset)(struct render_backend *ctx);
+ // Like vo_driver.get_image().
+ struct mp_image *(*get_image)(struct render_backend *ctx, int imgfmt,
+ int w, int h, int stride_align);
// This has two purposes: 1. set queue attributes on VO, 2. update the
// renderer's OSD pointer. Keep in mind that as soon as the caller releases
// the renderer lock, the VO pointer can become invalid. The OSD pointer