Lines Matching refs:hSbrHeader
282 HANDLE_SBR_HEADER_DATA hSbrHeader; in sbrDecoder_ResetElement() local
334 hSbrHeader = &(self->sbrHeader[elementIndex][i]); in sbrDecoder_ResetElement()
335 setDflt = ((hSbrHeader->syncState == SBR_NOT_INITIALIZED) || in sbrDecoder_ResetElement()
341 sbrError = initHeaderData(hSbrHeader, sampleRateIn, sampleRateOut, in sbrDecoder_ResetElement()
346 hSbrHeader->syncState = hSbrHeader->syncState > UPSAMPLING in sbrDecoder_ResetElement()
348 : hSbrHeader->syncState; in sbrDecoder_ResetElement()
767 HANDLE_SBR_HEADER_DATA hSbrHeader, in sbrDecoder_HeaderUpdate() argument
776 errorStatus = resetFreqBandTables(hSbrHeader, self->flags); in sbrDecoder_HeaderUpdate()
779 if (hSbrHeader->syncState == UPSAMPLING && headerStatus != HEADER_RESET) { in sbrDecoder_HeaderUpdate()
789 hSbrHeader->freqBandData.lowSubband = hSbrHeader->numberOfAnalysisBands; in sbrDecoder_HeaderUpdate()
790 hSbrHeader->freqBandData.highSubband = hSbrHeader->numberOfAnalysisBands; in sbrDecoder_HeaderUpdate()
794 hSbrHeader->status |= SBRDEC_HDR_STAT_RESET; in sbrDecoder_HeaderUpdate()
809 HANDLE_SBR_HEADER_DATA hSbrHeader; in sbrDecoder_Header() local
838 hSbrHeader = NULL; in sbrDecoder_Header()
843 hSbrHeader = &(self->sbrHeader[elementIndex][headerIndex]); in sbrDecoder_Header()
846 headerStatus = sbrGetHeaderData(hSbrHeader, hBs, self->flags, 0, configMode); in sbrDecoder_Header()
867 sbrError = sbrDecoder_HeaderUpdate(self, hSbrHeader, headerStatus, in sbrDecoder_Header()
872 hSbrHeader->syncState = SBR_HEADER; in sbrDecoder_Header()
873 hSbrHeader->status |= SBRDEC_HDR_STAT_UPDATE; in sbrDecoder_Header()
875 hSbrHeader->syncState = SBR_NOT_INITIALIZED; in sbrDecoder_Header()
876 hSbrHeader->status = HEADER_ERROR; in sbrDecoder_Header()
957 HANDLE_SBR_HEADER_DATA hSbrHeader; in sbrDecoder_SetParam() local
962 hSbrHeader = &(self->sbrHeader[elementIndex][headerIndex]); in sbrDecoder_SetParam()
966 hSbrHeader->syncState = UPSAMPLING; in sbrDecoder_SetParam()
967 hSbrHeader->status |= SBRDEC_HDR_STAT_UPDATE; in sbrDecoder_SetParam()
1125 HANDLE_SBR_HEADER_DATA hSbrHeader = NULL; in sbrDecoder_Parse() local
1225 hSbrHeader = &self->sbrHeader[elementIndex][thisHdrSlot]; in sbrDecoder_Parse()
1248 if (hSbrHeader->status & SBRDEC_HDR_STAT_UPDATE) { in sbrDecoder_Parse()
1251 hSbrHeader->status &= ~SBRDEC_HDR_STAT_UPDATE; in sbrDecoder_Parse()
1255 copySbrHeader(hSbrHeader, &self->sbrHeader[elementIndex][lastHdrSlot]); in sbrDecoder_Parse()
1355 if (FDKmemcmp(&hSbrHeader->bs_info, &newSbrInfo, in sbrDecoder_Parse()
1361 if ((hSbrHeader->bs_info.pvc_mode != newSbrInfo.pvc_mode) || in sbrDecoder_Parse()
1362 (hSbrHeader->bs_info.xover_band != newSbrInfo.xover_band)) { in sbrDecoder_Parse()
1368 hSbrHeader->bs_info = newSbrInfo; in sbrDecoder_Parse()
1376 hSbrHeader->syncState = UPSAMPLING; in sbrDecoder_Parse()
1388 if (FDKmemcmp(&hSbrHeader->bs_data, &hSbrHeader->bs_dflt, in sbrDecoder_Parse()
1390 hSbrHeader->syncState != SBR_ACTIVE) { in sbrDecoder_Parse()
1391 hSbrHeader->bs_data = hSbrHeader->bs_dflt; in sbrDecoder_Parse()
1401 headerStatus = sbrGetHeaderData(hSbrHeader, hBs, self->flags, 1, 0); in sbrDecoder_Parse()
1406 self, hSbrHeader, headerStatus, pSbrChannel, hSbrElement->nChannels); in sbrDecoder_Parse()
1409 hSbrHeader->syncState = SBR_HEADER; in sbrDecoder_Parse()
1411 hSbrHeader->syncState = SBR_NOT_INITIALIZED; in sbrDecoder_Parse()
1426 if ((hSbrHeader->syncState >= SBR_HEADER) && fDoDecodeSbrData) { in sbrDecoder_Parse()
1436 hSbrHeader, hFrameDataLeft, (stereo) ? hFrameDataRight : NULL, in sbrDecoder_Parse()
1473 hSbrHeader->syncState = SBR_NOT_INITIALIZED; in sbrDecoder_Parse()
1546 if (!useOldHdr && (thisHdrSlot != lastHdrSlot) && (hSbrHeader != NULL)) { in sbrDecoder_Parse()
1548 (compareSbrHeader(hSbrHeader, in sbrDecoder_Parse()
1597 HANDLE_SBR_HEADER_DATA hSbrHeader = in sbrDecoder_DecodeElement() local
1639 hSbrHeader = in sbrDecoder_DecodeElement()
1653 hSbrHeader->frameErrorFlag = in sbrDecoder_DecodeElement()
1659 if (hSbrHeader->syncState == SBR_NOT_INITIALIZED) { in sbrDecoder_DecodeElement()
1661 initHeaderData(hSbrHeader, self->sampleRateIn, self->sampleRateOut, in sbrDecoder_DecodeElement()
1670 hSbrHeader->syncState = UPSAMPLING; in sbrDecoder_DecodeElement()
1672 errorStatus = sbrDecoder_HeaderUpdate(self, hSbrHeader, HEADER_NOT_PRESENT, in sbrDecoder_DecodeElement()
1676 hSbrHeader->syncState = SBR_NOT_INITIALIZED; in sbrDecoder_DecodeElement()
1682 if (hSbrHeader->status & SBRDEC_HDR_STAT_RESET) { in sbrDecoder_DecodeElement()
1684 int applySbrProc = (hSbrHeader->syncState == SBR_ACTIVE || in sbrDecoder_DecodeElement()
1685 (hSbrHeader->frameErrorFlag == 0 && in sbrDecoder_DecodeElement()
1686 hSbrHeader->syncState == SBR_HEADER)); in sbrDecoder_DecodeElement()
1691 &pSbrChannel[ch]->SbrDec, hSbrHeader, &pSbrChannel[ch]->prevFrameData, in sbrDecoder_DecodeElement()
1695 hSbrHeader->syncState = UPSAMPLING; in sbrDecoder_DecodeElement()
1699 hSbrHeader->status &= ~SBRDEC_HDR_STAT_RESET; in sbrDecoder_DecodeElement()
1704 if ((hSbrHeader->syncState == SBR_ACTIVE) || in sbrDecoder_DecodeElement()
1705 ((hSbrHeader->syncState == SBR_HEADER) && in sbrDecoder_DecodeElement()
1706 (hSbrHeader->frameErrorFlag == 0))) { in sbrDecoder_DecodeElement()
1709 decodeSbrData(hSbrHeader, hFrameDataLeft, &pSbrChannel[0]->prevFrameData, in sbrDecoder_DecodeElement()
1715 hSbrHeader->syncState = SBR_ACTIVE; in sbrDecoder_DecodeElement()
1719 hSbrHeader->numberTimeSlots * hSbrHeader->timeStep * in sbrDecoder_DecodeElement()
1730 if (h_ps_d != NULL && psPossible && (hSbrHeader->syncState == SBR_ACTIVE)) { in sbrDecoder_DecodeElement()
1736 applyPs = DecodePs(h_ps_d, hSbrHeader->frameErrorFlag, pPsScratch); in sbrDecoder_DecodeElement()
1760 timeData + offset1, strideOut, hSbrHeader, hFrameDataLeft, in sbrDecoder_DecodeElement()
1762 (hSbrHeader->syncState == SBR_ACTIVE), h_ps_d, self->flags, in sbrDecoder_DecodeElement()
1768 timeData + offset1, NULL, NULL, strideOut, hSbrHeader, in sbrDecoder_DecodeElement()
1770 (hSbrHeader->syncState == SBR_ACTIVE), NULL, self->flags, in sbrDecoder_DecodeElement()