From 76844c9c519f4366463a70c8c2366a3d5dc9046c Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 20 Apr 2018 17:48:44 +0200 Subject: 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. --- video/out/vo.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'video/out/vo.h') 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 @@ -327,6 +327,14 @@ struct vo_driver { struct mp_image *(*get_image)(struct vo *vo, int imgfmt, int w, int h, 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. -- cgit v1.2.3