Lines Matching refs:pSbrElement
171 static void setFrameErrorFlag(SBR_DECODER_ELEMENT *pSbrElement, UCHAR value) { in setFrameErrorFlag() argument
172 if (pSbrElement != NULL) { in setFrameErrorFlag()
175 FDKmemset(pSbrElement->frameErrorFlag, FRAME_ERROR, in setFrameErrorFlag()
176 sizeof(pSbrElement->frameErrorFlag)); in setFrameErrorFlag()
179 pSbrElement->frameErrorFlag[pSbrElement->useFrameSlot] = value; in setFrameErrorFlag()
376 for (ch = 0; ch < self->pSbrElement[elementIndex]->nChannels; ch++) { in sbrDecoder_ResetElement()
378 getHeaderSlot(self->pSbrElement[elementIndex]->useFrameSlot, in sbrDecoder_ResetElement()
379 self->pSbrElement[elementIndex]->useHeaderSlot); in sbrDecoder_ResetElement()
383 createSbrDec(self->pSbrElement[elementIndex]->pSbrChannel[ch], in sbrDecoder_ResetElement()
385 &self->pSbrElement[elementIndex]->transposerSettings, in sbrDecoder_ResetElement()
416 self->pSbrElement[elementIndex]->useFrameSlot = 0; in sbrDecoder_ResetElement()
418 self->pSbrElement[elementIndex]->useHeaderSlot[i] = i; in sbrDecoder_ResetElement()
434 if (self->pSbrElement[el] != NULL) { in sbrDecoder_AssignQmfChannels2SbrChannels()
435 for (ch = 0; ch < self->pSbrElement[el]->nChannels; ch++) { in sbrDecoder_AssignQmfChannels2SbrChannels()
438 self->pSbrElement[el]->pSbrChannel[ch]->SbrDec.qmfDomainInCh = in sbrDecoder_AssignQmfChannels2SbrChannels()
440 self->pSbrElement[el]->pSbrChannel[ch]->SbrDec.qmfDomainOutCh = in sbrDecoder_AssignQmfChannels2SbrChannels()
443 absCh_offset += self->pSbrElement[el]->nChannels; in sbrDecoder_AssignQmfChannels2SbrChannels()
513 if (self->pSbrElement[elementIndex] != NULL) { in sbrDecoder_DestroyElement()
517 if (self->pSbrElement[elementIndex]->pSbrChannel[ch] != NULL) { in sbrDecoder_DestroyElement()
518 deleteSbrDec(self->pSbrElement[elementIndex]->pSbrChannel[ch]); in sbrDecoder_DestroyElement()
520 &self->pSbrElement[elementIndex]->pSbrChannel[ch]); in sbrDecoder_DestroyElement()
524 FreeRam_SbrDecElement(&self->pSbrElement[elementIndex]); in sbrDecoder_DestroyElement()
559 self->pSbrElement[elementIndex] != NULL && in sbrDecoder_InitElement()
560 self->pSbrElement[elementIndex]->elementID == elementID && in sbrDecoder_InitElement()
611 if (self->pSbrElement[elementIndex] == NULL) { in sbrDecoder_InitElement()
612 self->pSbrElement[elementIndex] = GetRam_SbrDecElement(elementIndex); in sbrDecoder_InitElement()
613 if (self->pSbrElement[elementIndex] == NULL) { in sbrDecoder_InitElement()
619 self->numSbrChannels -= self->pSbrElement[elementIndex]->nChannels; in sbrDecoder_InitElement()
624 self->pSbrElement[elementIndex]->elementID = elementID; in sbrDecoder_InitElement()
658 if (elChannels < self->pSbrElement[elementIndex]->nChannels) { in sbrDecoder_InitElement()
659 self->numSbrChannels += self->pSbrElement[elementIndex]->nChannels; in sbrDecoder_InitElement()
664 self->pSbrElement[elementIndex]->nChannels = elChannels; in sbrDecoder_InitElement()
667 if (self->pSbrElement[elementIndex]->pSbrChannel[ch] == NULL) { in sbrDecoder_InitElement()
668 self->pSbrElement[elementIndex]->pSbrChannel[ch] = in sbrDecoder_InitElement()
670 if (self->pSbrElement[elementIndex]->pSbrChannel[ch] == NULL) { in sbrDecoder_InitElement()
677 sbrDecoder_drcInitChannel(&self->pSbrElement[elementIndex] in sbrDecoder_InitElement()
698 FDKmemclear(self->pSbrElement[elementIndex]->frameErrorFlag, in sbrDecoder_InitElement()
724 (self->pSbrElement[elementIndex] != in sbrDecoder_InitElement()
726 setFrameErrorFlag(self->pSbrElement[elementIndex], FRAME_ERROR); in sbrDecoder_InitElement()
840 headerIndex = getHeaderSlot(self->pSbrElement[elementIndex]->useFrameSlot, in sbrDecoder_Header()
841 self->pSbrElement[elementIndex]->useHeaderSlot); in sbrDecoder_Header()
856 SBR_DECODER_ELEMENT *pSbrElement; in sbrDecoder_Header() local
858 pSbrElement = self->pSbrElement[elementIndex]; in sbrDecoder_Header()
861 if (pSbrElement != NULL) { in sbrDecoder_Header()
862 if ((elementID == ID_CPE && pSbrElement->nChannels != 2) || in sbrDecoder_Header()
863 (elementID != ID_CPE && pSbrElement->nChannels != 1)) { in sbrDecoder_Header()
868 pSbrElement->pSbrChannel, in sbrDecoder_Header()
869 pSbrElement->nChannels); in sbrDecoder_Header()
956 if (self->pSbrElement[elementIndex] != NULL) { in sbrDecoder_SetParam()
959 getHeaderSlot(self->pSbrElement[elementIndex]->useFrameSlot, in sbrDecoder_SetParam()
960 self->pSbrElement[elementIndex]->useHeaderSlot); in sbrDecoder_SetParam()
1003 SBR_DECODER_ELEMENT *pSbrElement = self->pSbrElement[elementIndex]; in sbrDecoder_drcGetChannel() local
1007 if (pSbrElement == NULL) break; in sbrDecoder_drcGetChannel()
1010 switch (pSbrElement->elementID) { in sbrDecoder_drcGetChannel()
1025 elChannels = fMin(elChannels, pSbrElement->nChannels); in sbrDecoder_drcGetChannel()
1028 if (pSbrElement->pSbrChannel[elChanIdx] != NULL) { 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()
1153 setFrameErrorFlag(self->pSbrElement[elementIndex], FRAME_ERROR); in sbrDecoder_Parse()
1210 if (self->pSbrElement[elementIndex] == NULL) { in sbrDecoder_Parse()
1214 hSbrElement = self->pSbrElement[elementIndex]; in sbrDecoder_Parse()
1230 hFrameDataLeft = &self->pSbrElement[elementIndex] in sbrDecoder_Parse()
1234 hFrameDataRight = &self->pSbrElement[elementIndex] in sbrDecoder_Parse()
1440 self->pSbrElement[elementIndex]->transposerSettings.overlap); in sbrDecoder_Parse()
1513 setFrameErrorFlag(self->pSbrElement[elementIndex], FRAME_ERROR); in sbrDecoder_Parse()
1522 setFrameErrorFlag(self->pSbrElement[elementIndex], FRAME_OK); in sbrDecoder_Parse()
1594 SBR_DECODER_ELEMENT *hSbrElement = self->pSbrElement[elementIndex]; in sbrDecoder_DecodeElement()
1596 self->pSbrElement[elementIndex]->pSbrChannel; in sbrDecoder_DecodeElement()
1844 if (self->pSbrElement[sbrElementNum] == NULL) { in sbrDecoder_Apply()
1849 if (self->numSbrElements != 1 || self->pSbrElement[0]->elementID != ID_SCE) { in sbrDecoder_Apply()
1891 self->pSbrElement[sbrElementNum]->pSbrChannel[1] == NULL) { in sbrDecoder_Apply()
1897 (self->pSbrElement[sbrElementNum]->elementID == ID_CPE) ? 2 : 1; in sbrDecoder_Apply()
1901 setFrameErrorFlag(self->pSbrElement[sbrElementNum], FRAME_ERROR_ALLSLOTS); in sbrDecoder_Apply()