diff options
author | wm4 <wm4@nowhere> | 2018-04-20 22:12:29 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-04-29 02:21:32 +0300 |
commit | 0be3a94e0b81d553849f9520f7ee9f2b6e34c6b4 (patch) | |
tree | 134776298cf75cab691454409f2c359096ba560b /video/out/libmpv.h | |
parent | 36565c099debbcfdfe800a5c2c1c9c9fada0a48b (diff) | |
download | mpv-0be3a94e0b81d553849f9520f7ee9f2b6e34c6b4.tar.bz2 mpv-0be3a94e0b81d553849f9520f7ee9f2b6e34c6b4.tar.xz |
vo_libmpv: support GPU rendered screenshots
Like DR, this needed a lot of preparation, and here's the boring glue
code that finally implements it.
Diffstat (limited to 'video/out/libmpv.h')
-rw-r--r-- | video/out/libmpv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/libmpv.h b/video/out/libmpv.h index 4544a278db..dc9d523b23 100644 --- a/video/out/libmpv.h +++ b/video/out/libmpv.h @@ -52,6 +52,8 @@ struct render_backend_fns { void (*reconfig)(struct render_backend *ctx, struct mp_image_params *params); // Like VOCTRL_RESET. void (*reset)(struct render_backend *ctx); + void (*screenshot)(struct render_backend *ctx, struct vo_frame *frame, + struct voctrl_screenshot *args); // Like vo_driver.get_image(). struct mp_image *(*get_image)(struct render_backend *ctx, int imgfmt, int w, int h, int stride_align); |