diff options
author | wm4 <wm4@nowhere> | 2013-07-08 20:34:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-08 20:37:11 +0200 |
commit | c460258f5a85d8d65261b524f23a3608185e58e4 (patch) | |
tree | 60974ce21dfb5fe338bf091548e1d0155bba19e9 /core/screenshot.h | |
parent | 0bb41524f0a9ed89559b50bd7407de9d8b8aee40 (diff) | |
download | mpv-c460258f5a85d8d65261b524f23a3608185e58e4.tar.bz2 mpv-c460258f5a85d8d65261b524f23a3608185e58e4.tar.xz |
command: add screenshot_to_file command
Diffstat (limited to 'core/screenshot.h')
-rw-r--r-- | core/screenshot.h | 6 |
1 files changed, 6 insertions, 0 deletions
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); |