• Home
  • Raw
  • Download

Lines Matching refs:BitsInCache

119   UINT BitsInCache;  member
145 hBitStream->CacheWord = hBitStream->BitsInCache = 0;
170 hBitStream->CacheWord = hBitStream->BitsInCache = 0;
186 hBitStream->CacheWord = hBitStream->BitsInCache = 0;
213 INT missingBits = (INT)numberOfBits - (INT)hBitStream->BitsInCache; in FDKreadBits()
219 hBitStream->BitsInCache += CACHE_BITS; in FDKreadBits()
222 hBitStream->BitsInCache -= numberOfBits; in FDKreadBits()
224 return (bits | (hBitStream->CacheWord >> hBitStream->BitsInCache)) & in FDKreadBits()
229 if (!hBitStream->BitsInCache) { in FDKreadBit()
231 hBitStream->BitsInCache = CACHE_BITS - 1; in FDKreadBit()
234 hBitStream->BitsInCache--; in FDKreadBit()
236 return (hBitStream->CacheWord >> hBitStream->BitsInCache) & 1; in FDKreadBit()
254 INT missingBits = 2 - (INT)hBitStream->BitsInCache; in FDKread2Bits()
258 hBitStream->BitsInCache += CACHE_BITS; in FDKread2Bits()
261 hBitStream->BitsInCache -= 2; in FDKread2Bits()
263 return (bits | (hBitStream->CacheWord >> hBitStream->BitsInCache)) & 0x3; in FDKread2Bits()
278 if (hBitStream->BitsInCache <= numberOfBits) { in FDKreadBitsBwd()
279 const INT freeBits = (CACHE_BITS - 1) - hBitStream->BitsInCache; in FDKreadBitsBwd()
283 hBitStream->BitsInCache += freeBits; in FDKreadBitsBwd()
286 hBitStream->BitsInCache -= numberOfBits; in FDKreadBitsBwd()
288 return (hBitStream->CacheWord >> hBitStream->BitsInCache) & validMask; in FDKreadBitsBwd()
350 if ((hBitStream->BitsInCache + numberOfBits) < CACHE_BITS) { in FDKwriteBits()
351 hBitStream->BitsInCache += numberOfBits; in FDKwriteBits()
362 int missing_bits = CACHE_BITS - hBitStream->BitsInCache; in FDKwriteBits()
372 hBitStream->BitsInCache = remaining_bits; in FDKwriteBits()
391 if ((hBitStream->BitsInCache + numberOfBits) <= CACHE_BITS) { in FDKwriteBitsBwd()
392 hBitStream->BitsInCache += numberOfBits; in FDKwriteBitsBwd()
397 hBitStream->BitsInCache); in FDKwriteBitsBwd()
398 hBitStream->BitsInCache = numberOfBits; in FDKwriteBitsBwd()
454 FDK_pushBack(&hBitStream->hBitBuf, hBitStream->BitsInCache, in FDKsyncCache()
456 else if (hBitStream->BitsInCache) /* BS_WRITER */ in FDKsyncCache()
458 hBitStream->BitsInCache); in FDKsyncCache()
460 hBitStream->BitsInCache = 0; in FDKsyncCache()
472 FDK_pushForward(&hBitStream->hBitBuf, hBitStream->BitsInCache, in FDKsyncCacheBwd()
476 hBitStream->BitsInCache); in FDKsyncCacheBwd()
479 hBitStream->BitsInCache = 0; in FDKsyncCacheBwd()
534 FDK_ASSERT((hBitStream->BitsInCache + numberOfBits) <= CACHE_BITS); in FDKpushBackCache()
535 hBitStream->BitsInCache += numberOfBits; in FDKpushBackCache()
540 if ((hBitStream->BitsInCache + numberOfBits) < CACHE_BITS && in FDKpushBack()
542 hBitStream->BitsInCache += numberOfBits; in FDKpushBack()
552 if ((hBitStream->BitsInCache > numberOfBits) && in FDKpushFor()
554 hBitStream->BitsInCache -= numberOfBits; in FDKpushFor()