Lines Matching refs:val
528 u16 val; in UncompressLH() local
539 val = *(nodep + offset); in UncompressLH()
550 if ( val < 0x100 ) in UncompressLH()
553 dstp[dstCnt++] = (u8)val; in UncompressLH()
558 u16 length = (u16)( (val & 0xFF) + 3 ); in UncompressLH()
568 val = *(nodep + offset); in UncompressLH()
579 offset_bit = val; in UncompressLH()
580 val = 0; in UncompressLH()
583 val = 1; in UncompressLH()
586 val <<= 1; in UncompressLH()
587 val |= BitReader_Read( &stream ); in UncompressLH()
591 val += 1; in UncompressLH()
600 dstp[dstCnt] = dstp[dstCnt - val]; in UncompressLH()
695 RCAddCount_( RCCompressionInfo* info, u16 val ) in RCAddCount_() argument
700 info->freq[ val ]++; in RCAddCount_()
702 for ( i = (u32)(val + 1); i < tableSize; i++ ) in RCAddCount_()
794 u16 val = RCSearch_( info, state->code, state->range, state->low ); in RCGetData_() local
800 state->low += info->low_cnt[ val ] * tmp; in RCGetData_()
801 state->range = info->freq[ val ] * tmp; in RCGetData_()
805 RCAddCount_( info, val ); in RCGetData_()
816 return val; in RCGetData_()
875 u16 val = (u16)( RCGetData_( pSrc, &infoVal, &rcState, &cnt ) ); in UncompressLRC() local
878 if ( val < 0x100 ) in UncompressLRC()
881 dstp[ dstCnt++ ] = (u8)val; in UncompressLRC()
886 u16 length = (u16)( (val & 0xFF) + 3 ); in UncompressLRC()
887 val = (u16)( RCGetData_( pSrc, &infoOfs, &rcState, &cnt ) + 1 ); in UncompressLRC()
895 if ( dstCnt < val ) in UncompressLRC()
902 dstp[ dstCnt ] = dstp[ dstCnt - val ]; in UncompressLRC()