Lines Matching refs:hHeaderData
169 HANDLE_SBR_HEADER_DATA hHeaderData, /*!< Static control data */
178 HANDLE_SBR_HEADER_DATA hHeaderData,
182 static int sbrGetPvcEnvelope(HANDLE_SBR_HEADER_DATA hHeaderData,
186 static int sbrGetEnvelope(HANDLE_SBR_HEADER_DATA hHeaderData,
194 static void sbrGetNoiseFloorData(HANDLE_SBR_HEADER_DATA hHeaderData,
243 initHeaderData(HANDLE_SBR_HEADER_DATA hHeaderData, const int sampleRateIn, in initHeaderData() argument
247 HANDLE_FREQ_BAND_DATA hFreq = &hHeaderData->freqBandData; in initHeaderData()
260 hHeaderData->sbrProcSmplRate = sampleRateProc << 1; in initHeaderData()
263 hHeaderData->sbrProcSmplRate = sampleRateProc; in initHeaderData()
282 hHeaderData->syncState = SBR_NOT_INITIALIZED; in initHeaderData()
283 hHeaderData->status = 0; in initHeaderData()
284 hHeaderData->frameErrorFlag = 0; in initHeaderData()
286 hHeaderData->bs_info.ampResolution = 1; in initHeaderData()
287 hHeaderData->bs_info.xover_band = 0; in initHeaderData()
288 hHeaderData->bs_info.sbr_preprocessing = 0; in initHeaderData()
289 hHeaderData->bs_info.pvc_mode = 0; in initHeaderData()
291 hHeaderData->bs_data.startFreq = 5; in initHeaderData()
292 hHeaderData->bs_data.stopFreq = 0; in initHeaderData()
293 hHeaderData->bs_data.freqScale = in initHeaderData()
299 hHeaderData->bs_data.alterScale = 1; in initHeaderData()
300 hHeaderData->bs_data.noise_bands = 2; in initHeaderData()
301 hHeaderData->bs_data.limiterBands = 2; in initHeaderData()
302 hHeaderData->bs_data.limiterGains = 2; in initHeaderData()
303 hHeaderData->bs_data.interpolFreq = 1; in initHeaderData()
304 hHeaderData->bs_data.smoothingLength = 1; in initHeaderData()
308 hHeaderData->bs_data.startFreq = in initHeaderData()
310 hHeaderData->bs_data.stopFreq = 3; in initHeaderData()
314 hHeaderData->bs_data.startFreq = in initHeaderData()
316 hHeaderData->bs_data.stopFreq = 3; in initHeaderData()
321 hHeaderData->timeStep = 4; in initHeaderData()
323 hHeaderData->timeStep = (flags & SBRDEC_ELD_GRID) ? 1 : 2; in initHeaderData()
332 hHeaderData->numberTimeSlots = in initHeaderData()
333 (samplesPerFrame / numAnalysisBands) >> (hHeaderData->timeStep - 1); in initHeaderData()
334 if (hHeaderData->numberTimeSlots > (16)) { in initHeaderData()
338 hHeaderData->numberOfAnalysisBands = numAnalysisBands; in initHeaderData()
340 hHeaderData->numberTimeSlots <<= 1; in initHeaderData()
378 sbrGetHeaderData(HANDLE_SBR_HEADER_DATA hHeaderData, HANDLE_FDK_BITSTREAM hBs, in sbrGetHeaderData() argument
408 lastHeader = hHeaderData->bs_data; in sbrGetHeaderData()
409 lastInfo = hHeaderData->bs_info; in sbrGetHeaderData()
413 pBsData = &hHeaderData->bs_dflt; in sbrGetHeaderData()
415 pBsData = &hHeaderData->bs_data; in sbrGetHeaderData()
419 hHeaderData->bs_info.ampResolution = FDKreadBits(hBs, 1); in sbrGetHeaderData()
426 hHeaderData->bs_info.xover_band = FDKreadBits(hBs, 3); in sbrGetHeaderData()
457 if (hHeaderData->syncState < SBR_HEADER || in sbrGetHeaderData()
463 lastInfo.xover_band != hHeaderData->bs_info.xover_band) { in sbrGetHeaderData()
475 int sbrGetSyntheticCodedData(HANDLE_SBR_HEADER_DATA hHeaderData, in sbrGetSyntheticCodedData() argument
484 int nSfb = hHeaderData->freqBandData.nSfb[1]; in sbrGetSyntheticCodedData()
500 if (hHeaderData->bs_info.pvc_mode) { in sbrGetSyntheticCodedData()
526 HANDLE_SBR_HEADER_DATA hHeaderData, /*!< handle to SBR header */ in extractExtendedData() argument
617 int sbrGetChannelElement(HANDLE_SBR_HEADER_DATA hHeaderData, in sbrGetChannelElement() argument
716 if (hHeaderData->bs_info.pvc_mode) { in sbrGetChannelElement()
718 if (!extractPvcFrameInfo(hBs, hHeaderData, hFrameDataLeft, in sbrGetChannelElement()
723 hHeaderData->numberTimeSlots, overlap, in sbrGetChannelElement()
724 hHeaderData->timeStep)) in sbrGetChannelElement()
727 if (!extractFrameInfo(hBs, hHeaderData, hFrameDataLeft, 1, flags)) return 0; in sbrGetChannelElement()
730 hHeaderData->numberTimeSlots, overlap, in sbrGetChannelElement()
731 hHeaderData->timeStep)) in sbrGetChannelElement()
741 if (!extractFrameInfo(hBs, hHeaderData, hFrameDataRight, 2, flags)) in sbrGetChannelElement()
745 hHeaderData->numberTimeSlots, overlap, in sbrGetChannelElement()
746 hHeaderData->timeStep)) in sbrGetChannelElement()
756 hHeaderData->bs_info.pvc_mode); in sbrGetChannelElement()
762 for (i = 0; i < hHeaderData->freqBandData.nInvfBands; i++) { in sbrGetChannelElement()
767 for (i = 0; i < hHeaderData->freqBandData.nInvfBands; i++) { in sbrGetChannelElement()
771 for (i = 0; i < hHeaderData->freqBandData.nInvfBands; i++) { in sbrGetChannelElement()
778 if (hHeaderData->bs_info.pvc_mode) { in sbrGetChannelElement()
779 if (!sbrGetPvcEnvelope(hHeaderData, hFrameDataLeft, hBs, flags, in sbrGetChannelElement()
780 hHeaderData->bs_info.pvc_mode)) in sbrGetChannelElement()
782 } else if (!sbrGetEnvelope(hHeaderData, hFrameDataLeft, hBs, flags)) in sbrGetChannelElement()
785 sbrGetNoiseFloorData(hHeaderData, hFrameDataLeft, hBs); in sbrGetChannelElement()
787 if (!sbrGetEnvelope(hHeaderData, hFrameDataLeft, hBs, flags)) { in sbrGetChannelElement()
791 sbrGetNoiseFloorData(hHeaderData, hFrameDataLeft, hBs); in sbrGetChannelElement()
793 if (!sbrGetEnvelope(hHeaderData, hFrameDataRight, hBs, flags)) { in sbrGetChannelElement()
796 sbrGetNoiseFloorData(hHeaderData, hFrameDataRight, hBs); in sbrGetChannelElement()
799 if (!sbrGetEnvelope(hHeaderData, hFrameDataLeft, hBs, flags)) return 0; in sbrGetChannelElement()
801 if (!sbrGetEnvelope(hHeaderData, hFrameDataRight, hBs, flags)) return 0; in sbrGetChannelElement()
803 sbrGetNoiseFloorData(hHeaderData, hFrameDataLeft, hBs); in sbrGetChannelElement()
805 sbrGetNoiseFloorData(hHeaderData, hFrameDataRight, hBs); in sbrGetChannelElement()
808 sbrGetSyntheticCodedData(hHeaderData, hFrameDataLeft, hBs, flags); in sbrGetChannelElement()
810 sbrGetSyntheticCodedData(hHeaderData, hFrameDataRight, hBs, flags); in sbrGetChannelElement()
814 if (!extractExtendedData(hHeaderData, hBs, hParametricStereoDec)) { in sbrGetChannelElement()
861 HANDLE_SBR_HEADER_DATA hHeaderData, /*!< Static control data */ in sbrGetNoiseFloorData() argument
868 int noNoiseBands = hHeaderData->freqBandData.nNfb; in sbrGetNoiseFloorData()
928 HANDLE_SBR_HEADER_DATA hHeaderData, /*!< Static control data */ in sbrGetPvcEnvelope() argument
947 pvcID[0] = hHeaderData->pvcIDprev; in sbrGetPvcEnvelope()
990 pvcID[k++] = hHeaderData->pvcIDprev; in sbrGetPvcEnvelope()
1012 hHeaderData->pvcIDprev = pvcID[PVC_NTIMESLOT - 1]; in sbrGetPvcEnvelope()
1023 HANDLE_SBR_HEADER_DATA hHeaderData, /*!< Static control data */ in sbrGetEnvelope() argument
1032 int ampRes = hHeaderData->bs_info.ampResolution; in sbrGetEnvelope()
1064 hHeaderData->freqBandData.nSfb[h_frame_data->frameInfo.freqRes[i]]; in sbrGetEnvelope()
1204 HANDLE_SBR_HEADER_DATA hHeaderData, in extractLowDelayGrid() argument
1209 INT numberTimeSlots = hHeaderData->numberTimeSlots; in extractLowDelayGrid()
1257 HANDLE_SBR_HEADER_DATA hHeaderData, /*!< Static control data */ in extractPvcFrameInfo() argument
1296 if (hHeaderData->bs_info.pvc_mode > 0) { in extractPvcFrameInfo()
1347 HANDLE_SBR_HEADER_DATA hHeaderData, /*!< Static control data */ in extractFrameInfo() argument
1352 int numberTimeSlots = hHeaderData->numberTimeSlots; in extractFrameInfo()
1367 err = extractLowDelayGrid(hBs, hHeaderData, h_frame_data, numberTimeSlots, in extractFrameInfo()