⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aac_enc_psy_tables_fp.c

📁 这是在PCA下的基于IPP库示例代码例子,在网上下了IPP的库之后,设置相关参数就可以编译该代码.
💻 C
📖 第 1 页 / 共 4 页
字号:
    1,   1,   2,   2,   2,   2,   2,   2,   2,   3,   3,   3,   4,   4,    5,   5,   6,   7,   8,  10,  12,  16,  12};floatpsy_table_width_96000_short[] ={ /* width */    1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,    1,   2,   2,   2,   2,   2,   2,   2,   3,   3,   3,   4,   4,   5,    5,   6,   7,   9,  11,  14,  18,   7};floatpsy_table_bval_8000_short[] ={ /* bval */   0.32f,  0.95f,  1.57f,  2.19f,  2.80f,  3.40f,  3.99f,  4.56f,  5.12f,  5.66f,   6.18f,  6.68f,  7.16f,  7.63f,  8.07f,  8.50f,  8.90f,  9.29f,  9.67f, 10.03f,  10.37f, 10.77f, 11.23f, 11.66f, 12.06f, 12.44f, 12.79f, 13.18f, 13.59f, 13.97f,  14.32f, 14.69f, 15.07f, 15.42f, 15.77f, 16.13f, 16.49f, 16.85f, 17.20f, 17.44f};floatpsy_table_bval_11025_short[] ={ /* bval */   0.00f,  0.44f,  0.87f,  1.30f,  1.73f,  2.16f,  2.58f,  3.00f,  3.41f,  3.82f,   4.22f,  4.61f,  4.99f,  5.37f,  5.74f,  6.10f,  6.45f,  6.79f,  7.44f,  8.05f,   8.64f,  9.19f,  9.70f, 10.19f, 10.65f, 11.08f, 11.48f, 11.86f, 12.22f, 12.64f,  13.10f, 13.53f, 13.93f, 14.30f, 14.69f, 15.11f, 15.49f, 15.84f, 16.21f, 16.58f,  16.92f, 17.27f, 17.62f, 17.97f, 18.32f, 18.67f, 19.02f};floatpsy_table_bval_12000_short[] ={ /* bval */   0.00f,  0.47f,  0.95f,  1.42f,  1.88f,  2.35f,  2.81f,  3.26f,  3.70f,  4.14f,   4.57f,  4.98f,  5.39f,  5.79f,  6.18f,  6.56f,  6.93f,  7.28f,  7.63f,  8.28f,   8.90f,  9.48f, 10.02f, 10.53f, 11.00f, 11.45f, 11.86f, 12.25f, 12.62f, 12.96f,  13.36f, 13.80f, 14.21f, 14.59f, 14.94f, 15.32f, 15.71f, 16.08f, 16.45f, 16.83f,  17.19f, 17.54f, 17.90f, 18.26f, 18.62f, 18.97f, 19.32f, 19.55f};floatpsy_table_bval_16000_short[] ={ /* bval */   0.00f,  0.63f,  1.26f,  1.88f,  2.50f,  3.11f,  3.70f,  4.28f,  4.85f,  5.39f,   5.92f,  6.43f,  6.93f,  7.40f,  7.85f,  8.29f,  8.70f,  9.10f,  9.49f,  9.85f,  10.20f, 10.85f, 11.44f, 11.99f, 12.50f, 12.96f, 13.39f, 13.78f, 14.15f, 14.57f,  15.03f, 15.45f, 15.84f, 16.19f, 16.57f, 16.97f, 17.33f, 17.71f, 18.09f, 18.44f,  18.80f, 19.17f, 19.53f, 19.89f, 20.25f, 20.61f, 20.92f};floatpsy_table_bval_22050_short[] ={ /* bval */   0.00f,  0.87f,  1.73f,  2.58f,  3.41f,  4.22f,  4.99f,  5.74f,  6.45f,  7.12f,   7.75f,  8.36f,  8.92f,  9.45f,  9.96f, 10.43f, 10.87f, 11.29f, 11.68f, 12.05f,  12.71f, 13.32f, 13.86f, 14.35f, 14.80f, 15.21f, 15.58f, 15.93f, 16.32f, 16.75f,  17.15f, 17.51f, 17.89f, 18.30f, 18.67f, 19.02f, 19.37f, 19.74f, 20.09f, 20.44f,  20.79f, 21.15f, 21.50f, 21.85f, 22.20f, 22.49f};floatpsy_table_bval_24000_short[] ={ /* bval */   0.00f,  0.95f,  1.88f,  2.81f,  3.70f,  4.57f,  5.39f,  6.18f,  6.93f,  7.63f,   8.29f,  8.91f,  9.49f, 10.03f, 10.53f, 11.01f, 11.45f, 11.87f, 12.26f, 12.62f,  13.28f, 13.87f, 14.40f, 14.88f, 15.32f, 15.71f, 16.08f, 16.49f, 16.94f, 17.35f,  17.73f, 18.07f, 18.44f, 18.83f, 19.20f, 19.57f, 19.96f, 20.31f, 20.67f, 21.04f,  21.41f, 21.77f, 22.13f, 22.48f, 22.82f, 23.01f};floatpsy_table_bval_32000_short[] ={ /* bval */   0.00f,  1.26f,  2.50f,  3.70f,  4.85f,  5.92f,  6.93f,  7.85f,  8.70f,  9.49f,  10.20f, 10.85f, 11.45f, 12.00f, 12.50f, 12.96f, 13.39f, 13.78f, 14.15f, 14.80f,  15.38f, 15.89f, 16.36f, 16.77f, 17.15f, 17.50f, 17.90f, 18.34f, 18.74f, 19.11f,  19.50f, 19.92f, 20.30f, 20.65f, 21.02f, 21.40f, 21.75f, 22.10f, 22.45f, 22.80f,  23.16f, 23.51f, 23.85f, 24.00f};floatpsy_table_bval_44100_short[] ={ /* bval */   0.00f,  1.73f,  3.41f,  4.99f,  6.45f,  7.75f,  8.92f,  9.96f, 10.87f, 11.68f,  12.39f, 13.03f, 13.61f, 14.12f, 14.59f, 15.01f, 15.40f, 15.76f, 16.39f, 16.95f,  17.45f, 17.89f, 18.30f, 18.67f, 19.02f, 19.41f, 19.85f, 20.25f, 20.62f, 21.01f,  21.43f, 21.81f, 22.15f, 22.51f, 22.87f, 23.23f, 23.59f, 23.93f, 24.00f, 24.00f,  24.00f, 24.00f};floatpsy_table_bval_48000_short[] ={ /* bval */   0.00f,  1.88f,  3.70f,  5.39f,  6.93f,  8.29f,  9.49f, 10.53f, 11.45f, 12.26f,  12.96f, 13.59f, 14.15f, 14.65f, 15.11f, 15.52f, 15.90f, 16.56f, 17.15f, 17.66f,  18.13f, 18.54f, 18.93f, 19.28f, 19.69f, 20.14f, 20.54f, 20.92f, 21.27f, 21.64f,  22.03f, 22.39f, 22.76f, 23.13f, 23.49f, 23.85f, 24.00f, 24.00f, 24.00f, 24.00f,  24.00f, 24.00f};floatpsy_table_bval_64000_short[] ={ /* bval */   0.00f,  2.50f,  4.85f,  6.93f,  8.70f, 10.20f, 11.45f, 12.50f, 13.39f, 14.15f,  14.81f, 15.39f, 15.90f, 16.36f, 16.78f, 17.16f, 17.82f, 18.40f, 18.92f, 19.39f,  19.82f, 20.21f, 20.57f, 20.98f, 21.43f, 21.84f, 22.22f, 22.61f, 23.02f, 23.39f,  23.75f, 24.00f, 24.00f, 24.00f, 24.00f, 24.00f, 24.00f, 24.00f, 24.00f};floatpsy_table_bval_88200_short[] ={ /* bval */   0.00f,  3.41f,  6.45f,  8.92f, 10.87f, 12.39f, 13.61f, 14.59f, 15.40f, 16.09f,  16.69f, 17.21f, 17.68f, 18.11f, 18.49f, 18.85f, 19.48f, 20.05f, 20.55f, 21.01f,  21.43f, 21.81f, 22.15f, 22.55f, 22.98f, 23.36f, 23.75f, 24.00f, 24.00f, 24.00f,  24.00f, 24.00f, 24.00f, 24.00f, 24.00f, 24.00f, 24.00f};floatpsy_table_bval_96000_short[] ={ /* bval */   0.00f,  3.70f,  6.93f,  9.49f, 11.45f, 12.96f, 14.15f, 15.11f, 15.90f, 16.57f,  17.16f, 17.67f, 18.13f, 18.55f, 18.93f, 19.60f, 20.20f, 20.73f, 21.21f, 21.64f,  22.03f, 22.39f, 22.79f, 23.23f, 23.62f, 24.00f, 24.00f, 24.00f, 24.00f, 24.00f,  24.00f, 24.00f, 24.00f, 24.00f, 24.00f, 24.00f};floatpsy_table_qsthr_8000_short[] ={ /* qsthr */  30.29f, 30.29f, 25.29f, 22.29f, 22.29f, 17.29f, 17.29f, 15.29f, 15.29f, 15.29f,  15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f,  15.29f, 17.05f, 17.05f, 17.05f, 17.05f, 17.05f, 17.05f, 18.30f, 18.30f, 18.30f,  18.30f, 19.27f, 19.27f, 19.27f, 20.06f, 20.06f, 20.73f, 20.73f, 21.31f, 17.05f};floatpsy_table_qsthr_11025_short[] ={ /* qsthr */  27.28f, 27.28f, 27.28f, 22.28f, 22.28f, 19.28f, 19.28f, 14.28f, 14.28f, 14.28f,  12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 15.29f, 15.29f,  15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 17.05f,  17.05f, 17.05f, 17.05f, 17.05f, 18.30f, 18.30f, 18.30f, 18.30f, 19.27f, 19.27f,  19.27f, 20.06f, 20.06f, 20.73f, 20.73f, 21.31f, 21.31f};floatpsy_table_qsthr_12000_short[] ={ /* qsthr */  27.28f, 27.28f, 27.28f, 22.28f, 22.28f, 19.28f, 19.28f, 14.28f, 14.28f, 12.28f,  12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 15.29f,  15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f,  17.05f, 17.05f, 17.05f, 17.05f, 17.05f, 18.30f, 18.30f, 18.30f, 19.27f, 19.27f,  19.27f, 20.06f, 20.06f, 20.73f, 20.73f, 21.31f, 21.31f, 17.05f};floatpsy_table_qsthr_16000_short[] ={ /* qsthr */  27.28f, 27.28f, 22.28f, 22.28f, 19.28f, 14.28f, 14.28f, 12.28f, 12.28f, 12.28f,  12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f,  12.28f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 17.05f,  17.05f, 17.05f, 17.05f, 17.05f, 18.30f, 18.30f, 18.30f, 19.27f, 19.27f, 19.27f,  20.06f, 20.06f, 20.73f, 20.73f, 24.31f, 24.31f, 23.73f};floatpsy_table_qsthr_22050_short[] ={ /* qsthr */  27.28f, 27.28f, 22.28f, 19.28f, 14.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f,  12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f,  15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 17.05f, 17.05f,  17.05f, 17.05f, 18.30f, 18.30f, 18.30f, 18.30f, 19.27f, 19.27f, 22.27f, 23.06f,  23.06f, 25.73f, 25.73f, 26.31f, 31.31f, 30.73f};floatpsy_table_qsthr_24000_short[] ={ /* qsthr */  27.28f, 27.28f, 22.28f, 19.28f, 14.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f,  12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f,  15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 17.05f, 17.05f, 17.05f,  17.05f, 17.05f, 18.30f, 18.30f, 18.30f, 19.27f, 19.27f, 22.27f, 23.06f, 25.06f,  25.73f, 25.73f, 31.31f, 31.31f, 31.82f, 32.28f};floatpsy_table_qsthr_32000_short[] ={ /* qsthr */  27.28f, 22.28f, 19.28f, 14.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f,  12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 15.29f,  15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 17.05f, 17.05f, 17.05f, 17.05f,  18.30f, 18.30f, 21.30f, 21.30f, 24.27f, 24.27f, 24.27f, 30.06f, 30.06f, 30.73f,  41.31f, 41.31f, 41.82f, 60.47f};floatpsy_table_qsthr_44100_short[] ={ /* qsthr */  27.28f, 22.28f, 14.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f,  12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 15.29f, 15.29f,  15.29f, 15.29f, 15.29f, 15.29f, 15.29f, 17.05f, 17.05f, 20.05f, 20.05f, 23.30f,  23.30f, 23.30f, 28.30f, 29.27f, 29.27f, 40.06f, 40.06f, 40.73f, 51.31f, 51.82f,  52.28f, 53.07f};floatpsy_table_qsthr_48000_short[] ={ /* qsthr */  27.28f, 22.28f, 14.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f,  12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 15.29f, 15.29f, 15.29f,  15.29f, 15.29f, 15.29f, 15.29f, 17.05f, 20.05f, 20.05f, 20.05f, 22.05f, 23.30f,  28.30f, 28.30f, 29.27f, 39.27f, 40.06f, 40.06f, 50.37f, 51.31f, 51.82f, 52.28f,  53.07f, 53.07f};floatpsy_table_qsthr_64000_short[] ={ /* qsthr */  27.28f, 19.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f,  12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 15.29f, 15.29f, 15.29f, 15.29f,  15.29f, 18.29f, 18.29f, 20.05f, 22.05f, 22.05f, 27.05f, 28.30f, 38.30f, 38.30f,  39.27f, 49.27f, 50.06f, 50.73f, 51.31f, 51.82f, 52.69f, 53.42f, 52.28f};floatpsy_table_qsthr_88200_short[] ={ /* qsthr */  27.28f, 14.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f,  12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 15.29f, 18.29f, 18.29f, 20.29f,  20.29f, 20.29f, 25.29f, 27.05f, 27.05f, 37.05f, 38.30f, 48.30f, 49.27f, 49.27f,  50.06f, 50.73f, 51.31f, 52.28f, 53.07f, 54.32f, 53.07f};floatpsy_table_qsthr_96000_short[] ={ /* qsthr */  27.28f, 14.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 12.28f,  12.28f, 12.28f, 12.28f, 12.28f, 12.28f, 15.29f, 18.29f, 18.29f, 20.29f, 20.29f,  25.29f, 25.29f, 27.05f, 37.05f, 37.05f, 48.30f, 48.30f, 49.27f, 49.27f, 50.06f,  50.73f, 51.82f, 52.69f, 53.74f, 54.83f, 50.73f};sPsyPartitionTable psy_partition_tables_long[] ={  {96000, 71, psy_table_w_low_96000_long, psy_table_w_high_96000_long,              psy_table_width_96000_long, psy_table_bval_44100_long,              psy_table_qsthr_96000_long},  /* 96000 */  {88200, 72, psy_table_w_low_88200_long, psy_table_w_high_88200_long,              psy_table_width_88200_long, psy_table_bval_88200_long,              psy_table_qsthr_88200_long},  /* 88200 */  {64000, 67, psy_table_w_low_64000_long, psy_table_w_high_64000_long,              psy_table_width_64000_long, psy_table_bval_64000_long,              psy_table_qsthr_64000_long},  /* 64000 */  {48000, 69, psy_table_w_low_48000_long, psy_table_w_high_48000_long,              psy_table_width_48000_long, psy_table_bval_48000_long,              psy_table_qsthr_48000_long},  /* 48000 */  {44100, 70, psy_table_w_low_44100_long, psy_table_w_high_44100_long,              psy_table_width_44100_long, psy_table_bval_44100_long,              psy_table_qsthr_44100_long},  /* 44100 */  {32000, 66, psy_table_w_low_32000_long, psy_table_w_high_32000_long,              psy_table_width_32000_long, psy_table_bval_32000_long,              psy_table_qsthr_32000_long},  /* 32000 */  {24000, 66, psy_table_w_low_24000_long, psy_table_w_high_24000_long,              psy_table_width_24000_long, psy_table_bval_24000_long,              psy_table_qsthr_24000_long},  /* 24000 */  {22050, 63, psy_table_w_low_22050_long, psy_table_w_high_22050_long,              psy_table_width_22050_long, psy_table_bval_22050_long,              psy_table_qsthr_22050_long},  /* 22050 */  {16000, 60, psy_table_w_low_16000_long, psy_table_w_high_16000_long,              psy_table_width_16000_long, psy_table_bval_16000_long,              psy_table_qsthr_16000_long},  /* 16000 */  {12000, 57, psy_table_w_low_12000_long, psy_table_w_high_12000_long,              psy_table_width_12000_long, psy_table_bval_12000_long,              psy_table_qsthr_12000_long},  /* 12000 */  {11025, 56, psy_table_w_low_11025_long, psy_table_w_high_11025_long,              psy_table_width_11025_long, psy_table_bval_11025_long,              psy_table_qsthr_11025_long},  /* 11025 */  { 8000, 52, psy_table_w_low_8000_long, psy_table_w_high_8000_long,              psy_table_width_8000_long, psy_table_bval_8000_long,              psy_table_qsthr_8000_long},     /* 8000  */};sPsyPartitionTable psy_partition_tables_short[] ={  {96000, 36, psy_table_w_low_96000_short, psy_table_w_high_96000_short,              psy_table_width_96000_short, psy_table_bval_44100_short,              psy_table_qsthr_96000_short},  /* 96000 */  {88200, 37, psy_table_w_low_88200_short, psy_table_w_high_88200_short,              psy_table_width_88200_short, psy_table_bval_88200_short,              psy_table_qsthr_88200_short},  /* 88200 */  {64000, 39, psy_table_w_low_64000_short, psy_table_w_high_64000_short,              psy_table_width_64000_short, psy_table_bval_64000_short,              psy_table_qsthr_64000_short},  /* 64000 */  {48000, 42, psy_table_w_low_48000_short, psy_table_w_high_48000_short,              psy_table_width_48000_short, psy_table_bval_48000_short,              psy_table_qsthr_48000_short},  /* 48000 */  {44100, 42, psy_table_w_low_44100_short, psy_table_w_high_44100_short,              psy_table_width_44100_short, psy_table_bval_44100_short,              psy_table_qsthr_44100_short},  /* 44100 */  {32000, 44, psy_table_w_low_32000_short, psy_table_w_high_32000_short,              psy_table_width_32000_short, psy_table_bval_32000_short,              psy_table_qsthr_32000_short},  /* 32000 */  {24000, 46, psy_table_w_low_24000_short, psy_table_w_high_24000_short,              psy_table_width_24000_short, psy_table_bval_24000_short,              psy_table_qsthr_24000_short},  /* 24000 */  {22050, 46, psy_table_w_low_22050_short, psy_table_w_high_22050_short,              psy_table_width_22050_short, psy_table_bval_22050_short,              psy_table_qsthr_22050_short},  /* 22050 */  {16000, 47, psy_table_w_low_16000_short, psy_table_w_high_16000_short,              psy_table_width_16000_short, psy_table_bval_16000_short,              psy_table_qsthr_16000_short},  /* 16000 */  {12000, 48, psy_table_w_low_12000_short, psy_table_w_high_12000_short,              psy_table_width_12000_short, psy_table_bval_12000_short,              psy_table_qsthr_12000_short},  /* 12000 */  {11025, 47, psy_table_w_low_11025_short, psy_table_w_high_11025_short,              psy_table_width_11025_short, psy_table_bval_11025_short,              psy_table_qsthr_11025_short},  /* 11025 */  { 8000, 40, psy_table_w_low_8000_short, psy_table_w_high_8000_short,              psy_table_width_8000_short, psy_table_bval_8000_short,              psy_table_qsthr_8000_short},     /* 8000  */};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -