Lines Matching refs:codewordOffset
126 INT codewordOffset;
220 codewordOffset = codewordOffsetBase;
221 pHcr->nonPcwSideinfo.codewordOffset = codewordOffset; /* store in structure for states */
239 pHcr->nonPcwSideinfo.pState = aStateConstant2State[pSta[codewordOffset]];
254 codewordOffset += 1; /* add NUMBER_OF_BIT_IN_WORD times one */
255 codewordOffset = ModuloValue(codewordOffset,*pNumSegment); /* index of the current codeword lies within modulo range */
256 pHcr->nonPcwSideinfo.codewordOffset = codewordOffset;
262 codewordOffset += NUMBER_OF_BIT_IN_WORD; /* add NUMBER_OF_BIT_IN_WORD at once */
263 codewordOffset = ModuloValue(codewordOffset,*pNumSegment); /* index of the current codeword lies within modulo range */
264 pHcr->nonPcwSideinfo.codewordOffset = codewordOffset;
520 UINT codewordOffset;
549 codewordOffset = pHcr->nonPcwSideinfo.codewordOffset;
553 treeNode = iNode[codewordOffset];
554 pCurrentTree = aHuffTable[pCodebook[codewordOffset]];
571 pQuantValBase = aQuantTable[pCodebook[codewordOffset]]; /* get base address of quantized values belonging to current codebook */
574 iQSC = iResultPointer[codewordOffset]; /* get position of first line for writing out result */
576 for ( dimCntr = pCbDimension[pCodebook[codewordOffset]]; dimCntr != 0; dimCntr-- ) {
590 iNode[codewordOffset] = treeNode; /* store updated treeNode because maybe decoding of codeword body not finished yet */
641 UINT codewordOffset;
669 codewordOffset = pHcr->nonPcwSideinfo.codewordOffset;
674 treeNode = iNode[codewordOffset];
675 codewordOffset]];
693 pQuantValBase = aQuantTable[pCodebook[codewordOffset]]; /* get base address of quantized values belonging to current codebook */
696 iQSC = iResultPointer[codewordOffset]; /* get position of first line for writing result */
701 for ( dimCntr = pCbDimension[pCodebook[codewordOffset]]; dimCntr != 0; dimCntr-- ) {
714 pCntSign[codewordOffset] = cntSign; /* write sign count result into codewordsideinfo of current codeword */
715 pSta[codewordOffset] = BODY_SIGN__SIGN; /* change state */
716 pHcr->nonPcwSideinfo.pState = aStateConstant2State[pSta[codewordOffset]]; /* get state from separate array of cw-sideinfo */
725 iNode[codewordOffset] = treeNode; /* store updated treeNode because maybe decoding of codeword body not finished yet */
746 as often in different "trials" until pCntSgn[codewordOffset] is zero.
767 UINT codewordOffset;
783 codewordOffset = pHcr->nonPcwSideinfo.codewordOffset;
784 iQSC = iResultPointer[codewordOffset];
785 cntSign = pCntSign[codewordOffset];
821 pCntSign[codewordOffset] = cntSign;
822 iResultPointer[codewordOffset] = iQSC; /* store updated pResultPointer */
870 UINT codewordOffset;
896 codewordOffset = pHcr->nonPcwSideinfo.codewordOffset;
899 treeNode = iNode[codewordOffset];
925 iNode[codewordOffset] = iResultPointer[codewordOffset];
928 iQSC = iResultPointer[codewordOffset];
949 pCntSign[codewordOffset] = cntSign;
950 pSta[codewordOffset] = BODY_SIGN_ESC__SIGN; /* change state */
951 pHcr->nonPcwSideinfo.pState = aStateConstant2State[pSta[codewordOffset]]; /* get state from separate array of cw-sideinfo */
959 iNode[codewordOffset] = treeNode;
1022 UINT codewordOffset;
1045 codewordOffset = pHcr->nonPcwSideinfo.codewordOffset;
1048 iQSC = iResultPointer[codewordOffset];
1049 cntSign = pCntSign[codewordOffset];
1062 pCntSign[codewordOffset] = cntSign;
1068 iResultPointer[codewordOffset] = iQSC;
1075 iResultPointer[codewordOffset] = iQSC;
1085 iQSC = iNode[codewordOffset];
1111 /* store both flags at correct positions in non PCW codeword sideinfo pEscapeSequenceInfo[codewordOffset] */
1115 pEscapeSequenceInfo[codewordOffset] = flags;
1119 pSta[codewordOffset] = BODY_SIGN_ESC__ESC_PREFIX;
1120 pHcr->nonPcwSideinfo.pState = aStateConstant2State[pSta[codewordOffset]]; /* get state from separate array of cw-sideinfo */
1123 iResultPointer[codewordOffset] = iNode[codewordOffset];
1127 iQSC = iResultPointer[codewordOffset];
1129 iResultPointer[codewordOffset] = iQSC;
1160 The value 'escapePrefixUp' in word pEscapeSequenceInfo[codewordOffset] is updated.
1164 pEscapeSequenceInfo[codewordOffset]. This State is finished. Switch to next state.
1178 UINT codewordOffset;
1190 codewordOffset = pHcr->nonPcwSideinfo.codewordOffset;
1193 escapePrefixUp = (pEscapeSequenceInfo[codewordOffset] & MASK_ESCAPE_PREFIX_UP) >> LSB_ESCAPE_PREFIX_UP;
1209 pEscapeSequenceInfo[codewordOffset] &= ~MASK_ESCAPE_PREFIX_UP; /* delete old escapePrefixUp */
1211 pEscapeSequenceInfo[codewordOffset] |= escapePrefixUp; /* insert new escapePrefixUp */
1218 /* store escapePrefixUp in pEscapeSequenceInfo[codewordOffset] at bit position escapePrefixUp */
1219 pEscapeSequenceInfo[codewordOffset] &= ~MASK_ESCAPE_PREFIX_UP; /* delete old escapePrefixUp */
1221 pEscapeSequenceInfo[codewordOffset] |= escapePrefixUp; /* insert new escapePrefixUp */
1224 /* store escapePrefixUp in pEscapeSequenceInfo[codewordOffset] at bit position escapePrefixDown */
1225 pEscapeSequenceInfo[codewordOffset] &= ~MASK_ESCAPE_PREFIX_DOWN; /* delete old escapePrefixDown */
1227 pEscapeSequenceInfo[codewordOffset] |= escapePrefixUp; /* insert new escapePrefixDown */
1230 pSta[codewordOffset] = BODY_SIGN_ESC__ESC_WORD; /* set next state */
1231 pHcr->nonPcwSideinfo.pState = aStateConstant2State[pSta[codewordOffset]]; /* get state from separate array of cw-sideinfo */
1280 UINT codewordOffset;
1303 codewordOffset = pHcr->nonPcwSideinfo.codewordOffset;
1306 escapeWord = pEscapeSequenceInfo[codewordOffset] & MASK_ESCAPE_WORD;
1307 escapePrefixDown = (pEscapeSequenceInfo[codewordOffset] & MASK_ESCAPE_PREFIX_DOWN) >> LSB_ESCAPE_PREFIX_DOWN;
1326 codewordOffset] &= ~MASK_ESCAPE_PREFIX_DOWN; /* delete old escapePrefixDown */
1328 pEscapeSequenceInfo[codewordOffset] |= escapePrefixDown; /* insert new escapePrefixDown */
1333 pEscapeSequenceInfo[codewordOffset] &= ~MASK_ESCAPE_WORD; /* delete old escapeWord */
1334 pEscapeSequenceInfo[codewordOffset] |= escapeWord; /* insert new escapeWord */
1344 iQSC = iResultPointer[codewordOffset];
1349 escapePrefixUp = (pEscapeSequenceInfo[codewordOffset] & MASK_ESCAPE_PREFIX_UP) >> LSB_ESCAPE_PREFIX_UP;
1356 flagA = pEscapeSequenceInfo[codewordOffset] & MASK_FLAG_A;
1357 flagB = pEscapeSequenceInfo[codewordOffset] & MASK_FLAG_B;
1361 pEscapeSequenceInfo[codewordOffset] = 0;
1368 pEscapeSequenceInfo[codewordOffset] &= ~MASK_FLAG_A;
1378 iResultPointer[codewordOffset] = iQSC;
1381 pSta[codewordOffset] = BODY_SIGN_ESC__ESC_PREFIX;
1382 pHcr->nonPcwSideinfo.pState = aStateConstant2State[pSta[codewordOffset]]; /* get state from separate array of cw-sideinfo */