• Rostislav Pehlivanov's avatar
    aacenc_tns: tune and reduce artifacts · d55f83de
    Rostislav Pehlivanov authored
    There are a couple of major changes here:
    
    1. Start using TNS coefficient compression.
    2. Start using 3 bits per coefficient maximum for short windows.
    The bits we save from these 2 changes seem to make a nice impact on the
    rest of the file/windows.
    
    3. Remove special case gain checking for short windows.
    4. Modify the coefficient loop to support up to 3 windows.
    The additional restrictions on TNS were something that was no in the
    specifications and furthermore restricting TNS to only low energy short
    windows was done to compensate for bugs elsewhere in the code.
    
    Overall, the improvements here reduce crackling artifacts heard in very
    noisy tracks.
    Signed-off-by: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
    d55f83de
aacenc_tns.c 7.68 KB