ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

static void II_select_table ( mpg123_handle *  fr) [static]

Definition at line 296 of file layer2.c.

Referenced by do_layer2().

{
    const int translate[3][2][16] =
    {
        {
            { 0,2,2,2,2,2,2,0,0,0,1,1,1,1,1,0 },
            { 0,2,2,0,0,0,1,1,1,1,1,1,1,1,1,0 }
        },
        {
            { 0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0 },
            { 0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0 }
        },
        {
            { 0,3,3,3,3,3,3,0,0,0,1,1,1,1,1,0 },
            { 0,3,3,0,0,0,1,1,1,1,1,1,1,1,1,0 }
        }
    };

    int table,sblim;
    const struct al_table *tables[5] = { alloc_0, alloc_1, alloc_2, alloc_3 , alloc_4 };
    const int sblims[5] = { 27 , 30 , 8, 12 , 30 };

    if(fr->sampling_frequency >= 3) /* Or equivalent: (fr->lsf == 1) */
    table = 4;
    else
    table = translate[fr->sampling_frequency][2-fr->stereo][fr->bitrate_index];

    sblim = sblims[table];
    fr->alloc      = tables[table];
    fr->II_sblimit = sblim;
}

Generated on Sun May 27 2012 06:00:53 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.