• Home
  • Raw
  • Download

Lines Matching refs:pIcsInfo

108 AAC_DECODER_ERROR IcsReadMaxSfb(HANDLE_FDK_BITSTREAM bs, CIcsInfo *pIcsInfo,  in IcsReadMaxSfb()  argument
113 if (IsLongBlock(pIcsInfo)) { in IcsReadMaxSfb()
115 pIcsInfo->TotalSfBands = pSamplingRateInfo->NumberOfScaleFactorBands_Long; in IcsReadMaxSfb()
118 pIcsInfo->TotalSfBands = pSamplingRateInfo->NumberOfScaleFactorBands_Short; in IcsReadMaxSfb()
120 pIcsInfo->MaxSfBands = (UCHAR)FDKreadBits(bs, nbits); in IcsReadMaxSfb()
122 if (pIcsInfo->MaxSfBands > pIcsInfo->TotalSfBands) { in IcsReadMaxSfb()
129 AAC_DECODER_ERROR IcsRead(HANDLE_FDK_BITSTREAM bs, CIcsInfo *pIcsInfo, in IcsRead() argument
134 pIcsInfo->Valid = 0; in IcsRead()
137 pIcsInfo->WindowSequence = BLOCK_LONG; in IcsRead()
138 pIcsInfo->WindowShape = 0; in IcsRead()
143 pIcsInfo->WindowSequence = (BLOCK_TYPE)FDKreadBits(bs, 2); in IcsRead()
144 pIcsInfo->WindowShape = (UCHAR)FDKreadBits(bs, 1); in IcsRead()
146 if (pIcsInfo->WindowShape) { in IcsRead()
147 pIcsInfo->WindowShape = 2; /* select low overlap instead of KBD */ in IcsRead()
153 if ((flags & (AC_ELD | AC_LD)) && pIcsInfo->WindowSequence != BLOCK_LONG) { in IcsRead()
154 pIcsInfo->WindowSequence = BLOCK_LONG; in IcsRead()
159 ErrorStatus = IcsReadMaxSfb(bs, pIcsInfo, pSamplingRateInfo); in IcsRead()
164 if (IsLongBlock(pIcsInfo)) { in IcsRead()
176 pIcsInfo->WindowGroups = 1; in IcsRead()
177 pIcsInfo->WindowGroupLength[0] = 1; in IcsRead()
182 pIcsInfo->ScaleFactorGrouping = (UCHAR)FDKreadBits(bs, 7); in IcsRead()
184 pIcsInfo->WindowGroups = 0; in IcsRead()
188 pIcsInfo->WindowGroupLength[i] = 1; in IcsRead()
190 if (pIcsInfo->ScaleFactorGrouping & mask) { in IcsRead()
191 pIcsInfo->WindowGroupLength[pIcsInfo->WindowGroups]++; in IcsRead()
193 pIcsInfo->WindowGroups++; in IcsRead()
198 pIcsInfo->WindowGroupLength[8 - 1] = 1; in IcsRead()
199 pIcsInfo->WindowGroups++; in IcsRead()
203 if (ErrorStatus == AAC_DEC_OK) pIcsInfo->Valid = 1; in IcsRead()