Lines Matching refs:srcp

106 static inline u32 CXiReadHeader( u8* headerSize, s32 *destCount, const u8* srcp, u32 srcSize, s32 f…  in CXiReadHeader()  argument
114 *destCount |= (*srcp << ((3 - *headerSize) * 8)); in CXiReadHeader()
118 *destCount |= (*srcp << ((6 - *headerSize) * 8)); in CXiReadHeader()
120 ++srcp; in CXiReadHeader()
157 const u8* srcp = (const u8*)data; in CXReadUncompRL() local
166 if ( (*srcp & CX_COMPRESSION_TYPE_MASK) != CX_COMPRESSION_RL ) in CXReadUncompRL()
170 if ( (*srcp & 0x0F ) != 0 ) in CXReadUncompRL()
175 …read_len = CXiReadHeader( &context->headerSize, &context->destCount, srcp, len, context->forceDest… in CXReadUncompRL()
176 srcp += read_len; in CXReadUncompRL()
192 *context->destp++ = *srcp++; in CXReadUncompRL()
206 srcTmp = *srcp++; in CXReadUncompRL()
221 context->flags = *srcp++; in CXReadUncompRL()
273 const u8* srcp = (const u8*)data; in CXReadUncompLZ() local
283 if ( ( *srcp & CX_COMPRESSION_TYPE_MASK ) != CX_COMPRESSION_LZ ) in CXReadUncompLZ()
288 context->exFormat = (u8)( *srcp & 0x0F ); in CXReadUncompLZ()
294 …read_len = CXiReadHeader( &context->headerSize, &context->destCount, srcp, len, context->forceDest… in CXReadUncompLZ()
295 srcp += read_len; in CXReadUncompLZ()
315 *context->destp++ = *srcp++; in CXReadUncompLZ()
327 context->length = *srcp++; in CXReadUncompLZ()
337 context->length = *srcp++; in CXReadUncompLZ()
360 context->length += (*srcp++ << 8); in CXReadUncompLZ()
365 context->length += *srcp++; in CXReadUncompLZ()
378 offset = (offset | *srcp++) + 1; in CXReadUncompLZ()
414 context->flags = *srcp++; in CXReadUncompLZ()
454 const u8* srcp = (const u8*)data; in CXReadUncompHuffman() local
465 context->bitSize = (u8)(*srcp & 0xF); in CXReadUncompHuffman()
467 if ( ( *srcp & CX_COMPRESSION_TYPE_MASK ) != CX_COMPRESSION_HUFFMAN ) in CXReadUncompHuffman()
476 …read_len = CXiReadHeader( &context->headerSize, &context->destCount, srcp, len, context->forceDest… in CXReadUncompHuffman()
477 srcp += read_len; in CXReadUncompHuffman()
489 context->treeSize = (s16)( ( *srcp + 1 ) * 2 - 1 ); in CXReadUncompHuffman()
490 *context->treep++ = *srcp++; in CXReadUncompHuffman()
501 *context->treep++ = *srcp++; in CXReadUncompHuffman()
524 context->srcTmp |= (*srcp++) << context->srcTmpCnt; in CXReadUncompHuffman()