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

📄 mp3enc_tables.c

📁 audio-video-codecs.rar语音编解码器
💻 C
字号:
/*//////////////////////////////////////////////////////////////////////////////
//
//                  INTEL CORPORATION PROPRIETARY INFORMATION
//     This software is supplied under the terms of a license agreement or
//     nondisclosure agreement with Intel Corporation and may not be copied
//     or disclosed except in accordance with the terms of that agreement.
//          Copyright(c) 2002-2006 Intel Corporation. All Rights Reserved.
//
*/

#include "mp3enc_own.h"

scalefac_struct mp3enc_sfBandIndex[2][3] = {
  {
    { /* 22.05 kHz */
      {0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576},
      {0,4,8,12,18,24,32,42,56,74,100,132,174,192}
    },
    { /* 24 kHz */
      {0,6,12,18,24,30,36,44,54,66,80,96,114,136,162,194,232,278,332,394,464,540,576},
      {0,4,8,12,18,26,36,48,62,80,104,136,180,192}
    },
    { /* 16 kHz */
      {0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576},
      {0,4,8,12,18,26,36,48,62,80,104,134,174,192}
    }
  },
  {
    { /* 44.1 kHz */
      {0,4,8,12,16,20,24,30,36,44,52,62,74,90,110,134,162,196,238,288,342,418,576},
      {0,4,8,12,16,22,30,40,52,66,84,106,136,192}
    },
    { /* 48 kHz */
      {0,4,8,12,16,20,24,30,36,42,50,60,72,88,106,128,156,190,230,276,330,384,576},
      {0,4,8,12,16,22,28,38,50,64,80,100,126,192}
    },
    { /* 32 kHz */
      {0,4,8,12,16,20,24,30,36,44,54,66,82,102,126,156,194,240,296,364,448,550,576},
      {0,4,8,12,16,22,30,42,58,78,104,138,180,192}
    }
  }
};

Ipp32s mp3enc_slen1_tab[16]      = { 0, 0, 0, 0, 3, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4 };
Ipp32s mp3enc_slen2_tab[16]      = { 0, 1, 2, 3, 0, 1, 2, 3, 1, 2, 3, 1, 2, 3, 2, 3 };
Ipp32s mp3enc_scfsi_band_long[5] = { 0, 6, 11, 16, 21 };
Ipp32s mp3enc_pretab[21]         = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 2};

Ipp32s mp3enc_region01_table[23][2] =
{
  {0, 0},  {0, 0},
  {0, 0},  {0, 0},
  {0, 0},  {0, 1},
  {1, 1},  {1, 1},
  {1, 2},  {2, 2},
  {2, 3},  {2, 3},
  {3, 4},  {3, 4},
  {3, 4},  {4, 5},
  {4, 5},  {4, 6},
  {5, 6},  {5, 6},
  {5, 7},  {6, 7},
  {6, 7},
};

⌨️ 快捷键说明

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