0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/DOCS/man
wm4 b135af6842 video: add mp_image_params.hw_flags and add an example
It seems this will be useful for Rokchip DRM hwcontext integration.

DRM hwcontexts have additional internal structure which can be different
depending on the decoder, and which is not part of the generic hwcontext
API. Rockchip has 1 layer, which EGL interop happens to translate to a
RGB texture, while VAAPI (mapped as DRM hwcontext) will use multiple
layers. Both will use sw_format=nv12, and thus are indistinguishable on
the mp_image_params level. But this is needed to initialize the EGL
mapping and the vo_gpu video renderer correctly.

We hope that the layer count is enough to tell whether EGL will
translate the data to a RGB texture (vs. 2 texture resembling raw nv12
data). For that we introduce MP_IMAGE_HW_FLAG_OPAQUE.

This commit adds the flag, infrastructure to set it, and an "example"
for D3D11.

The D3D11 addition is quite useless at this point. But later we want to
get rid of d3d11_update_image_attribs() anyway, while we still need a
way to force d3d11vpp filter insertion, so maybe it has some
justification (who knows). In any case it makes testing this easier.
Obviously it also adds some basic support for triggering the opaque
format for decoding, which will use a driver-specific format, but which
is not supported in shaders. The opaque flag is not used to determine
whether d3d11vpp needs to be inserted, though.
2017-10-16 15:02:12 +02:00
..
af.rst af, vf: improvements to libavfilter bridge 2017-05-31 17:42:55 +02:00
ao.rst ao_rsound: allow setting the host 2017-08-21 15:46:00 +02:00
changes.rst manpage: mention the client API/interface change logs 2016-09-02 09:48:35 +02:00
encode.rst man: fix grammar issues 2015-12-19 09:26:41 +01:00
input.rst manpage: correct some comments about ordered chapters 2017-10-11 22:45:47 +02:00
ipc.rst manpage: document tricky issue with IPC observe_property command 2017-05-16 12:20:39 +02:00
javascript.rst manpage: upcase JavaScript for section title case consistency. 2017-07-17 15:42:10 +03:00
libmpv.rst manpage: define stricter rules for C plugin return values 2017-01-14 17:41:04 +01:00
lua.rst manpage: replace gendered pronouns 2017-04-19 16:05:56 +02:00
mpv.rst stats: add documentation 2017-10-09 20:48:44 +02:00
options.rst video: add mp_image_params.hw_flags and add an example 2017-10-16 15:02:12 +02:00
osc.rst osc: add user_opts.boxmaxchars for box layout title limit 2017-04-19 20:35:58 +01:00
stats.rst stats: clarify documentation 2017-10-13 00:28:41 +02:00
vf.rst vf_eq: remove this filter 2017-08-22 15:58:49 +02:00
vo.rst vo_gpu: add android opengl backend 2017-10-09 18:36:54 +02:00