History

aactab: add deemphasis tables for USAC

Lynne committed 2 years ago

Commit 7cd8a3f1 parent 0513c5c2 files · +27 −0Browse files

Unified · Split

2 files
  1. libavcodec/aactab.c +25 −0
  2. libavcodec/aactab.h +2 −0
libavcodec/aactab.c+25−0
@@ -3377,3 +3377,28 @@ const DECLARE_ALIGNED(32, int, ff_aac_eld_window_480_fixed)[1800] = { · 3376 unmodified lines
3377 0xffecff1c, 0xffed391e, 0xffed740c, 0xffedafb1,3377 0xffecff1c, 0xffed391e, 0xffed740c, 0xffedafb1,
3378 0xffedebe1, 0xffee287d, 0xffee654e, 0xffeea23f,3378 0xffedebe1, 0xffee287d, 0xffee654e, 0xffeea23f,
3379};3379};
3380
3381/* As specified by ISO/IEC 23003 */
3382#define USAC_EMPH_COEFF 0.68
3383
3384DECLARE_ALIGNED(16, const float, ff_aac_deemph_weights)[16] = {
3385 USAC_EMPH_COEFF,
3386 USAC_EMPH_COEFF*USAC_EMPH_COEFF,
3387 USAC_EMPH_COEFF*USAC_EMPH_COEFF*USAC_EMPH_COEFF,
3388 USAC_EMPH_COEFF*USAC_EMPH_COEFF*USAC_EMPH_COEFF*USAC_EMPH_COEFF,
3389
3390 0,
3391 USAC_EMPH_COEFF,
3392 USAC_EMPH_COEFF*USAC_EMPH_COEFF,
3393 USAC_EMPH_COEFF*USAC_EMPH_COEFF*USAC_EMPH_COEFF,
3394
3395 0,
3396 0,
3397 USAC_EMPH_COEFF,
3398 USAC_EMPH_COEFF*USAC_EMPH_COEFF,
3399
3400 0,
3401 0,
3402 0,
3403 USAC_EMPH_COEFF,
3404};
libavcodec/aactab.h+2−0
@@ -64,6 +64,8 @@ DECLARE_ALIGNED(32, extern const float, ff_aac_eld_window_480)[1800]; · 63 unmodified lines
64DECLARE_ALIGNED(32, extern const int, ff_aac_eld_window_480_fixed)[1800];64DECLARE_ALIGNED(32, extern const int, ff_aac_eld_window_480_fixed)[1800];
65// @}65// @}
66 66
67extern const float ff_aac_deemph_weights[16];
68
67/* Initializes data shared between float decoder and encoder. */69/* Initializes data shared between float decoder and encoder. */
68void ff_aac_float_common_init(void);70void ff_aac_float_common_init(void);
69 71

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t