• Home
  • Raw
  • Download

Lines Matching refs:hDrcData

124 void sbrDecoder_drcInitChannel(HANDLE_SBR_DRC_CHANNEL hDrcData) {  in sbrDecoder_drcInitChannel()  argument
127 if (hDrcData == NULL) { in sbrDecoder_drcInitChannel()
132 hDrcData->prevFact_mag[band] = FL2FXCONST_DBL(0.5f); in sbrDecoder_drcInitChannel()
136 hDrcData->currFact_mag[band] = FL2FXCONST_DBL(0.5f); in sbrDecoder_drcInitChannel()
137 hDrcData->nextFact_mag[band] = FL2FXCONST_DBL(0.5f); in sbrDecoder_drcInitChannel()
140 hDrcData->prevFact_exp = 1; in sbrDecoder_drcInitChannel()
141 hDrcData->currFact_exp = 1; in sbrDecoder_drcInitChannel()
142 hDrcData->nextFact_exp = 1; in sbrDecoder_drcInitChannel()
144 hDrcData->numBandsCurr = 1; in sbrDecoder_drcInitChannel()
145 hDrcData->numBandsNext = 1; in sbrDecoder_drcInitChannel()
147 hDrcData->winSequenceCurr = 0; in sbrDecoder_drcInitChannel()
148 hDrcData->winSequenceNext = 0; in sbrDecoder_drcInitChannel()
150 hDrcData->drcInterpolationSchemeCurr = 0; in sbrDecoder_drcInitChannel()
151 hDrcData->drcInterpolationSchemeNext = 0; in sbrDecoder_drcInitChannel()
153 hDrcData->enable = 0; in sbrDecoder_drcInitChannel()
163 void sbrDecoder_drcUpdateChannel(HANDLE_SBR_DRC_CHANNEL hDrcData) { in sbrDecoder_drcUpdateChannel() argument
164 if (hDrcData == NULL) { in sbrDecoder_drcUpdateChannel()
167 if (hDrcData->enable != 1) { in sbrDecoder_drcUpdateChannel()
172 FDKmemcpy(hDrcData->currFact_mag, hDrcData->nextFact_mag, in sbrDecoder_drcUpdateChannel()
175 hDrcData->currFact_exp = hDrcData->nextFact_exp; in sbrDecoder_drcUpdateChannel()
177 hDrcData->numBandsCurr = hDrcData->numBandsNext; in sbrDecoder_drcUpdateChannel()
179 FDKmemcpy(hDrcData->bandTopCurr, hDrcData->bandTopNext, in sbrDecoder_drcUpdateChannel()
182 hDrcData->drcInterpolationSchemeCurr = hDrcData->drcInterpolationSchemeNext; in sbrDecoder_drcUpdateChannel()
184 hDrcData->winSequenceCurr = hDrcData->winSequenceNext; in sbrDecoder_drcUpdateChannel()
199 void sbrDecoder_drcApplySlot(HANDLE_SBR_DRC_CHANNEL hDrcData, in sbrDecoder_drcApplySlot() argument
217 if (hDrcData == NULL) { in sbrDecoder_drcApplySlot()
220 if (hDrcData->enable != 1) { in sbrDecoder_drcApplySlot()
233 if (hDrcData->winSequenceCurr != 2) { /* long window */ in sbrDecoder_drcApplySlot()
237 if (hDrcData->drcInterpolationSchemeCurr == 0) { in sbrDecoder_drcApplySlot()
243 (int)winBorderToColMap[hDrcData->drcInterpolationSchemeCurr]) { in sbrDecoder_drcApplySlot()
254 fact_mag = hDrcData->currFact_mag; in sbrDecoder_drcApplySlot()
255 fact_exp = hDrcData->currFact_exp; in sbrDecoder_drcApplySlot()
256 numBands = hDrcData->numBandsCurr; in sbrDecoder_drcApplySlot()
257 bandTop = hDrcData->bandTopCurr; in sbrDecoder_drcApplySlot()
259 if (hDrcData->winSequenceNext != 2) { /* next: long window */ in sbrDecoder_drcApplySlot()
263 if (hDrcData->drcInterpolationSchemeNext == 0) { in sbrDecoder_drcApplySlot()
269 (int)winBorderToColMap[hDrcData->drcInterpolationSchemeNext]) { in sbrDecoder_drcApplySlot()
277 fact_mag = hDrcData->nextFact_mag; in sbrDecoder_drcApplySlot()
278 fact_exp = hDrcData->nextFact_exp; in sbrDecoder_drcApplySlot()
279 numBands = hDrcData->numBandsNext; in sbrDecoder_drcApplySlot()
280 bandTop = hDrcData->bandTopNext; in sbrDecoder_drcApplySlot()
282 if (hDrcData->winSequenceCurr != 2) { /* current: long window */ in sbrDecoder_drcApplySlot()
285 fact_mag = hDrcData->nextFact_mag; in sbrDecoder_drcApplySlot()
286 fact_exp = hDrcData->nextFact_exp; in sbrDecoder_drcApplySlot()
287 numBands = hDrcData->numBandsNext; in sbrDecoder_drcApplySlot()
288 bandTop = hDrcData->bandTopNext; in sbrDecoder_drcApplySlot()
292 fact_mag = hDrcData->currFact_mag; in sbrDecoder_drcApplySlot()
293 fact_exp = hDrcData->currFact_exp; in sbrDecoder_drcApplySlot()
294 numBands = hDrcData->numBandsCurr; in sbrDecoder_drcApplySlot()
295 bandTop = hDrcData->bandTopCurr; in sbrDecoder_drcApplySlot()
299 if (hDrcData->winSequenceNext != 2) { /* long window */ in sbrDecoder_drcApplySlot()
303 if (hDrcData->drcInterpolationSchemeNext == 0) { in sbrDecoder_drcApplySlot()
309 (int)winBorderToColMap[hDrcData->drcInterpolationSchemeNext]) { in sbrDecoder_drcApplySlot()
320 fact_mag = hDrcData->nextFact_mag; in sbrDecoder_drcApplySlot()
321 fact_exp = hDrcData->nextFact_exp; in sbrDecoder_drcApplySlot()
322 numBands = hDrcData->numBandsNext; in sbrDecoder_drcApplySlot()
323 bandTop = hDrcData->bandTopNext; in sbrDecoder_drcApplySlot()
356 FIXP_DBL drcFact1_mag = hDrcData->prevFact_mag[bin]; in sbrDecoder_drcApplySlot()
360 if (hDrcData->prevFact_exp < maxShift) { in sbrDecoder_drcApplySlot()
361 drcFact1_mag >>= maxShift - hDrcData->prevFact_exp; in sbrDecoder_drcApplySlot()
386 hDrcData->prevFact_mag[bin] = fact_mag[band]; in sbrDecoder_drcApplySlot()
460 hDrcData->prevFact_mag[bin] = fact_mag[band]; in sbrDecoder_drcApplySlot()
494 hDrcData->prevFact_exp = fact_exp; in sbrDecoder_drcApplySlot()
509 void sbrDecoder_drcApply(HANDLE_SBR_DRC_CHANNEL hDrcData, in sbrDecoder_drcApply() argument
515 if (hDrcData == NULL) { in sbrDecoder_drcApply()
518 if (hDrcData->enable == 0) { in sbrDecoder_drcApply()
524 if (hDrcData->prevFact_exp > maxShift) { in sbrDecoder_drcApply()
525 maxShift = hDrcData->prevFact_exp; in sbrDecoder_drcApply()
527 if (hDrcData->currFact_exp > maxShift) { in sbrDecoder_drcApply()
528 maxShift = hDrcData->currFact_exp; in sbrDecoder_drcApply()
530 if (hDrcData->nextFact_exp > maxShift) { in sbrDecoder_drcApply()
531 maxShift = hDrcData->nextFact_exp; in sbrDecoder_drcApply()
538 sbrDecoder_drcApplySlot(hDrcData, qmfSlotReal, qmfSlotImag, col, in sbrDecoder_drcApply()