• Rostislav Pehlivanov's avatar
    lpc: create a simplified Levinson-Durbin LPC handling float samples · 20962b56
    Rostislav Pehlivanov authored
    This commit simply duplicates the functionality of ff_lpc_calc_coefs()
    for the case of a Levinson-Durbin LPC with the only difference being
    that floating point samples are accepted and the resulting coefficients
    are raw and unquantized.
    The motivation behind doing this is the fact that the AAC encoder
    requires LPC in TNS and LTP and converting non-normalized floating
    point coefficients to int32_t using SWR and again back for the LPC
    coefficients was very impractical.
    The current LPC interfaces were designed for int32_t in mind possibly
    because FLAC and ALAC use this type for most internal operations.
    The mathematics in case of floats remains of course identical.
    Signed-off-by: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
    20962b56
lpc.c 10.2 KB