diff options
author | wm4 <wm4@nowhere> | 2012-11-01 02:12:47 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-01 02:12:47 +0100 |
commit | 84829a4ea1903e5db5782b72861fabc503a589cb (patch) | |
tree | 26b4acbaf6dd4b255278dcc67f28bd83357c3b86 /screenshot.h | |
parent | e45dd051c304dec189d0d4d792a89c2988c3fa71 (diff) | |
parent | f4069259cf7ffd24ac2a5b64e26a386185e94c7b (diff) | |
download | mpv-84829a4ea1903e5db5782b72861fabc503a589cb.tar.bz2 mpv-84829a4ea1903e5db5782b72861fabc503a589cb.tar.xz |
Merge branch 'osd_changes' into master
Conflicts:
DOCS/man/en/options.rst
Diffstat (limited to 'screenshot.h')
-rw-r--r-- | screenshot.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/screenshot.h b/screenshot.h index 6d205990f8..266077a107 100644 --- a/screenshot.h +++ b/screenshot.h @@ -22,21 +22,15 @@ #include <stdbool.h> struct MPContext; -struct mp_image; // One time initialization at program start. void screenshot_init(struct MPContext *mpctx); // Request a taking & saving a screenshot of the currently displayed frame. +// mode: 0: -, 1: save the actual output window contents, 2: with subtitles. // each_frame: If set, this toggles per-frame screenshots, exactly like the // screenshot slave command (MP_CMD_SCREENSHOT). -// full_window: If set, save the actual output window contents. -void screenshot_request(struct MPContext *mpctx, bool each_frame, - bool full_window); - -// Save the screenshot contained in the image to disk. -// The image can be in any format supported by libswscale. -void screenshot_save(struct MPContext *mpctx, struct mp_image *image); +void screenshot_request(struct MPContext *mpctx, int mode, bool each_frame); // Called by the playback core code when a new frame is displayed. void screenshot_flip(struct MPContext *mpctx); |