[FFmpeg-devel] [PATCHv2 2/3] lavfi/loudnorm: add an internal libebur128 library

Paul B Mahol onemda at gmail.com
Sat Oct 29 22:00:03 EEST 2016


On 10/29/16, Marton Balint <cus at passwd.hu> wrote:
>
> On Sun, 23 Oct 2016, Marton Balint wrote:
>
>> 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_audnorm does not need it.

af_loudnorm

>> - 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
>> - fix indentation
>>
>> Signed-off-by: Marton Balint <cus at passwd.hu>
>> ---
>> configure                 |   5 -
>> doc/filters.texi          |   3 -
>> libavfilter/Makefile      |   2 +-
>> libavfilter/af_loudnorm.c |  60 ++--
>> libavfilter/ebur128.c     | 782
>> ++++++++++++++++++++++++++++++++++++++++++++++
>> libavfilter/ebur128.h     | 313 +++++++++++++++++++
>> 6 files changed, 1126 insertions(+), 39 deletions(-)
>> create mode 100644 libavfilter/ebur128.c
>> create mode 100644 libavfilter/ebur128.h
>>
>
> I will apply this patch soon.
>
> Regards,
> Marton
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list