@@ -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);