Lines Matching refs:pHcr
108 static void InitNonPCWSideInformationForCurrentSet(H_HCR_INFO pHcr);
121 void DecodeNonPCWs(HANDLE_FDK_BITSTREAM bs, H_HCR_INFO pHcr)
150 pNumSegment = &(pHcr->segmentInfo.numSegment);
151 pRemainingBitsInSegment = pHcr->segmentInfo.pRemainingBitsInSegment;
152 pSegmentBitfield = pHcr->segmentInfo.pSegmentBitfield;
153 pNumWordForBitfield = &(pHcr->segmentInfo.numWordForBitfield);
154 pNumBitValidInLastWord = &(pHcr->segmentInfo.pNumBitValidInLastWord);
155 pSta = pHcr->nonPcwSideinfo.pSta;
164 numCodeword = pHcr->sectionInfo.numCodeword;
168 pHcr->segmentInfo.readDirection = FROM_RIGHT_TO_LEFT;
187 pCodewordBitfield = pHcr->segmentInfo.pCodewordBitfield;
204 pCodewordBitfield = pHcr->segmentInfo.pCodewordBitfield;
208 InitNonPCWSideInformationForCurrentSet(pHcr);
219 pHcr->segmentInfo.segmentOffset = segmentOffset; /* store in structure for states */
221 pHcr->nonPcwSideinfo.codewordOffset = codewordOffset; /* store in structure for states */
239 pHcr->nonPcwSideinfo.pState = aStateConstant2State[pSta[codewordOffset]];
241 while(pHcr->nonPcwSideinfo.pState) {
242 ret = ((STATEFUNC) pHcr->nonPcwSideinfo.pState)(bs, pHcr);
253 pHcr->segmentInfo.segmentOffset = segmentOffset;
256 pHcr->nonPcwSideinfo.codewordOffset = codewordOffset;
261 pHcr->segmentInfo.segmentOffset = segmentOffset;
264 pHcr->nonPcwSideinfo.codewordOffset = codewordOffset;
302 pHcr->segmentInfo.readDirection = ToggleReadDirection(pHcr->segmentInfo.readDirection);
384 static void InitNonPCWSideInformationForCurrentSet(H_HCR_INFO pHcr)
390 UCHAR *pCodebook = pHcr->nonPcwSideinfo.pCodebook;
391 UINT *iNode = pHcr->nonPcwSideinfo.iNode;
392 UCHAR *pCntSign = pHcr->nonPcwSideinfo.pCntSign;
393 USHORT *iResultPointer = pHcr->nonPcwSideinfo.iResultPointer;
394 UINT *pEscapeSequenceInfo = pHcr->nonPcwSideinfo.pEscapeSequenceInfo;
395 SCHAR *pSta = pHcr->nonPcwSideinfo.pSta;
396 USHORT *pNumExtendedSortedCodewordInSection = pHcr->sectionInfo.pNumExtendedSortedCodewordInSection;
397 int numExtendedSortedCodewordInSectionIdx = pHcr->sectionInfo.numExtendedSortedCodewordInSectionIdx;
398 UCHAR *pExtendedSortedCodebook = pHcr->sectionInfo.pExtendedSortedCodebook;
399 int extendedSortedCodebookIdx = pHcr->sectionInfo.extendedSortedCodebookIdx;
400 USHORT *pNumExtendedSortedSectionsInSets = pHcr->sectionInfo.pNumExtendedSortedSectionsInSets;
401 int numExtendedSortedSectionsInSetsIdx = pHcr->sectionInfo.numExtendedSortedSectionsInSetsIdx;
402 FIXP_DBL *pQuantizedSpectralCoefficients = SPEC_LONG(pHcr->decInOut.pQuantizedSpectralCoefficientsBase);
403 int quantizedSpectralCoefficientsIdx = pHcr->decInOut.quantizedSpectralCoefficientsIdx;
404 const UCHAR *pCbDimension = pHcr->tableInfo.pCbDimension;
441 pHcr->sectionInfo.numExtendedSortedCodewordInSectionIdx = numExtendedSortedCodewordInSectionIdx;
442 pHcr->sectionInfo.extendedSortedCodebookIdx = extendedSortedCodebookIdx;
443 pHcr->sectionInfo.numExtendedSortedSectionsInSetsIdx = numExtendedSortedSectionsInSetsIdx;
444 pHcr->sectionInfo.numExtendedSortedCodewordInSectionIdx = numExtendedSortedCodewordInSectionIdx;
445 pHcr->decInOut.quantizedSpectralCoefficientsIdx = quantizedSpectralCoefficientsIdx;
513 H_HCR_INFO pHcr = (H_HCR_INFO)ptr;
537 pRemainingBitsInSegment = pHcr->segmentInfo.pRemainingBitsInSegment;
538 pLeftStartOfSegment = pHcr->segmentInfo.pLeftStartOfSegment;
539 pRightStartOfSegment = pHcr->segmentInfo.pRightStartOfSegment;
540 readDirection = pHcr->segmentInfo.readDirection;
541 pSegmentBitfield = pHcr->segmentInfo.pSegmentBitfield;
542 pCodewordBitfield = pHcr->segmentInfo.pCodewordBitfield;
543 segmentOffset = pHcr->segmentInfo.segmentOffset;
545 pCodebook = pHcr->nonPcwSideinfo.pCodebook;
546 iNode = pHcr->nonPcwSideinfo.iNode;
547 pResultBase = pHcr->nonPcwSideinfo.pResultBase;
548 iResultPointer = pHcr->nonPcwSideinfo.iResultPointer;
549 codewordOffset = pHcr->nonPcwSideinfo.codewordOffset;
551 pCbDimension = pHcr->tableInfo.pCbDimension;
580 ClearBitFromBitfield(&(pHcr->nonPcwSideinfo.pState),
593 ClearBitFromBitfield(&(pHcr->nonPcwSideinfo.pState),
599 pHcr->decInOut.errorLog |= STATE_ERROR_BODY_ONLY;
627 H_HCR_INFO pHcr = (H_HCR_INFO)ptr;
656 pRemainingBitsInSegment = pHcr->segmentInfo.pRemainingBitsInSegment;
657 pLeftStartOfSegment = pHcr->segmentInfo.pLeftStartOfSegment;
658 pRightStartOfSegment = pHcr->segmentInfo.pRightStartOfSegment;
659 readDirection = pHcr->segmentInfo.readDirection;
660 pSegmentBitfield = pHcr->segmentInfo.pSegmentBitfield;
661 pCodewordBitfield = pHcr->segmentInfo.pCodewordBitfield;
662 segmentOffset = pHcr->segmentInfo.segmentOffset;
664 pCodebook = pHcr->nonPcwSideinfo.pCodebook;
665 iNode = pHcr->nonPcwSideinfo.iNode;
666 pCntSign = pHcr->nonPcwSideinfo.pCntSign;
667 pResultBase = pHcr->nonPcwSideinfo.pResultBase;
668 iResultPointer = pHcr->nonPcwSideinfo.iResultPointer;
669 codewordOffset = pHcr->nonPcwSideinfo.codewordOffset;
670 pSta = pHcr->nonPcwSideinfo.pSta;
672 pCbDimension = pHcr->tableInfo.pCbDimension;
709 ClearBitFromBitfield(&(pHcr->nonPcwSideinfo.pState),
716 pHcr->nonPcwSideinfo.pState = aStateConstant2State[pSta[codewordOffset]]; /* get state from separate array of cw-sideinfo */
728 ClearBitFromBitfield(&(pHcr->nonPcwSideinfo.pState),
734 pHcr->decInOut.errorLog |= STATE_ERROR_BODY_SIGN__BODY;
755 H_HCR_INFO pHcr = (H_HCR_INFO)ptr;
772 pRemainingBitsInSegment = pHcr->segmentInfo.pRemainingBitsInSegment;
773 pLeftStartOfSegment = pHcr->segmentInfo.pLeftStartOfSegment;
774 pRightStartOfSegment = pHcr->segmentInfo.pRightStartOfSegment;
775 readDirection = pHcr->segmentInfo.readDirection;
776 pSegmentBitfield = pHcr->segmentInfo.pSegmentBitfield;
777 pCodewordBitfield = pHcr->segmentInfo.pCodewordBitfield;
778 segmentOffset = pHcr->segmentInfo.segmentOffset;
780 pCntSign = pHcr->nonPcwSideinfo.pCntSign;
781 pResultBase = pHcr->nonPcwSideinfo.pResultBase;
782 iResultPointer = pHcr->nonPcwSideinfo.iResultPointer;
783 codewordOffset = pHcr->nonPcwSideinfo.codewordOffset;
814 ClearBitFromBitfield(&(pHcr->nonPcwSideinfo.pState),
825 ClearBitFromBitfield(&(pHcr->nonPcwSideinfo.pState),
831 pHcr->decInOut.errorLog |= STATE_ERROR_BODY_SIGN__SIGN;
857 H_HCR_INFO pHcr = (H_HCR_INFO)ptr;
884 pRemainingBitsInSegment = pHcr->segmentInfo.pRemainingBitsInSegment;
885 pLeftStartOfSegment = pHcr->segmentInfo.pLeftStartOfSegment;
886 pRightStartOfSegment = pHcr->segmentInfo.pRightStartOfSegment;
887 readDirection = pHcr->segmentInfo.readDirection;
888 pSegmentBitfield = pHcr->segmentInfo.pSegmentBitfield;
889 pCodewordBitfield = pHcr->segmentInfo.pCodewordBitfield;
890 segmentOffset = pHcr->segmentInfo.segmentOffset;
892 iNode = pHcr->nonPcwSideinfo.iNode;
893 pCntSign = pHcr->nonPcwSideinfo.pCntSign;
894 pResultBase = pHcr->nonPcwSideinfo.pResultBase;
895 iResultPointer = pHcr->nonPcwSideinfo.iResultPointer;
896 codewordOffset = pHcr->nonPcwSideinfo.codewordOffset;
897 pSta = pHcr->nonPcwSideinfo.pSta;
942 ClearBitFromBitfield(&(pHcr->nonPcwSideinfo.pState),
951 pHcr->nonPcwSideinfo.pState = aStateConstant2State[pSta[codewordOffset]]; /* get state from separate array of cw-sideinfo */
964 ClearBitFromBitfield(&(pHcr->nonPcwSideinfo.pState),
970 pHcr->decInOut.errorLog |= STATE_ERROR_BODY_SIGN_ESC__BODY;
1008 H_HCR_INFO pHcr = (H_HCR_INFO)ptr;
1032 pRemainingBitsInSegment = pHcr->segmentInfo.pRemainingBitsInSegment;
1033 pLeftStartOfSegment = pHcr->segmentInfo.pLeftStartOfSegment;
1034 pRightStartOfSegment = pHcr->segmentInfo.pRightStartOfSegment;
1035 readDirection = pHcr->segmentInfo.readDirection;
1036 pSegmentBitfield = pHcr->segmentInfo.pSegmentBitfield;
1037 pCodewordBitfield = pHcr->segmentInfo.pCodewordBitfield;
1038 segmentOffset = pHcr->segmentInfo.segmentOffset;
1040 iNode = pHcr->nonPcwSideinfo.iNode;
1041 pCntSign = pHcr->nonPcwSideinfo.pCntSign;
1042 pResultBase = pHcr->nonPcwSideinfo.pResultBase;
1043 iResultPointer = pHcr->nonPcwSideinfo.iResultPointer;
1044 pEscapeSequenceInfo = pHcr->nonPcwSideinfo.pEscapeSequenceInfo;
1045 codewordOffset = pHcr->nonPcwSideinfo.codewordOffset;
1046 pSta = pHcr->nonPcwSideinfo.pSta;
1105 ClearBitFromBitfield(&(pHcr->nonPcwSideinfo.pState),
1120 pHcr->nonPcwSideinfo.pState = aStateConstant2State[pSta[codewordOffset]]; /* get state from separate array of cw-sideinfo */
1139 ClearBitFromBitfield(&(pHcr->nonPcwSideinfo.pState),
1145 pHcr->decInOut.errorLog |= STATE_ERROR_BODY_SIGN_ESC__SIGN;
1170 H_HCR_INFO pHcr = (H_HCR_INFO)ptr;
1183 pRemainingBitsInSegment = pHcr->segmentInfo.pRemainingBitsInSegment;
1184 pLeftStartOfSegment = pHcr->segmentInfo.pLeftStartOfSegment;
1185 pRightStartOfSegment = pHcr->segmentInfo.pRightStartOfSegment;
1186 readDirection = pHcr->segmentInfo.readDirection;
1187 pSegmentBitfield = pHcr->segmentInfo.pSegmentBitfield;
1188 segmentOffset = pHcr->segmentInfo.segmentOffset;
1189 pEscapeSequenceInfo = pHcr->nonPcwSideinfo.pEscapeSequenceInfo;
1190 codewordOffset = pHcr->nonPcwSideinfo.codewordOffset;
1191 pSta = pHcr->nonPcwSideinfo.pSta;
1231 pHcr->nonPcwSideinfo.pState = aStateConstant2State[pSta[codewordOffset]]; /* get state from separate array of cw-sideinfo */
1237 ClearBitFromBitfield(&(pHcr->nonPcwSideinfo.pState),
1243 pHcr->decInOut.errorLog |= STATE_ERROR_BODY_SIGN_ESC__ESC_PREFIX;
1268 H_HCR_INFO pHcr = (H_HCR_INFO)ptr;
1292 pRemainingBitsInSegment = pHcr->segmentInfo.pRemainingBitsInSegment;
1293 pLeftStartOfSegment = pHcr->segmentInfo.pLeftStartOfSegment;
1294 pRightStartOfSegment = pHcr->segmentInfo.pRightStartOfSegment;
1295 readDirection = pHcr->segmentInfo.readDirection;
1296 pSegmentBitfield = pHcr->segmentInfo.pSegmentBitfield;
1297 pCodewordBitfield = pHcr->segmentInfo.pCodewordBitfield;
1298 segmentOffset = pHcr->segmentInfo.segmentOffset;
1300 pResultBase = pHcr->nonPcwSideinfo.pResultBase;
1301 iResultPointer = pHcr->nonPcwSideinfo.iResultPointer;
1302 pEscapeSequenceInfo = pHcr->nonPcwSideinfo.pEscapeSequenceInfo;
1303 codewordOffset = pHcr->nonPcwSideinfo.codewordOffset;
1304 pSta = pHcr->nonPcwSideinfo.pSta;
1371 ClearBitFromBitfield(&(pHcr->nonPcwSideinfo.pState),
1382 pHcr->nonPcwSideinfo.pState = aStateConstant2State[pSta[codewordOffset]]; /* get state from separate array of cw-sideinfo */
1386 ClearBitFromBitfield(&(pHcr->nonPcwSideinfo.pState),
1395 ClearBitFromBitfield(&(pHcr->nonPcwSideinfo.pState),
1401 pHcr->decInOut.errorLog |= STATE_ERROR_BODY_SIGN_ESC__ESC_WORD;