Lines Matching refs:elementIndex
277 const int elementIndex, in sbrDecoder_ResetElement() argument
332 hSbrHeader = &(self->sbrHeader[elementIndex][i]); in sbrDecoder_ResetElement()
357 self->sbrHeader[elementIndex][0].numberOfAnalysisBands; in sbrDecoder_ResetElement()
363 self->sbrHeader[elementIndex][0].numberTimeSlots * in sbrDecoder_ResetElement()
364 self->sbrHeader[elementIndex][0].timeStep; in sbrDecoder_ResetElement()
374 for (ch = 0; ch < self->pSbrElement[elementIndex]->nChannels; ch++) { in sbrDecoder_ResetElement()
376 getHeaderSlot(self->pSbrElement[elementIndex]->useFrameSlot, in sbrDecoder_ResetElement()
377 self->pSbrElement[elementIndex]->useHeaderSlot); in sbrDecoder_ResetElement()
381 createSbrDec(self->pSbrElement[elementIndex]->pSbrChannel[ch], in sbrDecoder_ResetElement()
382 &self->sbrHeader[elementIndex][headerIndex], in sbrDecoder_ResetElement()
383 &self->pSbrElement[elementIndex]->transposerSettings, in sbrDecoder_ResetElement()
414 self->pSbrElement[elementIndex]->useFrameSlot = 0; in sbrDecoder_ResetElement()
416 self->pSbrElement[elementIndex]->useHeaderSlot[i] = i; in sbrDecoder_ResetElement()
510 const int elementIndex) { in sbrDecoder_DestroyElement() argument
511 if (self->pSbrElement[elementIndex] != NULL) { in sbrDecoder_DestroyElement()
515 if (self->pSbrElement[elementIndex]->pSbrChannel[ch] != NULL) { in sbrDecoder_DestroyElement()
516 deleteSbrDec(self->pSbrElement[elementIndex]->pSbrChannel[ch]); in sbrDecoder_DestroyElement()
518 &self->pSbrElement[elementIndex]->pSbrChannel[ch]); in sbrDecoder_DestroyElement()
522 FreeRam_SbrDecElement(&self->pSbrElement[elementIndex]); in sbrDecoder_DestroyElement()
530 const MP4_ELEMENT_ID elementID, const int elementIndex, in sbrDecoder_InitElement() argument
545 if (!sbrDecoder_isCoreCodecValid(coreCodec) || elementIndex >= (8)) { in sbrDecoder_InitElement()
557 self->pSbrElement[elementIndex] != NULL && in sbrDecoder_InitElement()
558 self->pSbrElement[elementIndex]->elementID == elementID && in sbrDecoder_InitElement()
609 if (self->pSbrElement[elementIndex] == NULL) { in sbrDecoder_InitElement()
610 self->pSbrElement[elementIndex] = GetRam_SbrDecElement(elementIndex); in sbrDecoder_InitElement()
611 if (self->pSbrElement[elementIndex] == NULL) { in sbrDecoder_InitElement()
617 self->numSbrChannels -= self->pSbrElement[elementIndex]->nChannels; in sbrDecoder_InitElement()
636 if (elementIndex == 0 && elementID == ID_SCE) { in sbrDecoder_InitElement()
652 if (elChannels < self->pSbrElement[elementIndex]->nChannels || in sbrDecoder_InitElement()
654 self->numSbrChannels += self->pSbrElement[elementIndex]->nChannels; in sbrDecoder_InitElement()
661 self->pSbrElement[elementIndex]->elementID = elementID; in sbrDecoder_InitElement()
662 self->pSbrElement[elementIndex]->nChannels = elChannels; in sbrDecoder_InitElement()
665 if (self->pSbrElement[elementIndex]->pSbrChannel[ch] == NULL) { in sbrDecoder_InitElement()
666 self->pSbrElement[elementIndex]->pSbrChannel[ch] = in sbrDecoder_InitElement()
668 if (self->pSbrElement[elementIndex]->pSbrChannel[ch] == NULL) { in sbrDecoder_InitElement()
675 sbrDecoder_drcInitChannel(&self->pSbrElement[elementIndex] in sbrDecoder_InitElement()
696 FDKmemclear(self->pSbrElement[elementIndex]->frameErrorFlag, in sbrDecoder_InitElement()
711 samplesPerFrame, elementID, elementIndex, in sbrDecoder_InitElement()
720 sbrDecoder_DestroyElement(self, elementIndex); in sbrDecoder_InitElement()
721 } else if ((elementIndex < (8)) && in sbrDecoder_InitElement()
722 (self->pSbrElement[elementIndex] != in sbrDecoder_InitElement()
724 setFrameErrorFlag(self->pSbrElement[elementIndex], FRAME_ERROR); in sbrDecoder_InitElement()
802 const MP4_ELEMENT_ID elementID, const INT elementIndex, in sbrDecoder_Header() argument
814 if (self == NULL || elementIndex >= (8)) { in sbrDecoder_Header()
828 elementIndex, harmonicSBR, stereoConfigIndex, configMode, configChanged, in sbrDecoder_Header()
838 headerIndex = getHeaderSlot(self->pSbrElement[elementIndex]->useFrameSlot, in sbrDecoder_Header()
839 self->pSbrElement[elementIndex]->useHeaderSlot); in sbrDecoder_Header()
841 hSbrHeader = &(self->sbrHeader[elementIndex][headerIndex]); in sbrDecoder_Header()
856 pSbrElement = self->pSbrElement[elementIndex]; in sbrDecoder_Header()
944 int elementIndex; in sbrDecoder_SetParam() local
952 for (elementIndex = 0; elementIndex < self->numSbrElements; in sbrDecoder_SetParam()
953 elementIndex++) { in sbrDecoder_SetParam()
954 if (self->pSbrElement[elementIndex] != NULL) { in sbrDecoder_SetParam()
957 getHeaderSlot(self->pSbrElement[elementIndex]->useFrameSlot, in sbrDecoder_SetParam()
958 self->pSbrElement[elementIndex]->useHeaderSlot); in sbrDecoder_SetParam()
960 hSbrHeader = &(self->sbrHeader[elementIndex][headerIndex]); in sbrDecoder_SetParam()
999 int elementIndex, elChanIdx = 0, numCh = 0; in sbrDecoder_drcGetChannel() local
1001 for (elementIndex = 0; (elementIndex < (8)) && (numCh <= channel); in sbrDecoder_drcGetChannel()
1002 elementIndex++) { in sbrDecoder_drcGetChannel()
1003 SBR_DECODER_ELEMENT *pSbrElement = self->pSbrElement[elementIndex]; in sbrDecoder_drcGetChannel()
1034 elementIndex -= 1; in sbrDecoder_drcGetChannel()
1037 if (elChanIdx < 0 || elementIndex < 0) { in sbrDecoder_drcGetChannel()
1041 if (self->pSbrElement[elementIndex] != NULL) { in sbrDecoder_drcGetChannel()
1042 if (self->pSbrElement[elementIndex]->pSbrChannel[elChanIdx] != NULL) { in sbrDecoder_drcGetChannel()
1043 pSbrDrcChannelData = &self->pSbrElement[elementIndex] in sbrDecoder_drcGetChannel()
1122 MP4_ELEMENT_ID prevElement, int elementIndex, in sbrDecoder_Parse() argument
1148 const int bs_pvc = acElFlags[elementIndex] & AC_EL_USAC_PVC; in sbrDecoder_Parse()
1149 const int bs_interTes = acElFlags[elementIndex] & AC_EL_USAC_ITES; in sbrDecoder_Parse()
1157 setFrameErrorFlag(self->pSbrElement[elementIndex], FRAME_ERROR); in sbrDecoder_Parse()
1214 if (self->pSbrElement[elementIndex] == NULL) { in sbrDecoder_Parse()
1218 hSbrElement = self->pSbrElement[elementIndex]; in sbrDecoder_Parse()
1229 hSbrHeader = &self->sbrHeader[elementIndex][thisHdrSlot]; in sbrDecoder_Parse()
1234 hFrameDataLeft = &self->pSbrElement[elementIndex] in sbrDecoder_Parse()
1238 hFrameDataRight = &self->pSbrElement[elementIndex] in sbrDecoder_Parse()
1259 copySbrHeader(hSbrHeader, &self->sbrHeader[elementIndex][lastHdrSlot]); in sbrDecoder_Parse()
1442 self->pSbrElement[elementIndex]->transposerSettings.overlap); in sbrDecoder_Parse()
1500 setFrameErrorFlag(self->pSbrElement[elementIndex], FRAME_ERROR); in sbrDecoder_Parse()
1509 setFrameErrorFlag(self->pSbrElement[elementIndex], FRAME_OK); in sbrDecoder_Parse()
1536 &self->sbrHeader[elementIndex][lastHdrSlot]) == 0) in sbrDecoder_Parse()
1579 int channelIndex, const int elementIndex, const int numInChannels, in sbrDecoder_DecodeElement() argument
1581 SBR_DECODER_ELEMENT *hSbrElement = self->pSbrElement[elementIndex]; in sbrDecoder_DecodeElement()
1583 self->pSbrElement[elementIndex]->pSbrChannel; in sbrDecoder_DecodeElement()
1585 &self->sbrHeader[elementIndex] in sbrDecoder_DecodeElement()
1617 if (self->sbrHeader[elementIndex][hdrIdx].syncState > UPSAMPLING) { in sbrDecoder_DecodeElement()
1618 self->sbrHeader[elementIndex][hdrIdx].syncState = UPSAMPLING; in sbrDecoder_DecodeElement()
1629 &self->sbrHeader[elementIndex] in sbrDecoder_DecodeElement()