mpv/video
wm4 5bb24980ae vo_opengl: simplify screenshot code
Instead of reading back the image from textures, keep a reference to the
original image, and return that.

The main reason this was done this way was that originally, images
weren't refcounted, and would be deallocated or overwritten as soon as
the VO's draw call returned. But now there isn't really a good reason
for this anymore. One possibly _could_ argue that it was better because
other code could reuse the image sooner (e.g. for the cache), but on the
other hand, the VO runs already on a different thread, and filtering and
decoding each run on other threads too, so this argument probably
wouldn't hold up.
2015-01-22 18:31:10 +01:00
..
decode video: have a generic context struct for hwdec backends 2015-01-22 15:32:23 +01:00
filter video: have a generic context struct for hwdec backends 2015-01-22 15:32:23 +01:00
out vo_opengl: simplify screenshot code 2015-01-22 18:31:10 +01:00
csputils.c vo_opengl: handle grayscale input better, add YA16 support 2015-01-21 19:29:18 +01:00
csputils.h vo_opengl: handle grayscale input better, add YA16 support 2015-01-21 19:29:18 +01:00
fmt-conversion.c vo_opengl: handle grayscale input better, add YA16 support 2015-01-21 19:29:18 +01:00
fmt-conversion.h
hwdec.h video: handle hwdec screenshots differently 2015-01-22 18:18:23 +01:00
image_writer.c image_writer: check for conversion errors 2015-01-15 20:10:08 +01:00
image_writer.h
img_format.c video: try to keep implied alpha when using conversion filters 2015-01-21 21:49:15 +01:00
img_format.h vo_opengl: handle grayscale input better, add YA16 support 2015-01-21 19:29:18 +01:00
img_fourcc.h build: deal with endian mess 2014-07-10 00:58:56 +02:00
memcpy_pic.h
mp_image.c video: handle hwdec screenshots differently 2015-01-22 18:18:23 +01:00
mp_image.h video: remove things forgotten in previous commit 2014-12-03 23:12:22 +01:00
mp_image_pool.c mp_image_pool: allow passing pool=NULL in more places 2015-01-22 17:37:40 +01:00
mp_image_pool.h video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
sws_utils.c image_writer: check for conversion errors 2015-01-15 20:10:08 +01:00
sws_utils.h image_writer: check for conversion errors 2015-01-15 20:10:08 +01:00
vaapi.c video: handle hwdec screenshots differently 2015-01-22 18:18:23 +01:00
vaapi.h video: have a generic context struct for hwdec backends 2015-01-22 15:32:23 +01:00
vdpau.c video: handle hwdec screenshots differently 2015-01-22 18:18:23 +01:00
vdpau.h video: handle hwdec screenshots differently 2015-01-22 18:18:23 +01:00
vdpau_functions.inc video: handle hwdec screenshots differently 2015-01-22 18:18:23 +01:00
vdpau_mixer.c video: handle hwdec screenshots differently 2015-01-22 18:18:23 +01:00
vdpau_mixer.h vdpau_mixer: allow overriding frame opts 2014-05-02 01:08:04 +02:00