summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf.c
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-01-17 03:50:08 +0100
committerwm4 <wm4@mplayer2.org>2012-02-29 03:41:14 +0100
commit8b69d8a366df590c2160b36269dae424f93eabb7 (patch)
tree584dceea98ff8bb34cf98a279f510d0334edf9cb /libmpcodecs/vf.c
parent5fcd29eb4010835d2879304e7a404d575206fcbf (diff)
downloadmpv-8b69d8a366df590c2160b36269dae424f93eabb7.tar.bz2
mpv-8b69d8a366df590c2160b36269dae424f93eabb7.tar.xz
screenshot: allow forcing taking screenshots with the video filter
If the screenshot_force video filter is inserted, taking screenshots will always use the video filter, and skip the VO specific screenshot code. This can be useful if the VO code causes problems, or if it's intended to take screenshots from a specific location in the filter chain. The 'screenshot' filter is intended as fallback, it's not used if possible.
Diffstat (limited to 'libmpcodecs/vf.c')
-rw-r--r--libmpcodecs/vf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c
index d973db6d3e..dda871a86d 100644
--- a/libmpcodecs/vf.c
+++ b/libmpcodecs/vf.c
@@ -106,6 +106,7 @@ extern const vf_info_t vf_info_divtc;
extern const vf_info_t vf_info_harddup;
extern const vf_info_t vf_info_softskip;
extern const vf_info_t vf_info_screenshot;
+extern const vf_info_t vf_info_screenshot_force;
extern const vf_info_t vf_info_ass;
extern const vf_info_t vf_info_mcdeint;
extern const vf_info_t vf_info_yadif;
@@ -138,6 +139,7 @@ static const vf_info_t *const filter_list[] = {
&vf_info_lavc,
&vf_info_lavcdeint,
&vf_info_screenshot,
+ &vf_info_screenshot_force,
&vf_info_fspp,
&vf_info_uspp,