1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00
mpv/audio/filter
wm4 48f9431151 af: improve filter chain setup retry limit
af_reinit() is responsible for inserting automatic conversion filters
for channel remixing, format conversion, and resampling. We don't
require that a single filter can do all these (even though
af_lavrresample does nearly all of this, sometimes af_format has to be
used instead for format conversions). This makes setting up the chain
more complicated, and a way is needed to prevent endless appending of
conversion filters if a conversion is not possible.

Until now, this used a stupidly simple yet robust static retry limit to
detect failure. This is perfectly fine, and the limit (20) was good
enough to handle about ~5 filters. But with more filters, and if each
filter requires 3 additional conversion filters, this would fail. So
raise the limit to 4 retries per filter. This is still stupidly simple
and robust, but won't arbitrarily fail if the filter count is too large.
2013-05-12 21:45:05 +02:00
..
af_bs2b.c audio: add some setters for mp_audio, and require filters to use them 2013-05-12 21:24:54 +02:00
af_center.c af: use mp_chmap for mp_audio, include channel map in format negotiation 2013-05-12 21:24:54 +02:00
af_channels.c af: use mp_chmap for mp_audio, include channel map in format negotiation 2013-05-12 21:24:54 +02:00
af_delay.c audio: add some setters for mp_audio, and require filters to use them 2013-05-12 21:24:54 +02:00
af_drc.c audio: add some setters for mp_audio, and require filters to use them 2013-05-12 21:24:54 +02:00
af_dummy.c audio/filter: replace pointless memcpys with assignments 2013-04-13 04:21:27 +02:00
af_equalizer.c audio: add some setters for mp_audio, and require filters to use them 2013-05-12 21:24:54 +02:00
af_export.c audio: add some setters for mp_audio, and require filters to use them 2013-05-12 21:24:54 +02:00
af_extrastereo.c audio: add some setters for mp_audio, and require filters to use them 2013-05-12 21:24:54 +02:00
af_force.c audio/filters: add af_force 2013-05-12 21:24:56 +02:00
af_format.c af: use mp_chmap for mp_audio, include channel map in format negotiation 2013-05-12 21:24:54 +02:00
af_hrtf.c af: use mp_chmap for mp_audio, include channel map in format negotiation 2013-05-12 21:24:54 +02:00
af_hrtf.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
af_karaoke.c audio: add some setters for mp_audio, and require filters to use them 2013-05-12 21:24:54 +02:00
af_ladspa.c af_ladspa: code cleanup 2013-05-12 21:24:56 +02:00
af_lavcac3enc.c reorder_ch: remove old channel reorder functions 2013-05-12 21:24:55 +02:00
af_lavrresample.c af_lavrresample: avoid channel reordering with unknown layouts 2013-05-12 21:24:56 +02:00
af_pan.c af_pan: set unknown channel layout for output 2013-05-12 21:24:54 +02:00
af_scaletempo.c audio: add some setters for mp_audio, and require filters to use them 2013-05-12 21:24:54 +02:00
af_sinesuppress.c audio: add some setters for mp_audio, and require filters to use them 2013-05-12 21:24:54 +02:00
af_sub.c af: use mp_chmap for mp_audio, include channel map in format negotiation 2013-05-12 21:24:54 +02:00
af_surround.c af: use mp_chmap for mp_audio, include channel map in format negotiation 2013-05-12 21:24:54 +02:00
af_sweep.c audio: add some setters for mp_audio, and require filters to use them 2013-05-12 21:24:54 +02:00
af_tools.c af: use mp_chmap for mp_audio, include channel map in format negotiation 2013-05-12 21:24:54 +02:00
af_volume.c audio: add some setters for mp_audio, and require filters to use them 2013-05-12 21:24:54 +02:00
af.c af: improve filter chain setup retry limit 2013-05-12 21:45:05 +02:00
af.h audio: add some setters for mp_audio, and require filters to use them 2013-05-12 21:24:54 +02:00
control.h audio/filter: remove unused AF_CONTROLs 2013-05-12 20:55:50 +02:00
dsp.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
equalizer.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
filter.c Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
filter.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
window.c Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
window.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00