1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-02 21:12:23 +00:00
mpv/audio/filter
wm4 d115fb3b0e af: don't require filters to allocate af_instance->data, redo buffers
Allocate af_instance->data in generic code before filter initialization.
Every filter needs af->data (since it contains the output
configuration), so there's no reason why every filter should allocate
and free it.

Remove RESIZE_LOCAL_BUFFER(), and replace it with mp_audio_realloc_min().
Interestingly, most code becomes simpler, because the new function takes
the size in samples, and not in bytes. There are larger change in
af_scaletempo.c and af_lavcac3enc.c, because these had copied and
modified versions of the RESIZE_LOCAL_BUFFER macro/function.
2013-11-12 23:27:03 +01:00
..
af_bs2b.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_center.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_channels.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_convert24.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_convertsignendian.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_delay.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_drc.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_dummy.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_equalizer.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_export.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_extrastereo.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_format.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_hrtf.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_hrtf.h
af_karaoke.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_ladspa.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_lavcac3enc.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_lavfi.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_lavrresample.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_pan.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_scaletempo.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_sinesuppress.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_sub.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_surround.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_sweep.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af_tools.c af: replace macros with too generic names 2013-10-26 15:05:59 +02:00
af_volume.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af.c af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
af.h af: don't require filters to allocate af_instance->data, redo buffers 2013-11-12 23:27:03 +01:00
control.h af_volume: remove unused features 2013-10-26 13:36:34 +02:00
dsp.h
equalizer.h
filter.c
filter.h
window.c
window.h