summaryrefslogtreecommitdiffstats
path: root/libvo/video_out.h
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2011-10-06 20:46:01 +0200
committerUoti Urpala <uau@mplayer2.org>2011-11-25 23:56:28 +0200
commit3041ee8d6c97fbccfe891edad5b57143fb1c6c2a (patch)
tree6edbd27ec73ec92432c559459d20a8303109a648 /libvo/video_out.h
parent01cf896a2f0d8be92c6d6633095fa2719a8c0e58 (diff)
downloadmpv-3041ee8d6c97fbccfe891edad5b57143fb1c6c2a.tar.bz2
mpv-3041ee8d6c97fbccfe891edad5b57143fb1c6c2a.tar.xz
core: add screenshot mode for actual VO window contents
The screenshot command normally converts the currently displayed video frame to an image. Add support for an alternative screenshot mode that is supposed to capture the real window contents. Such a screenshot contains a possibly scaled version of the frame, the OSD, and subtitles. Add a default key binding Alt+s for taking screenshots in this mode. This needs special VO support, and might not work with all VOs (this commit does not yet contain an implementation for any VO, only the infrastructure).
Diffstat (limited to 'libvo/video_out.h')
-rw-r--r--libvo/video_out.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libvo/video_out.h b/libvo/video_out.h
index fd61d9c1a1..bd7b2e8fa5 100644
--- a/libvo/video_out.h
+++ b/libvo/video_out.h
@@ -108,6 +108,13 @@ typedef struct mp_eosd_res {
// VOCTRL_SCREENSHOT
struct voctrl_screenshot_args {
+ // 0: Save image of the currently displayed video frame, in original
+ // resolution.
+ // 1: Save full screenshot of the window. Should contain OSD, EOSD, and the
+ // scaled video.
+ // The value of this variable can be ignored if only a single method is
+ // implemented.
+ int full_window;
// Will be set to a newly allocated image, that contains the screenshot.
// The caller has to free the pointer with free_mp_image().
// It is not specified whether the image data is a copy or references the