mpv/common
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
..
av_common.c command: add demuxer-lavf-list property 2018-01-02 20:46:58 +00:00
av_common.h command: add demuxer-lavf-list property 2018-01-02 20:46:58 +00:00
av_log.c av_log: stop accessing private ffmpeg fields 2018-01-03 15:11:27 -08:00
av_log.h
codecs.c options: drop deprecated --vd/--ad codecs selection features 2017-01-19 15:38:58 +01:00
codecs.h options: deprecate codec family selection in --vd/--ad 2016-12-23 18:12:29 +01:00
common.c video: rewrite filtering glue code 2018-01-30 03:10:27 -08:00
common.h video: rewrite filtering glue code 2018-01-30 03:10:27 -08:00
encode.h encode: implement --oset-metadata, and --oremove-metadata 2017-12-26 03:33:19 -07:00
encode_lavc.c encode: implement --oset-metadata, and --oremove-metadata 2017-12-26 03:33:19 -07:00
encode_lavc.h encode_lavc: move from GPL 2+ to LGPL 2.1+. 2017-06-13 14:22:15 -04:00
global.h
msg.c msg: bump up log level of --log-file 2017-12-15 22:28:47 -08:00
msg.h msg.c/h: partially change license to LGPL 2017-05-05 06:53:23 +02:00
msg_control.h player: make sure version information is always included in --log-file 2017-05-22 18:31:39 +02:00
playlist.c
playlist.h
recorder.c Fix various typos in log messages 2017-12-03 21:24:18 +01:00
recorder.h player: add experimental stream recording feature 2017-02-07 17:05:17 +01:00
tags.c tags: add mp_tags_remove 2017-12-26 03:33:18 -07:00
tags.h tags: add mp_tags_remove 2017-12-26 03:33:18 -07:00
version.c build: move copyright statement to a shared location 2018-01-01 21:05:09 +00:00