Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #include "bstream.h"
  2. #include "mp3dec.h"
  3.  
  4. typedef struct {
  5.         uint    part2_3_length;
  6.         uint    big_values;
  7.         uint    global_gain;
  8.         uint    scalefac_compress;
  9.         uint    window_switching_flag;
  10.         uint    block_type;
  11.         uint    mixed_block_flag;
  12.         uint    table_select[3];
  13.         uint    subblock_gain[3];
  14.         uint    region0_count;
  15.         uint    region1_count;
  16.         uint    preflag;
  17.         uint    scalefac_scale;
  18.         uint    count1table_select;
  19. } GR_INFO;
  20.  
  21. typedef struct {
  22.         uint    main_data_begin;
  23.         uint    private_bits;
  24.  
  25.         uint    scfsi[2];       /* 4 bit flags [ch] */
  26.         GR_INFO gr[2][2];       /* [gr][ch] */
  27. } SIDE_INFO;
  28.  
  29. typedef struct {
  30.         int l[23];                      /* [cb] */
  31.         int s[3][13];           /* [window][cb] */
  32. } SCALE_FACTOR;
  33.  
  34. typedef struct {
  35.    int cbtype;                  /* long=0 short=1 */
  36.    int cbmax;                   /* max crit band */
  37.    int lb_type;                 /* long block type 0 1 3 */
  38.    int cbs0;                    /* short band start index 0 3 12 (12=no shorts */
  39.    int ncbl;                    /* number long cb's 0 8 21 */
  40.    int cbmax_s[3];              /* cbmax by individual short blocks */
  41. } CB_INFO;
  42.  
  43. typedef struct {
  44.         int nr[3];
  45.         int slen[3];
  46.         int intensity_scale;
  47. } IS_SF_INFO;
  48.  
  49. typedef union {
  50.         int             s;
  51.         float   x;
  52. } SAMPLE;
  53.