Lines Matching refs:val

704     s32  val;  in CXReadUncompLH()  local
758 if ( ( val = BitReader_Read( &stream, 16 ) ) < 0 ) in CXReadUncompLH()
762 … context->tableSize9 = (CXiConvertEndian16_( (u16)val ) + 1) * 4 * 8; // shown with the bit count in CXReadUncompLH()
768 if ( ( val = BitReader_Read( &stream, LENGTH_BITS ) ) < 0 ) in CXReadUncompLH()
772 context->huffTable9[ context->tableIdx++ ] = (u16)val; in CXReadUncompLH()
777 if ( ( val = BitReader_Read( &stream, (u8)context->tableSize9 ) ) < 0 ) in CXReadUncompLH()
792 if ( ( val = BitReader_Read( &stream, (OFFSET_BITS > 8)? 16 : 8 ) ) < 0 ) in CXReadUncompLH()
797 context->tableSize12 = (CXiConvertEndian16_( (u16)val ) + 1) * 4 * 8; in CXReadUncompLH()
799 context->tableSize12 = ((u16)val + 1) * 4 * 8; in CXReadUncompLH()
807 if ( ( val = BitReader_Read( &stream, OFFSET_BITS ) ) < 0 ) in CXReadUncompLH()
811 context->huffTable12[ context->tableIdx++ ] = (u16)val; in CXReadUncompLH()
816 if ( ( val = BitReader_Read( &stream, (u8)context->tableSize12 ) ) < 0 ) in CXReadUncompLH()
842 if ( ( val = BitReader_Read( &stream, 1 ) ) < 0 ) in CXReadUncompLH()
848 bit = (u8)( val & 1 ); in CXReadUncompLH()
889 if ( ( val = BitReader_Read( &stream, 1 ) ) < 0 ) in CXReadUncompLH()
895 bit = (u8)( val & 1 ); in CXReadUncompLH()
921 val = context->offset_bits; in CXReadUncompLH()
923 else if ( ( val = BitReader_Read( &stream, (u8)(context->offset_bits - 1) ) ) < 0 ) in CXReadUncompLH()
931 val |= (1 << (context->offset_bits - 1)); in CXReadUncompLH()
935 lzOffset = (u16)(val + 1); in CXReadUncompLH()
1127 RCAddCount_( RCCompressionInfo* info, u16 val ) in RCAddCount_() argument
1132 info->freq[ val ]++; in RCAddCount_()
1134 for ( i = (u32)(val + 1); i < tableSize; i++ ) in RCAddCount_()
1228 u16 val = RCSearch_( info, state->code, state->range, state->low ); in RCGetData_() local
1234 state->low += info->low_cnt[ val ] * tmp; in RCGetData_()
1235 state->range = info->freq[ val ] * tmp; in RCGetData_()
1239 RCAddCount_( info, val ); in RCGetData_()
1258 return val; in RCGetData_()
1374 u16 val = RCGetData_( srcp, &info9, &rcState, len, &cnt ); in CXReadUncompLRC() local
1376 if ( val < 0x100 ) in CXReadUncompLRC()
1379 *context->destp++ = (u8)val; in CXReadUncompLRC()
1385 context->length = (u16)( (val & 0xFF) + 3 ); in CXReadUncompLRC()
1402 u16 val = (u16)( RCGetData_( srcp, &info12, &rcState, len, &cnt ) + 1 ); in CXReadUncompLRC() local
1416 *context->destp = context->destp[ -val ]; in CXReadUncompLRC()