summaryrefslogtreecommitdiff
path: root/libavfilter/af_loudnorm.c
Commit message (Collapse)AuthorAge
* avfilter: Constify all AVFiltersAndreas Rheinhardt2021-04-27
| | | | | | | This is possible now that the next-API is gone. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
* lavfi: regroup formats lists in a single structure.Nicolas George2020-09-08
| | | | | | | | | | | | | | | It will allow to refernce it as a whole without clunky macros. Most of the changes have been automatically made with sed: sed -i ' s/-> *in_formats/->incfg.formats/g; s/-> *out_formats/->outcfg.formats/g; s/-> *in_channel_layouts/->incfg.channel_layouts/g; s/-> *out_channel_layouts/->outcfg.channel_layouts/g; s/-> *in_samplerates/->incfg.samplerates/g; s/-> *out_samplerates/->outcfg.samplerates/g; ' src/libavfilter/*(.)
* s->target_i and global are in dB but s->target_tp and true_peak areSebastian Dröge2020-05-01
| | | | | | | linear. Instead of mixing these in the calculations, convert the former first to have all following calculations in the same unit. Signed-off-by: Kyle Swanson <k@ylo.ph>
* avfilter/af_loudnorm: correctly initialize PTSNiklas Haas2018-02-14
| | | | | | | | Right now, the PTS always starts out as 0, which causes problems on a seek or when inserting this filter mid-stream. Initialize it instead to AV_NOPTS_VALUE and copy the PTS from the first frame instead if this is the case.
* avfilter: pass outlink to ff_get_audio_buffer()Paul B Mahol2018-01-03
| | | | | | This is more correct. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_loudnorm: do not upsample during second-pass linear normalizationKyle Swanson2017-04-05
| | | | Signed-off-by: Kyle Swanson <k@ylo.ph>
* lavfi/loudnorm: add an internal libebur128 libraryMarton Balint2016-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also contains the following changes to the library: - add ff_ prefix to functions - remove cplusplus defines. - add FF_ prefix to contants and some structs - remove true peak calculation feature, since it uses its own resampler, and af_loudnorm does not need it. - remove version info and some fprintf(stderr) functions - convert to use av_malloc - always use histogram mode for LRA calculation, otherwise LRA data is slowly consuming memory making af_loudnorm unfit for 24/7 operation. It also uses a BSD style linked list implementation which is probably not available on all platforms. So let's just remove the classic mode which not uses histogram. - add ff_thread_once for calculating static histogram tables - convert some functions to void which cannot fail - remove intrinsics and some unused headers - add support for planar audio - remove channel / sample rate changer function, in ffmpeg usually we simply alloc a new context - convert some static variables to defines - declare static histogram variables as aligned - convert some initalizations to mallocz - add window size parameter to init function and remove window size setter function - convert return codes to AVERROR - fix indentation Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/af_loudnorm: add dual_mono optionKyle Swanson2016-06-09
| | | | Signed-off-by: Kyle Swanson <k@ylo.ph>
* avfilter/af_loudnorm: fix crash when ebur128 initialization was not ↵Paul B Mahol2016-05-21
| | | | | | successfull/complete Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: add loudnormKyle Swanson2016-05-18
Signed-off-by: Kyle Swanson <k@ylo.ph>