1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 21:06:00 +00:00
mpv/video/out/opengl
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
..
angle_dynamic.c
angle_dynamic.h
common.c vo_gpu: ra_gl: fix minimum GLSL version to 120 2017-11-03 11:53:31 +01:00
common.h vo_opengl: refactor into vo_gpu 2017-09-21 15:00:55 +02:00
context_android.c vo_gpu/context_android: replace both options with android-surface-size 2018-01-02 15:04:31 -08:00
context_angle.c vo_gpu: move d3d11_screenshot to shared code 2017-11-07 20:27:13 +11:00
context_cocoa.c osx: code cleanups and cosmetic fixes 2018-01-20 14:43:49 -08:00
context_drm_egl.c video: probe format of primary plane in drm/egl context 2017-12-03 17:30:17 +02:00
context_dxinterop.c vo_gpu: convert windows/osx hwdecs/contexts to new API 2017-09-21 15:01:17 +02:00
context_glx.c vo_opengl: refactor into vo_gpu 2017-09-21 15:00:55 +02:00
context_mali_fbdev.c vo_opengl: refactor into vo_gpu 2017-09-21 15:00:55 +02:00
context_rpi.c vo_gpu: rpi: defer gl_ctx_resize until after gl_ctx_init 2018-01-15 23:16:17 -08:00
context_vdpau.c vo_gpu: simplify structs / names 2017-09-22 16:58:55 +02:00
context_wayland.c wayland_common: implement output tracking, cleanups and bugfixes 2017-10-09 02:23:04 +01:00
context_win.c vo_gpu: win: remove exclusive-fullscreen detection hack 2017-12-20 14:53:41 +11:00
context_x11egl.c vo_opengl: refactor into vo_gpu 2017-09-21 15:00:55 +02:00
context.c vo_gpu: simplify structs / names 2017-09-22 16:58:55 +02:00
context.h vo_gpu: simplify structs / names 2017-09-22 16:58:55 +02:00
cuda_dynamic.c
cuda_dynamic.h
egl_helpers.c vo_gpu: EGL: provide SwapInterval to generic code 2017-12-27 04:13:46 -07:00
egl_helpers.h vo_opengl: refactor into vo_gpu 2017-09-21 15:00:55 +02:00
formats.c
formats.h vo_opengl: refactor into vo_gpu 2017-09-21 15:00:55 +02:00
gl_headers.h
hwdec_cuda.c hwdec: don't require setting legacy hwdec fields 2017-12-02 04:53:51 +01:00
hwdec_d3d11egl.c video: rewrite filtering glue code 2018-01-30 03:10:27 -08:00
hwdec_d3d11eglrgb.c video: rewrite filtering glue code 2018-01-30 03:10:27 -08:00
hwdec_drmprime_drm.c vo_gpu: hwdec_drmprime_drm: don't crash for non-GL contexts 2017-12-17 11:00:51 -08:00
hwdec_dxva2egl.c hwdec: don't require setting legacy hwdec fields 2017-12-02 04:53:51 +01:00
hwdec_dxva2gldx.c hwdec: don't require setting legacy hwdec fields 2017-12-02 04:53:51 +01:00
hwdec_ios.m hwdec: don't require setting legacy hwdec fields 2017-12-02 04:53:51 +01:00
hwdec_osx.c hwdec: don't require setting legacy hwdec fields 2017-12-02 04:53:51 +01:00
hwdec_rpi.c vo_gpu: hwdec: remove redundant fields 2017-12-01 05:57:41 +01:00
hwdec_vaegl.c Fix various typos in log messages 2017-12-03 21:24:18 +01:00
hwdec_vdpau.c vo_gpu: hwdec: remove redundant fields 2017-12-01 05:57:41 +01:00
ra_gl.c vo_gpu: attempt re-using the FBO format for p->output_tex 2017-12-25 00:47:53 +01:00
ra_gl.h vo_opengl: refactor into vo_gpu 2017-09-21 15:00:55 +02:00
utils.c vo_gpu: ra_gl: remove stride hack 2017-11-12 13:49:00 +01:00
utils.h vo_gpu: gl: implement proper extension string search 2017-10-02 17:30:27 +02:00