From c460258f5a85d8d65261b524f23a3608185e58e4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 8 Jul 2013 20:34:26 +0200 Subject: command: add screenshot_to_file command --- core/screenshot.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/screenshot.h') diff --git a/core/screenshot.h b/core/screenshot.h index 916a875505..1b12ac9b73 100644 --- a/core/screenshot.h +++ b/core/screenshot.h @@ -34,6 +34,12 @@ void screenshot_init(struct MPContext *mpctx); void screenshot_request(struct MPContext *mpctx, int mode, bool each_frame, bool osd); +// filename: where to store the screenshot; doesn't try to find an alternate +// name if the file already exists +// mode, osd: same as in screenshot_request() +void screenshot_to_file(struct MPContext *mpctx, const char *filename, int mode, + bool osd); + // Called by the playback core code when a new frame is displayed. void screenshot_flip(struct MPContext *mpctx); -- cgit v1.2.3