aactab: add deemphasis tables for USAC

release/7.1
Lynne 7 months ago
parent 0513c5cd25
commit 7cd8a3f509
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
  1. 25
      libavcodec/aactab.c
  2. 2
      libavcodec/aactab.h

@ -3377,3 +3377,28 @@ const DECLARE_ALIGNED(32, int, ff_aac_eld_window_480_fixed)[1800] = {
0xffecff1c, 0xffed391e, 0xffed740c, 0xffedafb1,
0xffedebe1, 0xffee287d, 0xffee654e, 0xffeea23f,
};
/* As specified by ISO/IEC 23003 */
#define USAC_EMPH_COEFF 0.68
DECLARE_ALIGNED(16, const float, ff_aac_deemph_weights)[16] = {
USAC_EMPH_COEFF,
USAC_EMPH_COEFF*USAC_EMPH_COEFF,
USAC_EMPH_COEFF*USAC_EMPH_COEFF*USAC_EMPH_COEFF,
USAC_EMPH_COEFF*USAC_EMPH_COEFF*USAC_EMPH_COEFF*USAC_EMPH_COEFF,
0,
USAC_EMPH_COEFF,
USAC_EMPH_COEFF*USAC_EMPH_COEFF,
USAC_EMPH_COEFF*USAC_EMPH_COEFF*USAC_EMPH_COEFF,
0,
0,
USAC_EMPH_COEFF,
USAC_EMPH_COEFF*USAC_EMPH_COEFF,
0,
0,
0,
USAC_EMPH_COEFF,
};

@ -64,6 +64,8 @@ DECLARE_ALIGNED(32, extern const float, ff_aac_eld_window_480)[1800];
DECLARE_ALIGNED(32, extern const int, ff_aac_eld_window_480_fixed)[1800];
// @}
extern const float ff_aac_deemph_weights[16];
/* Initializes data shared between float decoder and encoder. */
void ff_aac_float_common_init(void);

Loading…
Cancel
Save