Lines Matching refs:table
443 int RLBitStream::GetHuff( const short* table )
450 int table_bits = table[0];
451 val = table[Show(table_bits) + 2];
456 table += val*2;
545 int RMBitStream::GetHuff( const short* table )
552 int table_bits = table[0];
553 val = table[Show(table_bits) + 1];
558 table += val;
589 bool bsCreateDecodeHuffmanTable( const int* src, short* table, int max_size )
619 /* calc offsets of sub tables and whole size of table */
637 /* fill first table and subtables with forbidden values */
640 table[i] = (short)forbidden_entry;
643 /* write header of first table */
644 table[0] = (short)first_bits;
646 /* fill first table and sub tables */
665 table[offset] = (short)table_bits;
667 table[idx + 1]= (short)(offset << 4);
677 assert( table[offset + j] == forbidden_entry );
678 table[ offset + j ] = (short)val;
690 int* table = dst;
706 return table;
1044 void WMBitStream::PutHuff( int val, const ulong* table )
1046 int min_val = (int)table[0];
1049 assert( (unsigned)val < table[1] );
1051 ulong code = table[val + 2];
1058 bool bsCreateEncodeHuffmanTable( const int* src, ulong* table, int max_size )
1064 /* calc min and max values in the table */
1087 memset( table, 0, size*sizeof(table[0]));
1089 table[0] = min_val;
1090 table[1] = size - 2;
1101 table[val - min_val + 2] = (code << 8) | i;