From 01cf896a2f0d8be92c6d6633095fa2719a8c0e58 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 6 Oct 2011 20:46:01 +0200 Subject: core: add infrastructure to get screenshots from VOs Add a VO command (VOCTRL_SCREENSHOT) which requests a screenshot directly from the VO. If VO support is available, screenshots will be taken instantly (no more 1 or 2 frames delay). Taking screenshots when hardware decoding is in use will also work (vdpau). Additionally, the screenshots will now use the same colorspace as the video display. Change the central MPContext to be allocated with talloc so that it can be used as a talloc parent context. This commit does not yet implement the functionality for any VO (added in subsequent commits). The old screenshot video filter is not needed anymore if VO support is present, and in that case will not be used even if it is present in the filter chain. If VO support is not available then the filter is used like before. Note that the filter still has some of the old problems, such as delaying the screenshot by at least 1 frame. --- Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6013ca3c88..1f7422c34c 100644 --- a/Makefile +++ b/Makefile @@ -504,6 +504,7 @@ SRCS_MPLAYER = command.c \ mp_fifo.c \ mplayer.c \ parser-mpcmd.c \ + screenshot.c \ input/input.c \ libao2/ao_mpegpes.c \ libao2/ao_null.c \ -- cgit v1.2.3