diff options
author | wm4 <wm4@nowhere> | 2015-04-20 23:11:03 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-20 23:11:03 +0200 |
commit | a3680d1b2d137461008d38486cdb2d5013291e61 (patch) | |
tree | e3bafaac8a13edf57ff3456333a26fd057ac0790 /player/screenshot.h | |
parent | ccfe4d64184ae4c2983ae6b099c7c7ebb3770d0f (diff) | |
download | mpv-a3680d1b2d137461008d38486cdb2d5013291e61.tar.bz2 mpv-a3680d1b2d137461008d38486cdb2d5013291e61.tar.xz |
client API: add a screenshot_raw command
Requested.
The wild code for setting up the mpv_node probably deserves to be
cleaned up later.
Fixes #1800.
Diffstat (limited to 'player/screenshot.h')
-rw-r--r-- | player/screenshot.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/player/screenshot.h b/player/screenshot.h index 84b7ef4f58..9ebe9ef76e 100644 --- a/player/screenshot.h +++ b/player/screenshot.h @@ -39,6 +39,9 @@ void screenshot_request(struct MPContext *mpctx, int mode, bool each_frame, void screenshot_to_file(struct MPContext *mpctx, const char *filename, int mode, bool osd); +// mode is the same as in screenshot_request() +struct mp_image *screenshot_get_rgb(struct MPContext *mpctx, int mode); + // Called by the playback core code when a new frame is displayed. void screenshot_flip(struct MPContext *mpctx); |