• Home
  • Raw
  • Download

Lines Matching refs:pSbrElement

169 static void setFrameErrorFlag(SBR_DECODER_ELEMENT *pSbrElement, UCHAR value) {  in setFrameErrorFlag()  argument
170 if (pSbrElement != NULL) { in setFrameErrorFlag()
173 FDKmemset(pSbrElement->frameErrorFlag, FRAME_ERROR, in setFrameErrorFlag()
174 sizeof(pSbrElement->frameErrorFlag)); in setFrameErrorFlag()
177 pSbrElement->frameErrorFlag[pSbrElement->useFrameSlot] = value; in setFrameErrorFlag()
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()
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()
432 if (self->pSbrElement[el] != NULL) { in sbrDecoder_AssignQmfChannels2SbrChannels()
433 for (ch = 0; ch < self->pSbrElement[el]->nChannels; ch++) { in sbrDecoder_AssignQmfChannels2SbrChannels()
436 self->pSbrElement[el]->pSbrChannel[ch]->SbrDec.qmfDomainInCh = in sbrDecoder_AssignQmfChannels2SbrChannels()
438 self->pSbrElement[el]->pSbrChannel[ch]->SbrDec.qmfDomainOutCh = in sbrDecoder_AssignQmfChannels2SbrChannels()
441 absCh_offset += self->pSbrElement[el]->nChannels; in sbrDecoder_AssignQmfChannels2SbrChannels()
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()
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()
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()
722 (self->pSbrElement[elementIndex] != in sbrDecoder_InitElement()
724 setFrameErrorFlag(self->pSbrElement[elementIndex], FRAME_ERROR); in sbrDecoder_InitElement()
838 headerIndex = getHeaderSlot(self->pSbrElement[elementIndex]->useFrameSlot, in sbrDecoder_Header()
839 self->pSbrElement[elementIndex]->useHeaderSlot); in sbrDecoder_Header()
854 SBR_DECODER_ELEMENT *pSbrElement; in sbrDecoder_Header() local
856 pSbrElement = self->pSbrElement[elementIndex]; in sbrDecoder_Header()
859 if (pSbrElement != NULL) { in sbrDecoder_Header()
860 if ((elementID == ID_CPE && pSbrElement->nChannels != 2) || in sbrDecoder_Header()
861 (elementID != ID_CPE && pSbrElement->nChannels != 1)) { in sbrDecoder_Header()
866 pSbrElement->pSbrChannel, in sbrDecoder_Header()
867 pSbrElement->nChannels); in sbrDecoder_Header()
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()
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()
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()
1234 hFrameDataLeft = &self->pSbrElement[elementIndex] in sbrDecoder_Parse()
1238 hFrameDataRight = &self->pSbrElement[elementIndex] 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()
1581 SBR_DECODER_ELEMENT *hSbrElement = self->pSbrElement[elementIndex]; in sbrDecoder_DecodeElement()
1583 self->pSbrElement[elementIndex]->pSbrChannel; in sbrDecoder_DecodeElement()
1834 if (self->pSbrElement[sbrElementNum] == NULL) { in sbrDecoder_Apply()
1839 if (self->numSbrElements != 1 || self->pSbrElement[0]->elementID != ID_SCE) { in sbrDecoder_Apply()
1884 self->pSbrElement[sbrElementNum]->pSbrChannel[1] == NULL) { in sbrDecoder_Apply()
1890 (self->pSbrElement[sbrElementNum]->elementID == ID_CPE) ? 2 : 1; in sbrDecoder_Apply()
1894 setFrameErrorFlag(self->pSbrElement[sbrElementNum], FRAME_ERROR_ALLSLOTS); in sbrDecoder_Apply()