summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-04-20 17:48:44 +0200
committerJan Ekström <jeebjp@gmail.com>2018-04-29 02:21:32 +0300
commit76844c9c519f4366463a70c8c2366a3d5dc9046c (patch)
treeb62cb8753dea8fc16e35dc0f20679d1db95f1491 /video/out/vo.h
parent65f08253158ba9cb4c164a6cfd6da39b39d38e55 (diff)
downloadmpv-76844c9c519f4366463a70c8c2366a3d5dc9046c.tar.bz2
mpv-76844c9c519f4366463a70c8c2366a3d5dc9046c.tar.xz
vo: move DR helper code to a separate source file
So it can be reused by vo_libmpv.c, which needs to use it in a slightly different way.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index 4a54914962..947493268c 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -328,6 +328,14 @@ struct vo_driver {
int stride_align);
/*
+ * Thread-safe variant of get_image. Set at most one of these callbacks.
+ * This excludes _all_ synchronization magic. The only guarantee is that
+ * vo_driver.uninit is not called before this function returns.
+ */
+ struct mp_image *(*get_image_ts)(struct vo *vo, int imgfmt, int w, int h,
+ int stride_align);
+
+ /*
* Render the given frame to the VO's backbuffer. This operation will be
* followed by a draw_osd and a flip_page[_timed] call.
* mpi belongs to the VO; the VO must free it eventually.