summaryrefslogtreecommitdiffstats
path: root/video/mp_image.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-04 18:39:32 +0100
committerwm4 <wm4@nowhere>2013-01-13 20:04:10 +0100
commit6e0b7300447c4f8f82bc5467870a00d7c4f2095f (patch)
tree30d8751dd4ff414214f08d8fee3e62af56923a9d /video/mp_image.h
parentb7cacf9165290067b66b160b108790b89c080a3e (diff)
downloadmpv-6e0b7300447c4f8f82bc5467870a00d7c4f2095f.tar.bz2
mpv-6e0b7300447c4f8f82bc5467870a00d7c4f2095f.tar.xz
vf_screenshot: simplify
Instead of using a callback to "capture" the image next time the filter function is called, do it the other way around: on every filter invocation, create a reference to the image, and return it if a screenshot is requested. This also fixes the 1-frame delay when taking screenshots with the filter. This also allows simplifying screenshot.c.
Diffstat (limited to 'video/mp_image.h')
0 files changed, 0 insertions, 0 deletions