Lines Matching refs:u32
32 u32 GetUncompressedSize(const void* pData) in GetUncompressedSize()
38 u32 size = internal::Read32Le(p) >> 8; in GetUncompressedSize()
119 u32 destCount = internal::Read32Le(pSrc) >> 8; in UncompressRL()
131 u32 length = flags & 0x7fU; in UncompressRL()
201 u32 destCount = internal::Read32Le(pSrc) >> 8; in UncompressLZ()
214 u32 flags = *pSrc++; in UncompressLZ()
224 u32 length = (*pSrc >> 4); in UncompressLZ()
322 NN_CX_CHECK_ALIGN(srcp, sizeof(u32)); in UncompressHuffman()
323 NN_CX_CHECK_ALIGN(destp, sizeof(u32)); in UncompressHuffman()
326 const u32 *pSrc = static_cast<const u32*>(srcp); in UncompressHuffman()
327 u32 *pDst = static_cast<u32*>(destp); in UncompressHuffman()
331 u32 dataBit = *(u8*)pSrc & 0x0FU; in UncompressHuffman()
332 u32 destTmp = 0; in UncompressHuffman()
333 u32 destTmpCount = 0; in UncompressHuffman()
334 u32 destTmpDataNum = 4 + ( dataBit & 0x7 ); in UncompressHuffman()
341 pSrc = (u32*)( treep + ((*treep + 1) << 1) ); in UncompressHuffman()
347 u32 srcTmp = internal::ConvertEndian( *pSrc++ ); // Endian strategy in UncompressHuffman()
350 u32 treeShift = (srcTmp >> 31) & 0x1; in UncompressHuffman()
351 u32 treeCheck = *treep; in UncompressHuffman()
353 treep = (u8*)( (((u32)treep >> 1) << 1) + (((*treep & 0x3f) + 1) << 1) + treeShift ); in UncompressHuffman()
390 u32
393 u32 tableSize; in HuffImportTree()
394 u32 idx = 1; in HuffImportTree()
395 u32 data = 0; in HuffImportTree()
396 u32 bitNum = 0; in HuffImportTree()
397 u32 bitMask = (1 << bitSize) - 1U; in HuffImportTree()
398 u32 srcCnt = 0; in HuffImportTree()
399 const u32 MAX_IDX = (u32)( (1 << bitSize) * 2 ); in HuffImportTree()
437 u32 cnt;
438 u32 stream;
439 u32 stream_len;
487 NN_CX_CHECK_ALIGN(srcp, sizeof(u32)); in UncompressLH()
501 u32 dstSize; in UncompressLH()
502 u32 dstCnt = 0; in UncompressLH()
534 u32 offset = (((*nodep & 0x7F) + 1U) << 1) + bit; in UncompressLH()
538 nodep = (u16*)((u32)nodep & ~0x3); in UncompressLH()
544 nodep = (u16*)((u32)nodep & ~0x3); in UncompressLH()
563 u32 offset = (((*nodep & OFFSET_MASK) + 1U) << 1) + bit; in UncompressLH()
567 nodep = (u16*)((u32)nodep & ~0x3); in UncompressLH()
573 nodep = (u16*)((u32)nodep & ~0x3); in UncompressLH()
616 u32 low;
617 u32 range;
618 u32 code; // only used during decompression
621 u32 carry_cnt; // only used during compression
627 u32 *freq; // Table for occurrence frequency: (1 << bitSize) * sizeof(u32) bytes
628 u32 *low_cnt; // Table for the LOW border value: (1 << bitSize) * sizeof(u32) bytes
629 u32 total; // Total: 4 bytes
669 u32 tableSize = (u32)(1 << bitSize); in RCInitInfo_()
670 u32 i; in RCInitInfo_()
673 info->freq = (u32*)work; in RCInitInfo_()
674 info->low_cnt = (u32*)( (u32)work + tableSize * sizeof(u32) ); in RCInitInfo_()
697 u32 i; in RCAddCount_()
698 u32 tableSize = (u32)(1 << info->bitSize); in RCAddCount_()
702 for ( i = (u32)(val + 1); i < tableSize; i++ ) in RCAddCount_()
743 RCSearch_( RCCompressionInfo* info, u32 code, u32 range, u32 low ) in RCSearch_()
745 u32 tableSize = (u32)(1 << info->bitSize); in RCSearch_()
746 u32 codeVal = code - low; in RCSearch_()
747 u32 i; in RCSearch_()
748 u32 temp = range / info->total; in RCSearch_()
749 u32 tempVal = codeVal / temp; in RCSearch_()
752 u32 left = 0; in RCSearch_()
753 u32 right = tableSize - 1; in RCSearch_()
791 RCGetData_( const u8* srcp, RCCompressionInfo* info, RCState* state, u32* pSrcCnt ) in RCGetData_()
795 u32 cnt = 0; in RCGetData_()
798 u32 tmp; in RCGetData_()
839 NN_CX_CHECK_ALIGN(srcp, sizeof(u32)); in UncompressLRC()
840 NN_CX_CHECK_ALIGN(work, sizeof(u32)); in UncompressLRC()
848 u32 dstCnt = 0; in UncompressLRC()
849 u32 dstSize = 0; in UncompressLRC()
852 RCInitInfo_( &infoOfs, OFFSET_BITS, (u8*)work + (1 << LENGTH_BITS) * sizeof(u32) * 2 ); in UncompressLRC()
865 rcState.code = (u32)( (*pSrc << 24) | in UncompressLRC()
874 u32 cnt; in UncompressLRC()
933 u32 bitSize = *pSrc & 0xFU; in UnfilterDiff()
935 u32 sum = 0; in UnfilterDiff()
1000 u32 offsetInTop = (pBottom[-6] << 16) | (pBottom[-7] << 8) | pBottom[-8]; in UncompressBLZ()
1007 u32 offsetInBtm = pBottom[-5]; in UncompressBLZ()
1014 u32 offsetOut = (pBottom[-1] << 24) | (pBottom[-2] << 16) | in UncompressBLZ()
1037 u32 length = *--pInBtm; in UncompressBLZ()
1038 u32 offset = (((length & 0xf) << 8) | (*--pInBtm)) + 3; in UncompressBLZ()