• Rostislav Pehlivanov's avatar
    aacenc_tns: rework TNS descision logic · fa4d900c
    Rostislav Pehlivanov authored
    Changes:
     - strongly prefer dual filters to a single filter
     - less strict about using 2 filters w.r.t. energy
     - scrap the usage of threshold and spread, useless
     - use odd-shaped windows to set the filter direction
     - use 4 bits instead of 3 bits for short windows
     - simplify and reduce the main loop to a single level
     - add stricter regulations for short windows
    
    All of this now makes the TNS implementation operate
    as good as it can and it definitely shows. The frequency
    thresholds are now even better defined by looking at
    the spectrals and the overall sound has been improved at
    the price of just a few bits that are well worth it.
    fa4d900c
aacenc_tns.h 1.24 KB