• Home
  • Raw
  • Download

Lines Matching refs:dec

340       dec.lims[i] = dec.bufs[i] = _bufs[i];  in InitCommon()
352 Bcj2Dec_Init(&dec); in InitCommon()
366 dec.destLim = dec.dest = _bufs[BCJ2_NUM_STREAMS]; in Code()
375 if (Bcj2Dec_Decode(&dec) != SZ_OK) in Code()
378 if (dec.state < BCJ2_NUM_STREAMS) in Code()
380 size_t totalRead = _extraReadSizes[dec.state]; in Code()
382 Byte *buf = _bufs[dec.state]; in Code()
384 buf[i] = dec.bufs[dec.state][i]; in Code()
385 dec.lims[dec.state] = in Code()
386 dec.bufs[dec.state] = buf; in Code()
389 if (_readRes[dec.state] != S_OK) in Code()
391 res = _readRes[dec.state]; in Code()
397 UInt32 curSize = _bufsCurSizes[dec.state] - (UInt32)totalRead; in Code()
408 HRESULT res2 = inStreams[dec.state]->Read(_bufs[dec.state] + totalRead, curSize, &curSize); in Code()
409 _readRes[dec.state] = res2; in Code()
412 _inStreamsProcessed[dec.state] += curSize; in Code()
417 while (totalRead < 4 && BCJ2_IS_32BIT_STREAM(dec.state)); in Code()
419 if (_readRes[dec.state] != S_OK) in Code()
420 res = _readRes[dec.state]; in Code()
427 if (BCJ2_IS_32BIT_STREAM(dec.state)) in Code()
430 _extraReadSizes[dec.state] = extraSize; in Code()
433 res = (_readRes[dec.state] != S_OK) ? _readRes[dec.state] : S_FALSE; in Code()
439 dec.lims[dec.state] = _bufs[dec.state] + totalRead; in Code()
443 size_t curSize = dec.dest - _bufs[BCJ2_NUM_STREAMS]; in Code()
449 dec.dest = _bufs[BCJ2_NUM_STREAMS]; in Code()
458 dec.destLim = dec.dest + rem; in Code()
466 UInt64 outSize2 = outSizeProcessed + (dec.dest - _bufs[BCJ2_NUM_STREAMS]); in Code()
469 … inSize2 = outSize2 + _inStreamsProcessed[BCJ2_STREAM_RC] - (dec.lims[BCJ2_STREAM_RC] - dec.bufs[B… in Code()
476 size_t curSize = dec.dest - _bufs[BCJ2_NUM_STREAMS]; in Code()
488 if (!Bcj2Dec_IsFinished(&dec)) in Code()
493 if (dec.state != BCJ2_STREAM_MAIN && in Code()
494 dec.state != BCJ2_DEC_STATE_ORIG) in Code()
501 size_t rem = dec.lims[i] - dec.bufs[i] + _extraReadSizes[i]; in Code()
539 dec.destLim = dec.dest = NULL; in SetOutStreamSize()
561 dec.dest = (Byte *)data; in Read()
562 dec.destLim = (const Byte *)data + size; in Read()
568 SRes sres = Bcj2Dec_Decode(&dec); in Read()
573 UInt32 curSize = (UInt32)(dec.dest - (Byte *)data); in Read()
585 if (dec.state >= BCJ2_NUM_STREAMS) in Read()
589 size_t totalRead = _extraReadSizes[dec.state]; in Read()
591 Byte *buf = _bufs[dec.state]; in Read()
593 buf[i] = dec.bufs[dec.state][i]; in Read()
594 dec.lims[dec.state] = in Read()
595 dec.bufs[dec.state] = buf; in Read()
598 if (_readRes[dec.state] != S_OK) in Read()
599 return _readRes[dec.state]; in Read()
603 UInt32 curSize = _bufsCurSizes[dec.state] - (UInt32)totalRead; in Read()
604 HRESULT res2 = _inStreams[dec.state]->Read(_bufs[dec.state] + totalRead, curSize, &curSize); in Read()
605 _readRes[dec.state] = res2; in Read()
608 _inStreamsProcessed[dec.state] += curSize; in Read()
613 while (totalRead < 4 && BCJ2_IS_32BIT_STREAM(dec.state)); in Read()
618 res = _readRes[dec.state]; in Read()
622 if (BCJ2_IS_32BIT_STREAM(dec.state)) in Read()
625 _extraReadSizes[dec.state] = extraSize; in Read()
630 return (_readRes[dec.state] != S_OK) ? _readRes[dec.state] : S_FALSE; in Read()
635 dec.lims[dec.state] = _bufs[dec.state] + totalRead; in Read()
641 if (!Bcj2Dec_IsFinished(&dec)) in Read()
644 if (dec.state != BCJ2_STREAM_MAIN && in Read()
645 dec.state != BCJ2_DEC_STATE_ORIG) in Read()