mpv/video/filter
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
..
refqueue.c
refqueue.h
vf.c build: add preliminary LGPL mode 2017-09-21 13:56:27 +02:00
vf.h video: change --deinterlace behavior 2017-08-22 19:08:07 +02:00
vf_buffer.c video: deprecate almost all video filters 2017-04-02 18:00:16 +02:00
vf_crop.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
vf_d3d11vpp.c video: add mp_image_params.hw_flags and add an example 2017-10-16 15:02:12 +02:00
vf_dsize.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
vf_expand.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
vf_flip.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
vf_format.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
vf_gradfun.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
vf_lavfi.c vf_lavfi, af_lavfi: remove unused/deprecated include 2017-04-05 16:12:47 +02:00
vf_lavfi.h video: deprecate almost all video filters 2017-04-02 18:00:16 +02:00
vf_mirror.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
vf_noformat.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
vf_pullup.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
vf_rotate.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
vf_scale.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
vf_stereo3d.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
vf_sub.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
vf_vapoursynth.c vf_vapoursynth: fix inverted sign and restore 10 bit support 2017-08-07 19:31:15 +02:00
vf_vavpp.c vf_vavpp: restrict allowed sw upload formats to nv12/yuv420p 2017-09-30 16:22:16 +02:00
vf_vdpaupp.c video: change --deinterlace behavior 2017-08-22 19:08:07 +02:00
vf_yadif.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00