summaryrefslogtreecommitdiffstats
path: root/core/screenshot.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-08 21:55:44 +0200
committerwm4 <wm4@nowhere>2013-07-08 21:55:44 +0200
commit31f685040bd2152d541ed16cf441c6b5e7e430fd (patch)
treeb8351b2847231bbc15d883a622ac972945cce6b4 /core/screenshot.h
parent73c76de91edbf8a55eb725196ff54583e3428510 (diff)
parent7a71a2cc483d17bed94408d5aee6fba6893558cb (diff)
downloadmpv-31f685040bd2152d541ed16cf441c6b5e7e430fd.tar.bz2
mpv-31f685040bd2152d541ed16cf441c6b5e7e430fd.tar.xz
Merge branch 'master' into remove_old_demuxers
Conflicts: DOCS/man/en/changes.rst DOCS/man/en/options.rst
Diffstat (limited to 'core/screenshot.h')
-rw-r--r--core/screenshot.h6
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);