mpv/video/out
wm4 76276c9210 video: rewrite filtering glue code
Get rid of the old vf.c code. Replace it with a generic filtering
framework, which can potentially handle more than just --vf. At least
reimplementing --af with this code is planned.

This changes some --vf semantics (including runtime behavior and the
"vf" command). The most important ones are listed in interface-changes.

vf_convert.c is renamed to f_swscale.c. It is now an internal filter
that can not be inserted by the user manually.

f_lavfi.c is a refactor of player/lavfi.c. The latter will be removed
once --lavfi-complex is reimplemented on top of f_lavfi.c. (which is
conceptually easy, but a big mess due to the data flow changes).

The existing filters are all changed heavily. The data flow of the new
filter framework is different. Especially EOF handling changes - EOF is
now a "frame" rather than a state, and must be passed through exactly
once.

Another major thing is that all filters must support dynamic format
changes. The filter reconfig() function goes away. (This sounds complex,
but since all filters need to handle EOF draining anyway, they can use
the same code, and it removes the mess with reconfig() having to predict
the output format, which completely breaks with libavfilter anyway.)

In addition, there is no automatic format negotiation or conversion.
libavfilter's primitive and insufficient API simply doesn't allow us to
do this in a reasonable way. Instead, filters can use f_autoconvert as
sub-filter, and tell it which formats they support. This filter will in
turn add actual conversion filters, such as f_swscale, to perform
necessary format changes.

vf_vapoursynth.c uses the same basic principle of operation as before,
but with worryingly different details in data flow. Still appears to
work.

The hardware deint filters (vf_vavpp.c, vf_d3d11vpp.c, vf_vdpaupp.c) are
heavily changed. Fortunately, they all used refqueue.c, which is for
sharing the data flow logic (especially for managing future/past
surfaces and such). It turns out it can be used to factor out most of
the data flow. Some of these filters accepted software input. Instead of
having ad-hoc upload code in each filter, surface upload is now
delegated to f_autoconvert, which can use f_hwupload to perform this.

Exporting VO capabilities is still a big mess (mp_stream_info stuff).

The D3D11 code drops the redundant image formats, and all code uses the
hw_subfmt (sw_format in FFmpeg) instead. Although that too seems to be a
big mess for now.

f_async_queue is unused.
2018-01-30 03:10:27 -08:00
..
cocoa osx: code cleanups and cosmetic fixes 2018-01-20 14:43:49 -08:00
d3d11 video: rewrite filtering glue code 2018-01-30 03:10:27 -08:00
gpu vo_gpu: check for RA_CAP_FRAGCOORD in dumb mode too 2018-01-30 20:22:58 +11:00
opengl video: rewrite filtering glue code 2018-01-30 03:10:27 -08:00
vulkan vo_gpu: vulkan: fix segfault due to index mismatch 2017-12-25 00:47:53 +01:00
wayland wayland_common: rewrite from scratch 2017-10-03 19:36:02 +01:00
win32 vo_gpu: win: remove exclusive-fullscreen detection hack 2017-12-20 14:53:41 +11:00
aspect.c
aspect.h
bitmap_packer.c
bitmap_packer.h
cocoa_common.h
cocoa_common.m Revert "cocoa: re-enable double buffering" 2017-09-22 23:08:46 +10:00
d3d_shader_420p.h
d3d_shader_yuv.hlsl
dither.c
dither.h
drm_atomic.c video: fix double free in drm_atomic_create_context 2017-12-03 17:30:17 +02:00
drm_atomic.h Add DRM_PRIME Format Handling and Display for RockChip MPP decoders 2017-10-23 21:07:24 +02:00
drm_common.c video : Move drm options to substruct. 2017-10-23 21:08:20 +02:00
drm_common.h video : Move drm options to substruct. 2017-10-23 21:08:20 +02:00
drm_prime.c Add DRM_PRIME Format Handling and Display for RockChip MPP decoders 2017-10-23 21:07:24 +02:00
drm_prime.h Add DRM_PRIME Format Handling and Display for RockChip MPP decoders 2017-10-23 21:07:24 +02:00
filter_kernels.c
filter_kernels.h
vo.c video: change some remaining vo_opengl mentions to vo_gpu 2018-01-20 14:43:49 -08:00
vo.h video: change some remaining vo_opengl mentions to vo_gpu 2018-01-20 14:43:49 -08:00
vo_caca.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
vo_direct3d.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
vo_drm.c sws_utils: don't force callers to provide option struct 2018-01-18 00:59:07 -08:00
vo_gpu.c player: add internal `vo-resize` command 2017-12-27 14:29:15 -07:00
vo_image.c
vo_lavc.c vo_lavc: remove messy delayed subtitle rendering logic 2017-11-07 05:29:26 +01:00
vo_mediacodec_embed.c vo_mediacodec_embed: implement hwcontext 2017-12-20 15:45:55 +11:00
vo_null.c
vo_opengl_cb.c vo_gpu: make it possible to load multiple hwdec interop drivers 2017-12-01 05:57:01 +01:00
vo_rpi.c vo_rpi: fix build (probably) 2017-10-17 09:28:00 +02:00
vo_sdl.c
vo_tct.c sws_utils: don't force callers to provide option struct 2018-01-18 00:59:07 -08:00
vo_vaapi.c video: change some mp_image_pool semantics 2018-01-13 03:26:45 -08:00
vo_vdpau.c video: change some remaining vo_opengl mentions to vo_gpu 2018-01-20 14:43:49 -08:00
vo_x11.c sws_utils: don't force callers to provide option struct 2018-01-18 00:59:07 -08:00
vo_xv.c build: remove POSIX/sysv shared memory test 2017-12-02 23:19:13 +01:00
w32_common.c w32_common: refactor and improve window state handling 2017-12-19 23:22:52 +11:00
w32_common.h
wayland_common.c vo: add support for externally driven renderloop and make wayland use it 2017-12-05 08:26:24 +00:00
wayland_common.h wayland_common: improve cursor code and scale cursor properly 2017-10-22 05:53:20 +01:00
win_state.c video: change some remaining vo_opengl mentions to vo_gpu 2018-01-20 14:43:49 -08:00
win_state.h
x11_common.c
x11_common.h Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00