shine.c File Reference

Include dependency graph for shine.c:


Data Structures

struct  mpeg_t
struct  side_info_t
struct  config_t
struct  BF_Data
struct  huffcodetab
struct  huffcodebig

Defines

#define IBSS_ATTR
#define ROCKBOX_LITTLE_ENDIAN
#define ENC_PADDING_FRAMES1   2
#define ENC_PADDING_FRAMES2   4
#define ENC_DELAY_SAMP   576
#define ENC_DELAY_SIZE   (ENC_DELAY_SAMP*4)
#define SAMP_PER_FRAME1   1152
#define SAMP_PER_FRAME2   576
#define PCM_CHUNK_SIZE1   (SAMP_PER_FRAME1*4)
#define PCM_CHUNK_SIZE2   (SAMP_PER_FRAME2*4)
#define SAMPL2   576
#define SBLIMIT   32
#define HTN   16
#define putlong(c, s)
#define shft4(x)   ((x + 8) >> 4)
#define shft9(x)   ((x + 256) >> 9)
#define shft13(x)   ((x + 4096) >> 13)
#define shft15(x)   ((x + 16384) >> 15)
#define shft16(x)   ((x + 32768) >> 16)
#define shft_n(x, n)   ((x) >> n)
#define SQRT   724
#define sgnv   xr_sign[i+0]
#define sgnw   xr_sign[i+1]
#define sgnx   xr_sign[i+2]
#define sgny   xr_sign[i+3]
#define sign_x   xr_sign[i+0]
#define sign_y   xr_sign[i+1]
#define swap32   bswap_32

Functions

static int HuffmanCode (short *ix, char *xr_sign, uint32_t begin, uint32_t end, int table)
static int HuffmanCod1 (short *ix, char *xr_sign, uint32_t begin, uint32_t end, int table)
static void putbits (uint32_t val, uint32_t nbit)
static int find_best_2 (short *ix, uint32_t start, uint32_t end, const uint32_t *table, uint32_t len, int *bits)
static int find_best_3 (short *ix, uint32_t start, uint32_t end, const uint32_t *table, uint32_t len, int *bits)
static int count_bit1 (short *ix, uint32_t start, uint32_t end, int *bits)
static int count_bigv (short *ix, uint32_t start, uint32_t end, int table0, int table1, int *bits)
static void encodeSideInfo (side_info_t si[2][2])
static void Huffmancodebits (short *ix, char *xr_sign, side_info_t *gi)
static int choose_table (short *ix, uint32_t begin, uint32_t end, int *bits)
static int calc_runlen (short *ix, side_info_t *si)
static int quantize_int (int *xr, short *ix, side_info_t *si)
static void subdivide (side_info_t *si)
static int bigv_bitcount (short *ix, side_info_t *gi)
static int quantize_and_count_bits (int *xr, short *ix, side_info_t *si)
static int inner_loop (int *xr, int max_bits, side_info_t *si)
static void iteration_loop (int *xr, side_info_t *si, int gr_cnt)
static void window_subband1 (short *wk, int sb0[32], int sb1[32])
static void window_subband2 (short *x1, int a[32])
static void mdct_long (int *out, int *in)
static int find_bitrate_index (int type, int bitrate)
static int find_samplerate_index (unsigned long freq, int *mp3_type)
static bool init_mp3_encoder_engine (int sample_rate, int num_channels, int bitrate)
static void to_mono (uint32_t **samp)
static void to_mono_mm (void)
static void byte_swap_frame32 (uint32_t *dst, uint32_t *src, size_t size)
static void set_scale_facs (int *mdct_freq)
static void encode_frame (char *buffer, struct enc_chunk_hdr *chunk)

Variables

static short mfbuf [2 *(1152+512)]
static int sb_data [2][2][18][32]
static int mdct_freq [576]
static char mdct_sign [576]
static short enc_data [576]
static uint32_t scalefac [23]
static BF_Data CodedData
static int ca [8]
static int cs [8]
static int cx [9]
static int win [18][4]
static short enwindow [15 *27+24]
static short int2idx [4096]
static uint8_t ht_count [2][2][16]
static uint32_t tab01 [16]
static uint32_t tab23 [9]
static uint32_t tab56 [16]
static uint32_t tab1315 [256]
static uint32_t tab1624 [256]
static uint32_t tab789 [36]
static uint32_t tabABC [64]
static uint8_t t1HB [4]
static uint8_t t2HB [9]
static uint8_t t3HB [9]
static uint8_t t5HB [16]
static uint8_t t6HB [16]
static uint8_t t7HB [36]
static uint8_t t8HB [36]
static uint8_t t9HB [36]
static uint8_t t10HB [64]
static uint8_t t11HB [64]
static uint8_t t12HB [64]
static uint8_t t13HB [256]
static uint8_t t15HB [256]
static uint16_t t16HB [256]
static uint16_t t24HB [256]
static uint8_t t1l [8]
static uint8_t t2l [9]
static uint8_t t3l [9]
static uint8_t t5l [16]
static uint8_t t6l [16]
static uint8_t t7l [36]
static uint8_t t8l [36]
static uint8_t t9l [36]
static uint8_t t10l [64]
static uint8_t t11l [64]
static uint8_t t12l [64]
static uint8_t t13l [256]
static uint8_t t15l [256]
static uint8_t t16l [256]
static uint8_t t24l [256]
static struct huffcodetab ht [16]
static unsigned pcm_chunk_size
static unsigned samp_per_frame
static config_t cfg
static int32_t err
static uint8_t band_scale_f [22]
static const uint8_t ht_count_const [2][2][16]
static const uint8_t t1HB_const [4] = {1,1,1,0}
static const uint8_t t2HB_const [9] = {1,2,1,3,1,1,3,2,0}
static const uint8_t t3HB_const [9] = {3,2,1,1,1,1,3,2,0}
static const uint8_t t5HB_const [16] = {1,2,6,5,3,1,4,4,7,5,7,1,6,1,1,0}
static const uint8_t t6HB_const [16] = {7,3,5,1,6,2,3,2,5,4,4,1,3,3,2,0}
static const uint8_t t7HB_const [36]
static const uint8_t t8HB_const [36]
static const uint8_t t9HB_const [36]
static const uint8_t t10HB_const [64]
static const uint8_t t11HB_const [64]
static const uint8_t t12HB_const [64]
static const uint8_t t13HB_const [256]
static const uint8_t t15HB_const [256]
static const uint16_t t16HB_const [256]
static const uint16_t t24HB_const [256]
static const uint32_t tab1315_const [256]
static const uint32_t tab01_const [16]
static const uint32_t tab23_const [9]
static const uint32_t tab56_const [16]
static const uint32_t tab789_const [36]
static const uint32_t tabABC_const [64]
static const uint32_t tab1624_const [256]
static const uint8_t t1l_const [8] = {1,3,2,3,1,4,3,5}
static const uint8_t t2l_const [9] = {1,3,6,3,3,5,5,5,6}
static const uint8_t t3l_const [9] = {2,2,6,3,2,5,5,5,6}
static const uint8_t t5l_const [16] = {1,3,6,7,3,3,6,7,6,6,7,8,7,6,7,8}
static const uint8_t t6l_const [16] = {3,3,5,7,3,2,4,5,4,4,5,6,6,5,6,7}
static const uint8_t t7l_const [36]
static const uint8_t t8l_const [36]
static const uint8_t t9l_const [36]
static const uint8_t t10l_const [64]
static const uint8_t t11l_const [64]
static const uint8_t t12l_const [64]
static const uint8_t t13l_const [256]
static const uint8_t t15l_const [256]
static const uint8_t t16l_const [256]
static const uint8_t t24l_const [256]
static struct huffcodetab ht_const [16]
static struct huffcodebig ht_big [16]
struct {
   uint32_t   region0_cnt
   uint32_t   region1_cnt
subdv_table [23]
static const uint32_t sfBand [6][23]
static const short int2idx_const [4096]
static const int order [32]
static const unsigned long sampr_index [2][3]
static const long bitr_index [2][15]
static const int num_bands [3][15]
static const int cx_const [9]
static const int ca_const [8]
static const int cs_const [8]
static const short enwindow_const [15 *27+24]
static const int win_const [18][4]

Define Documentation

#define ENC_DELAY_SAMP   576

Referenced by encode_frame().

#define ENC_DELAY_SIZE   (ENC_DELAY_SAMP*4)

Referenced by encode_frame().

#define ENC_PADDING_FRAMES1   2

#define ENC_PADDING_FRAMES2   4

#define HTN   16

#define IBSS_ATTR

Referenced by wma_decode_block().

#define PCM_CHUNK_SIZE1   (SAMP_PER_FRAME1*4)

Referenced by init_mp3_encoder_engine().

#define PCM_CHUNK_SIZE2   (SAMP_PER_FRAME2*4)

Referenced by init_mp3_encoder_engine().

#define putlong ( c,
 ) 

Value:

if(s+sz <= 32) { cc = (cc << s) | c;      sz+= s; } \
                       else           { putbits(cc, sz); cc = c; sz = s; }

Referenced by encodeSideInfo(), HuffmanCod1(), and HuffmanCode().

#define ROCKBOX_LITTLE_ENDIAN

#define SAMP_PER_FRAME1   1152

#define SAMP_PER_FRAME2   576

Referenced by init_mp3_encoder_engine().

#define SAMPL2   576

#define SBLIMIT   32

#define sgnv   xr_sign[i+0]

Referenced by HuffmanCod1().

#define sgnw   xr_sign[i+1]

Referenced by HuffmanCod1().

#define sgnx   xr_sign[i+2]

Referenced by HuffmanCod1().

#define sgny   xr_sign[i+3]

Referenced by HuffmanCod1().

#define shft13 (  )     ((x + 4096) >> 13)

Referenced by encode_frame(), and window_subband1().

#define shft15 (  )     ((x + 16384) >> 15)

Referenced by encode_frame().

#define shft16 (  )     ((x + 32768) >> 16)

Referenced by encode_frame().

#define shft4 (  )     ((x + 8) >> 4)

Referenced by window_subband1().

#define shft9 (  )     ((x + 256) >> 9)

Referenced by window_subband2().

#define shft_n ( x,
 )     ((x) >> n)

Referenced by encode_frame().

#define sign_x   xr_sign[i+0]

Referenced by HuffmanCode().

#define sign_y   xr_sign[i+1]

Referenced by HuffmanCode().

#define SQRT   724

Referenced by window_subband2().

#define swap32   bswap_32

Referenced by byte_swap_frame32().


Function Documentation

static int bigv_bitcount ( short *  ix,
side_info_t gi 
) [static]

static void byte_swap_frame32 ( uint32_t *  dst,
uint32_t *  src,
size_t  size 
) [inline, static]

References SKIPBYTES, and swap32.

Referenced by encode_frame().

static int calc_runlen ( short *  ix,
side_info_t si 
) [static]

static int choose_table ( short *  ix,
uint32_t  begin,
uint32_t  end,
int *  bits 
) [static]

int count_bigv ( short *  ix,
uint32_t  start,
uint32_t  end,
int  table0,
int  table1,
int *  bits 
) [static]

References i, and tab1624.

Referenced by choose_table().

int count_bit1 ( short *  ix,
uint32_t  start,
uint32_t  end,
int *  bits 
) [static]

References i, and t1l.

Referenced by choose_table().

static void encode_frame ( char *  buffer,
struct enc_chunk_hdr chunk 
) [static]

static void encodeSideInfo ( side_info_t  si[2][2]  )  [static]

int find_best_2 ( short *  ix,
uint32_t  start,
uint32_t  end,
const uint32_t *  table,
uint32_t  len,
int *  bits 
) [static]

References i.

Referenced by choose_table().

int find_best_3 ( short *  ix,
uint32_t  start,
uint32_t  end,
const uint32_t *  table,
uint32_t  len,
int *  bits 
) [static]

References i.

Referenced by choose_table().

static int find_bitrate_index ( int  type,
int  bitrate 
) [static]

References bitr_index, and i.

Referenced by init_mp3_encoder_engine().

static int find_samplerate_index ( unsigned long  freq,
int *  mp3_type 
) [static]

References i, long(), and sampr_index.

Referenced by init_mp3_encoder_engine().

int HuffmanCod1 ( short *  ix,
char *  xr_sign,
uint32_t  begin,
uint32_t  end,
int  table 
) [static]

References ht_count, i, putbits(), putlong, sgnv, sgnw, sgnx, and sgny.

Referenced by Huffmancodebits().

int HuffmanCode ( short *  ix,
char *  xr_sign,
uint32_t  begin,
uint32_t  end,
int  table 
) [static]

static void Huffmancodebits ( short *  ix,
char *  xr_sign,
side_info_t gi 
) [static]

static bool init_mp3_encoder_engine ( int  sample_rate,
int  num_channels,
int  bitrate 
) [static]

static int inner_loop ( int *  xr,
int  max_bits,
side_info_t si 
) [static]

static void iteration_loop ( int *  xr,
side_info_t si,
int  gr_cnt 
) [static]

static void mdct_long ( int *  out,
int *  in 
) [static]

References cx.

Referenced by encode_frame().

void putbits ( uint32_t  val,
uint32_t  nbit 
) [static]

static int quantize_and_count_bits ( int *  xr,
short *  ix,
side_info_t si 
) [static]

static int quantize_int ( int *  xr,
short *  ix,
side_info_t si 
) [static]

static void set_scale_facs ( int *  mdct_freq  )  [static]

References band_scale_f, i, and scalefac.

Referenced by encode_frame().

static void subdivide ( side_info_t si  )  [static]

static void to_mono ( uint32_t **  samp  )  [inline, static]

References err.

Referenced by to_mono_mm().

static void to_mono_mm ( void   )  [static]

References mfbuf, samp_per_frame, and to_mono().

Referenced by encode_frame().

static void window_subband1 ( short *  wk,
int  sb0[32],
int  sb1[32] 
) [static]

References a, cfg, config_t::channels, enwindow, i, shft13, and shft4.

Referenced by encode_frame().

static void window_subband2 ( short *  x1,
int  a[32] 
) [static]

References a, enwindow, shft9, and SQRT.

Referenced by encode_frame().


Variable Documentation

uint8_t band_scale_f[22] [static]

Referenced by Huffmancodebits(), and set_scale_facs().

const long bitr_index[2][15] [static]

Initial value:

{ {0, 8,16,24,32,40,48,56, 64, 80, 96,112,128,144,160},    
  {0,32,40,48,56,64,80,96,112,128,160,192,224,256,320} }

Referenced by find_bitrate_index(), and init_mp3_encoder_engine().

int ca[8] [static]

const int ca_const[8] [static]

Initial value:

{-16859,-15458,-10269, -5961, -3099, -1342,  -465,  -121 }

Referenced by init_mp3_encoder_engine().

config_t cfg [static]

BF_Data CodedData [static]

int cs[8] [static]

const int cs_const[8] [static]

Initial value:

{ 28098, 28893, 31117, 32221, 32621, 32740, 32765, 32768 }

Referenced by init_mp3_encoder_engine().

int cx[9] [static]

const int cx_const[9] [static]

Initial value:

{ 16135, 10531,  5604, 15396, -2845,-12551, 14189,  8192, 16384 }

Referenced by init_mp3_encoder_engine().

short enc_data[576] [static]

short enwindow[15 *27+24] [static]

const short enwindow_const[15 *27+24] [static]

Referenced by init_mp3_encoder_engine().

int32_t err [static]

struct huffcodetab ht[16] [static]

struct huffcodebig ht_big[16] [static]

Initial value:

{ { 16,  1,    1 },
  { 16,  2,    3 },
  { 16,  3,    7 },
  { 16,  4,   15 },
  { 16,  6,   63 },
  { 16,  8,  255 },
  { 16, 10, 1023 },
  { 16, 13, 8191 },
  { 16,  4,   15 },
  { 16,  5,   31 },
  { 16,  6,   63 },
  { 16,  7,  127 },
  { 16,  8,  255 },
  { 16,  9,  511 },
  { 16, 11, 2047 },
  { 16, 13, 8191 } }

struct huffcodetab ht_const[16] [static]

Initial value:

{ { 0, NULL, NULL}, 
  { 2, t1HB,  t1l},
  { 3, t2HB,  t2l},
  { 3, t3HB,  t3l},
  { 0, NULL, NULL}, 
  { 4, t5HB,  t5l},
  { 4, t6HB,  t6l},
  { 6, t7HB,  t7l},
  { 6, t8HB,  t8l},
  { 6, t9HB,  t9l},
  { 8, t10HB, t10l},
  { 8, t11HB, t11l},
  { 8, t12HB, t12l},
  {16, t13HB, t13l},
  { 0, NULL,  NULL}, 
  {16, t15HB, t15l} }

uint8_t ht_count[2][2][16] [static]

const uint8_t ht_count_const[2][2][16] [static]

Initial value:

{ { { 1,  5,  4,  5,  6,  5, 4, 4, 7, 3, 6, 0, 7, 2, 3, 1 },     
    { 1,  5,  5,  7,  5,  8, 7, 9, 5, 7, 7, 9, 7, 9, 9,10 } },   
  { {15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 },     
    { 4,  5,  5,  6,  5,  6, 6, 7, 5, 6, 6, 7, 6, 7, 7, 8 } } }

Referenced by init_mp3_encoder_engine().

short int2idx[4096] [static]

const short int2idx_const[4096] [static]

Referenced by init_mp3_encoder_engine().

int mdct_freq[576] [static]

char mdct_sign[576] [static]

Referenced by encode_frame().

short mfbuf[2 *(1152+512)] [static]

const int num_bands[3][15] [static]

Initial value:

{ {0,10,10,10,10,12,14,16, 20, 22, 24, 26, 28, 30, 32},
  {0,10,10,10,10,10,12,14, 18, 24, 26, 28, 30, 32, 32},
  {0,10,12,14,18,24,26,28, 30, 32, 32, 32, 32, 32, 32} }

Referenced by init_mp3_encoder_engine().

const int order[32] [static]

Initial value:

{ 0, 1, 16, 17, 8, 9, 24, 25, 4, 5, 20, 21, 12, 13, 28, 29,
  2, 3, 18, 19,10,11, 26, 27, 6, 7, 22, 23, 14, 15, 30, 31 }

Referenced by DestroyFilter(), encode_frame(), and MacroDo().

unsigned pcm_chunk_size [static]

uint32_t region0_cnt

uint32_t region1_cnt

unsigned samp_per_frame [static]

const unsigned long sampr_index[2][3] [static]

Initial value:

{ { 22050, 24000, 16000 },      
  { 44100, 48000, 32000 } }

Referenced by find_samplerate_index(), and init_mp3_encoder_engine().

int sb_data[2][2][18][32] [static]

uint32_t scalefac[23] [static]

const uint32_t sfBand[6][23] [static]

Initial value:

{

{0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576},

{0,6,12,18,24,30,36,44,54,66,80,96,114,136,162,194,232,278,330,394,464,540,576},

{0,6,12,18,24,30,36,44,45,66,80,96,116,140,168,200,238,248,336,396,464,522,576},

{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,20,24,30,36,42,50,60, 72, 88,106,128,156,190,230,276,330,384,576},

{0,4, 8,12,16,20,24,30,36,44,54,66, 82,102,126,156,194,240,296,364,448,550,576} }

Referenced by init_mp3_encoder_engine().

struct { ... } subdv_table[23] [static]

Referenced by subdivide().

uint8_t t10HB[64] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t10HB_const[64] [static]

Initial value:

{1,2,10,23,35,30,12,17,3,3,8,12,18,21,12,7,11,9,15,21,32,
 40,19,6,14,13,22,34,46,23,18,7,20,19,33,47,27,22,9,3,31,22,
 41,26,21,20,5,3,14,13,10,11,16,6,5,1,9,8,7,8,4,4,2,0 }

Referenced by init_mp3_encoder_engine().

uint8_t t10l[64] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t10l_const[64] [static]

Initial value:

{1,3,6,8,9,9,9,10,3,4,6,7,8,9,8,8,6,6,7,8,9,10,9,9,7,7,8,9,10,10,9,10,8,8,9,10,
 10,10,10,10,9,9,10,10,11,11,10,11,8,8,9,10,10,10,11,11,9,8,9,10,10,11,11,11}

Referenced by init_mp3_encoder_engine().

uint8_t t11HB[64] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t11HB_const[64] [static]

Initial value:

{3,4,10,24,34,33,21,15,5,3,4,10,32,17,11,10,11,7,13,18,30,
 31,20,5,25,11,19,59,27,18,12,5,35,33,31,58,30,16,7,5,28,26,
 32,19,17,15,8,14,14,12,9,13,14,9,4,1,11,4,6,6,6,3,2,0 }

Referenced by init_mp3_encoder_engine().

uint8_t t11l[64] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t11l_const[64] [static]

Initial value:

{2,3,5,7,8,9,8,9,3,3,4,6,8,8,7,8,5,5,6,7,8,9,8,8,7,6,7,9,8,10,8,9,8,8,8,9,9,10,
 9,10,8,8,9,10,10,11,10,11,8,7,7,8,9,10,10,10,8,7,8,9,10,10,10,10}

Referenced by init_mp3_encoder_engine().

uint8_t t12HB[64] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t12HB_const[64] [static]

Initial value:

{9,6,16,33,41,39,38,26,7,5,6,9,23,16,26,11,17,7,11,14,21,
30,10,7,17,10,15,12,18,28,14,5,32,13,22,19,18,16,9,5,40,17,
31,29,17,13,4,2,27,12,11,15,10,7,4,1,27,12,8,12,6,3,1,0 }

Referenced by init_mp3_encoder_engine().

uint8_t t12l[64] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t12l_const[64] [static]

Initial value:

{4,3,5,7,8,9,9,9,3,3,4,5,7,7,8,8,5,4,5,6,7,8,7,8,6,5,6,6,7,8,8,8,7,6,7,7,8,
 8,8,9,8,7,8,8,8,9,8,9,8,7,7,8,8,9,9,10,9,8,8,9,9,9,9,10}

Referenced by init_mp3_encoder_engine().

uint8_t t13HB[256] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t13HB_const[256] [static]

Initial value:

{1,5,14,21,34,51,46,71,42,52,68,52,67,44,43,19,3,4,12,19,31,26,44,33,31,24,32,
 24,31,35,22,14,15,13,23,36,59,49,77,65,29,40,30,40,27,33,42,16,22,20,37,61,56,
 79,73,64,43,76,56,37,26,31,25,14,35,16,60,57,97,75,114,91,54,73,55,41,48,53,
 23,24,58,27,50,96,76,70,93,84,77,58,79,29,74,49,41,17,47,45,78,74,115,94,90,
 79,69,83,71,50,59,38,36,15,72,34,56,95,92,85,91,90,86,73,77,65,51,44,43,42,43,
 20,30,44,55,78,72,87,78,61,46,54,37,30,20,16,53,25,41,37,44,59,54,81,66,76,57,
 54,37,18,39,11,35,33,31,57,42,82,72,80,47,58,55,21,22,26,38,22,53,25,23,38,70,
 60,51,36,55,26,34,23,27,14,9,7,34,32,28,39,49,75,30,52,48,40,52,28,18,17,9,5,
 45,21,34,64,56,50,49,45,31,19,12,15,10,7,6,3,48,23,20,39,36,35,53,21,16,23,13,
 10,6,1,4,2,16,15,17,27,25,20,29,11,17,12,16,8,1,1,0,1 }

Referenced by init_mp3_encoder_engine().

uint8_t t13l[256] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t13l_const[256] [static]

Initial value:

{1,4,6,7,8,9,9,10,9,10,11,11,12,12,13,13,3,4,6,7,8,8,9,9,9,9,10,10,11,12,12,12,
 6,6,7,8,9,9,10,10,9,10,10,11,11,12,13,13,7,7,8,9,9,10,10,10,10,11,11,11,11,12,
 13,13,8,7,9,9,10,10,11,11,10,11,11,12,12,13,13,14,9,8,9,10,10,10,11,11,11,11,
 12,11,13,13,14,14,9,9,10,10,11,11,11,11,11,12,12,12,13,13,14,14,10,9,10,11,11,
 11,12,12,12,12,13,13,13,14,16,16,9,8,9,10,10,11,11,12,12,12,12,13,13,14,15,15,
 10,9,10,10,11,11,11,13,12,13,13,14,14,14,16,15,10,10,10,11,11,12,12,13,12,13,
 14,13,14,15,16,17,11,10,10,11,12,12,12,12,13,13,13,14,15,15,15,16,11,11,11,12,
 12,13,12,13,14,14,15,15,15,16,16,16,12,11,12,13,13,13,14,14,14,14,14,15,16,15,
 16,16,13,12,12,13,13,13,15,14,14,17,15,15,15,17,16,16,12,12,13,14,14,14,15,14,
 15,15,16,16,19,18,19,16}

Referenced by init_mp3_encoder_engine().

uint8_t t15HB[256] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t15HB_const[256] [static]

Initial value:

{7,12,18,53,47,76,124,108,89,123,108,119,107,81,122,63,13,5,16,27,46,36,61,51,
 42,70,52,83,65,41,59,36,19,17,15,24,41,34,59,48,40,64,50,78,62,80,56,33,29,28,
 25,43,39,63,55,93,76,59,93,72,54,75,50,29,52,22,42,40,67,57,95,79,72,57,89,69,
 49,66,46,27,77,37,35,66,58,52,91,74,62,48,79,63,90,62,40,38,125,32,60,56,50,
 92,78,65,55,87,71,51,73,51,70,30,109,53,49,94,88,75,66,122,91,73,56,42,64,44,
 21,25,90,43,41,77,73,63,56,92,77,66,47,67,48,53,36,20,71,34,67,60,58,49,88,76,
 67,106,71,54,38,39,23,15,109,53,51,47,90,82,58,57,48,72,57,41,23,27,62,9,86,
 42,40,37,70,64,52,43,70,55,42,25,29,18,11,11,118,68,30,55,50,46,74,65,49,39,
 24,16,22,13,14,7,91,44,39,38,34,63,52,45,31,52,28,19,14,8,9,3,123,60,58,53,47,
 43,32,22,37,24,17,12,15,10,2,1,71,37,34,30,28,20,17,26,21,16,10,6,8,6,2,0}

Referenced by init_mp3_encoder_engine().

uint8_t t15l[256] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t15l_const[256] [static]

Initial value:

{3,4,5,7,7,8,9,9,9,10,10,11,11,11,12,13,4,3,5,6,7,7,8,8,8,9,9,10,10,10,11,11,5,
 5,5,6,7,7,8,8,8,9,9,10,10,11,11,11,6,6,6,7,7,8,8,9,9,9,10,10,10,11,11,11,7,6,
 7,7,8,8,9,9,9,9,10,10,10,11,11,11,8,7,7,8,8,8,9,9,9,9,10,10,11,11,11,12,9,7,8,
 8,8,9,9,9,9,10,10,10,11,11,12,12,9,8,8,9,9,9,9,10,10,10,10,10,11,11,11,12,9,8,
 8,9,9,9,9,10,10,10,10,11,11,12,12,12,9,8,9,9,9,9,10,10,10,11,11,11,11,12,12,
 12,10,9,9,9,10,10,10,10,10,11,11,11,11,12,13,12,10,9,9,9,10,10,10,10,11,11,11,
 11,12,12,12,13,11,10,9,10,10,10,11,11,11,11,11,11,12,12,13,13,11,10,10,10,10,
 11,11,11,11,12,12,12,12,12,13,13,12,11,11,11,11,11,11,11,12,12,12,12,13,13,12,
 13,12,11,11,11,11,11,11,12,12,12,12,12,13,13,13,13}

Referenced by init_mp3_encoder_engine().

uint16_t t16HB[256] [static]

const uint16_t t16HB_const[256] [static]

Initial value:

{1,5,14,44,74,63,110,93,172,149,138,242,225,195,376,17,3,4,12,20,35,62,53,47,
 83,75,68,119,201,107,207,9,15,13,23,38,67,58,103,90,161,72,127,117,110,209,
 206,16,45,21,39,69,64,114,99,87,158,140,252,212,199,387,365,26,75,36,68,65,
 115,101,179,164,155,264,246,226,395,382,362,9,66,30,59,56,102,185,173,265,142,
 253,232,400,388,378,445,16,111,54,52,100,184,178,160,133,257,244,228,217,385,
 366,715,10,98,48,91,88,165,157,148,261,248,407,397,372,380,889,884,8,85,84,81,
 159,156,143,260,249,427,401,392,383,727,713,708,7,154,76,73,141,131,256,245,
 426,406,394,384,735,359,710,352,11,139,129,67,125,247,233,229,219,393,743,737,
 720,885,882,439,4,243,120,118,115,227,223,396,746,742,736,721,712,706,223,436,
 6,202,224,222,218,216,389,386,381,364,888,443,707,440,437,1728,4,747,211,210,
 208,370,379,734,723,714,1735,883,877,876,3459,865,2,377,369,102,187,726,722,
 358,711,709,866,1734,871,3458,870,434,0,12,10,7,11,10,17,11,9,13,12,10,7,5,3,
 1,3}

Referenced by init_mp3_encoder_engine().

uint8_t t16l[256] [static]

const uint8_t t16l_const[256] [static]

Initial value:

{1,4,6,8,9,9,10,10,11,11,11,12,12,12,13,9,3,4,6,7,8,9,9,9,10,10,10,11,12,11,12,
 8,6,6,7,8,9,9,10,10,11,10,11,11,11,12,12,9,8,7,8,9,9,10,10,10,11,11,12,12,12,
 13,13,10,9,8,9,9,10,10,11,11,11,12,12,12,13,13,13,9,9,8,9,9,10,11,11,12,11,12,
 12,13,13,13,14,10,10,9,9,10,11,11,11,11,12,12,12,12,13,13,14,10,10,9,10,10,11,
 11,11,12,12,13,13,13,13,15,15,10,10,10,10,11,11,11,12,12,13,13,13,13,14,14,14,
 10,11,10,10,11,11,12,12,13,13,13,13,14,13,14,13,11,11,11,10,11,12,12,12,12,13,
 14,14,14,15,15,14,10,12,11,11,11,12,12,13,14,14,14,14,14,14,13,14,11,12,12,12,
 12,12,13,13,13,13,15,14,14,14,14,16,11,14,12,12,12,13,13,14,14,14,16,15,15,15,
 17,15,11,13,13,11,12,14,14,13,14,14,15,16,15,17,15,14,11,9,8,8,9,9,10,10,10,
 11,11,11,11,11,11,11,8}

Referenced by init_mp3_encoder_engine().

uint8_t t1HB[4] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t1HB_const[4] = {1,1,1,0} [static]

Referenced by init_mp3_encoder_engine().

uint8_t t1l[8] [static]

const uint8_t t1l_const[8] = {1,3,2,3,1,4,3,5} [static]

Referenced by init_mp3_encoder_engine().

uint16_t t24HB[256] [static]

const uint16_t t24HB_const[256] [static]

Initial value:

{15,13,46,80,146,262,248,434,426,669,653,649,621,517,1032,88,14,12,21,38,71,
 130,122,216,209,198,327,345,319,297,279,42,47,22,41,74,68,128,120,221,207,194,
 182,340,315,295,541,18,81,39,75,70,134,125,116,220,204,190,178,325,311,293,
 271,16,147,72,69,135,127,118,112,210,200,188,352,323,306,285,540,14,263,66,
 129,126,119,114,214,202,192,180,341,317,301,281,262,12,249,123,121,117,113,
 215,206,195,185,347,330,308,291,272,520,10,435,115,111,109,211,203,196,187,
 353,332,313,298,283,531,381,17,427,212,208,205,201,193,186,177,169,320,303,
 286,268,514,377,16,335,199,197,191,189,181,174,333,321,305,289,275,521,379,
 371,11,668,184,183,179,175,344,331,314,304,290,277,530,383,373,366,10,652,346,
 171,168,164,318,309,299,287,276,263,513,375,368,362,6,648,322,316,312,307,302,
 292,284,269,261,512,376,370,364,359,4,620,300,296,294,288,282,273,266,515,380,
 374,369,365,361,357,2,1033,280,278,274,267,264,259,382,378,372,367,363,360,
 358,356,0,43,20,19,17,15,13,11,9,7,6,4,7,5,3,1,3}

Referenced by init_mp3_encoder_engine().

uint8_t t24l[256] [static]

const uint8_t t24l_const[256] [static]

Initial value:

{4,4,6,7,8,9,9,10,10,11,11,11,11,11,12,9,4,4,5,6,7,8,8,9,9,9,10,10,10,10,10,8,
 6,5,6,7,7,8,8,9,9,9,9,10,10,10,11,7,7,6,7,7,8,8,8,9,9,9,9,10,10,10,10,7,8,7,7,
 8,8,8,8,9,9,9,10,10,10,10,11,7,9,7,8,8,8,8,9,9,9,9,10,10,10,10,10,7,9,8,8,8,8,
 9,9,9,9,10,10,10,10,10,11,7,10,8,8,8,9,9,9,9,10,10,10,10,10,11,11,8,10,9,9,9,
 9,9,9,9,9,10,10,10,10,11,11,8,10,9,9,9,9,9,9,10,10,10,10,10,11,11,11,8,11,9,9,
 9,9,10,10,10,10,10,10,11,11,11,11,8,11,10,9,9,9,10,10,10,10,10,10,11,11,11,11,
 8,11,10,10,10,10,10,10,10,10,10,11,11,11,11,11,8,11,10,10,10,10,10,10,10,11,
 11,11,11,11,11,11,8,12,10,10,10,10,10,10,11,11,11,11,11,11,11,11,8,8,7,7,7,7,
 7,7,7,7,7,7,8,8,8,8,4}

Referenced by init_mp3_encoder_engine().

uint8_t t2HB[9] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t2HB_const[9] = {1,2,1,3,1,1,3,2,0} [static]

Referenced by init_mp3_encoder_engine().

uint8_t t2l[9] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t2l_const[9] = {1,3,6,3,3,5,5,5,6} [static]

Referenced by init_mp3_encoder_engine().

uint8_t t3HB[9] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t3HB_const[9] = {3,2,1,1,1,1,3,2,0} [static]

Referenced by init_mp3_encoder_engine().

uint8_t t3l[9] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t3l_const[9] = {2,2,6,3,2,5,5,5,6} [static]

Referenced by init_mp3_encoder_engine().

uint8_t t5HB[16] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t5HB_const[16] = {1,2,6,5,3,1,4,4,7,5,7,1,6,1,1,0} [static]

Referenced by init_mp3_encoder_engine().

uint8_t t5l[16] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t5l_const[16] = {1,3,6,7,3,3,6,7,6,6,7,8,7,6,7,8} [static]

Referenced by init_mp3_encoder_engine().

uint8_t t6HB[16] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t6HB_const[16] = {7,3,5,1,6,2,3,2,5,4,4,1,3,3,2,0} [static]

Referenced by init_mp3_encoder_engine().

uint8_t t6l[16] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t6l_const[16] = {3,3,5,7,3,2,4,5,4,4,5,6,6,5,6,7} [static]

Referenced by init_mp3_encoder_engine().

uint8_t t7HB[36] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t7HB_const[36] [static]

Initial value:

{  1, 2,10,19,16,10, 3, 3, 7,10, 5, 3,11, 4,13,17, 8, 4,
  12,11,18,15,11, 2, 7, 6, 9,14, 3, 1, 6, 4, 5, 3, 2, 0 }

Referenced by init_mp3_encoder_engine().

uint8_t t7l[36] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t7l_const[36] [static]

Initial value:

{1,3,6,8,8,9,3,4,6,7,7,8,6,5,7,8,8,9,7,7,8,9,9,9,7,7,8,9,9,10,8,8,9,10,10,10}

Referenced by init_mp3_encoder_engine().

uint8_t t8HB[36] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t8HB_const[36] [static]

Initial value:

{  3, 4, 6,18,12, 5, 5, 1, 2,16, 9, 3, 7, 3, 5,14, 7, 3,
  19,17,15,13,10, 4,13, 5, 8,11, 5, 1,12, 4, 4, 1, 1, 0 }

Referenced by init_mp3_encoder_engine().

uint8_t t8l[36] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t8l_const[36] [static]

Initial value:

{2,3,6,8,8,9,3,2,4,8,8,8,6,4,6,8,8,9,8,8,8,9,9,10,8,7,8,9,10,10,9,8,9,9,11,11}

Referenced by init_mp3_encoder_engine().

uint8_t t9HB[36] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t9HB_const[36] [static]

Initial value:

{  7, 5, 9,14,15, 7, 6, 4, 5, 5, 6, 7, 7, 6, 8, 8, 8, 5,
  15, 6, 9,10, 5, 1,11, 7, 9, 6, 4, 1,14, 4, 6, 2, 6, 0 }

Referenced by init_mp3_encoder_engine().

uint8_t t9l[36] [static]

Referenced by init_mp3_encoder_engine().

const uint8_t t9l_const[36] [static]

Initial value:

{3,3,5,6,8,9,3,3,4,5,6,8,4,4,5,6,7,8,6,5,6,7,7,8,7,6,7,7,8,9,8,7,8,8,9,9}

Referenced by init_mp3_encoder_engine().

uint32_t tab01[16] [static]

const uint32_t tab01_const[16] [static]

Initial value:

{ 0x10004,0x50005,0x50005,0x70006,0x50005,0x80006,0x70006,0x90007,
  0x50005,0x70006,0x70006,0x90007,0x70006,0x90007,0x90007,0xa0008 }

Referenced by init_mp3_encoder_engine().

uint32_t tab1315[256] [static]

const uint32_t tab1315_const[256] [static]

Referenced by init_mp3_encoder_engine().

uint32_t tab1624[256] [static]

const uint32_t tab1624_const[256] [static]

Referenced by init_mp3_encoder_engine().

uint32_t tab23[9] [static]

const uint32_t tab23_const[9] [static]

Initial value:

{ 0x10002,0x40003,0x70007,0x40004,0x50004,0x70007,0x60006,0x70007,0x80008 }

Referenced by init_mp3_encoder_engine().

uint32_t tab56[16] [static]

const uint32_t tab56_const[16] [static]

Initial value:

{ 0x10003,0x40004,0x70006,0x80008,0x40004,0x50004,0x80006,0x90007,
  0x70005,0x80006,0x90007,0xa0008,0x80007,0x80007,0x90008,0xa0009 }

Referenced by init_mp3_encoder_engine().

uint32_t tab789[36] [static]

const uint32_t tab789_const[36] [static]

Initial value:

{0x00100803,0x00401004,0x00701c06,0x00902407,0x00902409,0x00a0280a,0x00401004,
 0x00601005,0x00801806,0x00902807,0x00902808,0x00a0280a,0x00701c05,0x00701806,
 0x00902007,0x00a02808,0x00a02809,0x00b02c0a,0x00802407,0x00902807,0x00a02808,
 0x00b02c09,0x00b02c09,0x00b0300a,0x00802408,0x00902408,0x00a02809,0x00b02c09,
 0x00b0300a,0x00c0300b,0x00902809,0x00a02809,0x00b02c0a,0x00c02c0a,0x00c0340b,
 0x00c0340b}

Referenced by init_mp3_encoder_engine().

uint32_t tabABC[64] [static]

const uint32_t tabABC_const[64] [static]

Initial value:

{0x00100804,0x00401004,0x00701806,0x00902008,0x00a02409,0x00a0280a,0x00a0240a,
 0x00b0280a,0x00401004,0x00601405,0x00801806,0x00902007,0x00a02809,0x00b02809,
 0x00a0240a,0x00a0280a,0x00701806,0x00801c06,0x00902007,0x00a02408,0x00b02809,
 0x00c02c0a,0x00b02809,0x00b0280a,0x00802007,0x00902007,0x00a02408,0x00b02c08,
 0x00c02809,0x00c0300a,0x00b0280a,0x00c02c0a,0x00902408,0x00a02808,0x00b02809,
 0x00c02c09,0x00c02c0a,0x00c0300a,0x00c02c0a,0x00c0300b,0x00a02409,0x00b02809,
 0x00c02c0a,0x00c0300a,0x00d0300a,0x00d0340b,0x00c0300a,0x00d0340b,0x00902409,
 0x00a02409,0x00b02409,0x00c0280a,0x00c02c0a,0x00c0300b,0x00d0300b,0x00d0300c,
 0x00a0240a,0x00a0240a,0x00b0280a,0x00c02c0b,0x00c0300b,0x00d0300b,0x00d0300b,
 0x00d0300c}

Referenced by init_mp3_encoder_engine().

int win[18][4] [static]

const int win_const[18][4] [static]

Initial value:

 {
  { -3072, -134, -146, 3352 },
  { -2747, -362, -471, 3579 },
  { -2387, -529, -831, 3747 },
  { -2004, -632,-1214, 3850 },
  { -1609, -666,-1609, 3884 },
  { -1214, -632,-2004, 3850 },
  {  -831, -529,-2387, 3747 },
  {  -471, -362,-2747, 3579 },
  {  -146, -134,-3072, 3352 },
  {   134,-3072,-3352, -146 },
  {   362,-2747,-3579, -471 },
  {   529,-2387,-3747, -831 },
  {   632,-2004,-3850,-1214 },
  {   666,-1609,-3884,-1609 },
  {   632,-1214,-3850,-2004 },
  {   529, -831,-3747,-2387 },
  {   362, -471,-3579,-2747 },
  {   134, -146,-3352,-3072 } }

Referenced by init_mp3_encoder_engine().


Generated on Tue May 25 08:05:14 2010 for VLC by  doxygen 1.5.6