1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00
mpv/DOCS/man
wm4 9f595f3a80 vo_gpu: make screenshots use the GL renderer
Using the GL renderer for color conversion will make sure screenshots
will use the same conversion as normal video rendering. It can do this
for all types of screenshots.

The logic when to write 16 bit PNGs changes. To approximate the old
behavior, we decide by looking whether the source video format has more
than 8 bits per component. We apply this logic even for window
screenshots. Also, 16 bit PNGs now always include an unused alpha
channel. The reason is that FFmpeg has RGB48 and RGBA64 formats, but no
RGB064. RGB48 is 3 bytes and usually not supported by GPUs for
rendering, so we have to use RGBA64, which forces an alpha channel.

Will break for users who use --target-trc and similar options.

I considered creating a new gl_video context, but it could double GPU
memory use, so I didn't.

This uses FBOs instead of glGetTexImage(), because that increases the
chance it could work on GLES (e.g. ANGLE). Untested. No support for the
Vulkan and D3D11 backends yet.

Fixes #5498. Also fixes #5240, because the code for reading back is not
used with the new code path.
2018-02-11 17:45:51 -08:00
..
af.rst manpage: clarify some --vf options 2018-01-31 11:12:08 +01:00
ao.rst ao_null: add --ao-null-format option for debugging 2018-01-30 03:10:27 -08:00
changes.rst manpage: mention the client API/interface change logs 2016-09-02 09:48:35 +02:00
encode.rst encode: implement --oset-metadata, and --oremove-metadata 2017-12-26 03:33:19 -07:00
input.rst codecs: remove unused family field 2018-02-01 10:21:55 +01:00
ipc.rst manpage: document tricky issue with IPC observe_property command 2017-05-16 12:20:39 +02:00
javascript.rst js: implement mp.msg.trace() 2017-12-16 02:25:24 -08:00
libmpv.rst manpage: define stricter rules for C plugin return values 2017-01-14 17:41:04 +01:00
lua.rst js: implement mp.msg.trace() 2017-12-16 02:25:24 -08:00
mpv.rst options: add string list -toggle action 2018-01-25 20:18:32 -08:00
options.rst vo_gpu: make screenshots use the GL renderer 2018-02-11 17:45:51 -08:00
osc.rst osc: add seekbarkeyframes as a user option 2018-01-03 15:35:39 +00:00
stats.rst stats: clarify documentation 2017-10-13 00:28:41 +02:00
vf.rst manpage: clarify some --vf options 2018-01-31 11:12:08 +01:00
vo.rst manpage: remove stale vo_wayland entry 2018-01-13 03:26:45 -08:00