Lines Matching refs:info

255 static void LZInitTable(LZCompressInfo * info, u8 *work);
256 static void SlideByte(LZCompressInfo * info, const u8 *srcp);
257 static inline void LZSlide(LZCompressInfo * info, const u8 *srcp, u32 n);
258 static u32 SearchLZFast(LZCompressInfo * info, const u8 *nextp, u32 remainSize, u16 *offset, u32 ma…
264 static void LZInitTable(LZCompressInfo * info, u8 *work) in LZInitTable() argument
268 info->LZOffsetTable = (s16 *)work; in LZInitTable()
269 info->LZByteTable = (s16 *)work + 4096; in LZInitTable()
270 info->LZEndTable = (s16 *)work + 4096 + 256; in LZInitTable()
274 info->LZByteTable[i] = -1; in LZInitTable()
275 info->LZEndTable[i] = -1; in LZInitTable()
277 info->windowPos = 0; in LZInitTable()
278 info->windowLen = 0; in LZInitTable()
284 static void SlideByte(LZCompressInfo * info, const u8 *srcp) in SlideByte() argument
290 s16 *const LZByteTable = info->LZByteTable; in SlideByte()
291 s16 *const LZOffsetTable = info->LZOffsetTable; in SlideByte()
292 s16 *const LZEndTable = info->LZEndTable; in SlideByte()
293 const u16 windowPos = info->windowPos; in SlideByte()
294 const u16 windowLen = info->windowLen; in SlideByte()
324 info->windowPos = (u16)((windowPos + 1) % 0x1000); in SlideByte()
328 info->windowLen++; in SlideByte()
335 static inline void LZSlide(LZCompressInfo * info, const u8 *srcp, u32 n) in LZSlide() argument
341 SlideByte(info, srcp++); in LZSlide()
370 LZCompressInfo info; // Temporary LZ compression information in MI_CompressLZFastImpl() local
380 LZInitTable(&info, work); in MI_CompressLZFastImpl()
398 if ( (lastLength = SearchLZFast(&info, srcp, size, &lastOffset, MAX_LENGTH)) != 0 ) in MI_CompressLZFastImpl()
438 LZSlide(&info, srcp, lastLength); in MI_CompressLZFastImpl()
449 LZSlide(&info, srcp, 1); in MI_CompressLZFastImpl()
479 static u32 SearchLZFast(LZCompressInfo * info, const u8 *nextp, u32 remainSize, u16 *offset, u32 ma… in SearchLZFast() argument
487 s16 *const LZOffsetTable = info->LZOffsetTable; in SearchLZFast()
488 const u16 windowPos = info->windowPos; in SearchLZFast()
489 const u16 windowLen = info->windowLen; in SearchLZFast()
496 w_offset = info->LZByteTable[*nextp]; in SearchLZFast()