Lines Matching refs:hDrcData
109 HANDLE_SBR_DRC_CHANNEL hDrcData ) in sbrDecoder_drcInitChannel() argument
113 if (hDrcData == NULL) { in sbrDecoder_drcInitChannel()
118 hDrcData->prevFact_mag[band] = FL2FXCONST_DBL(0.5f); in sbrDecoder_drcInitChannel()
122 hDrcData->currFact_mag[band] = FL2FXCONST_DBL(0.5f); in sbrDecoder_drcInitChannel()
123 hDrcData->nextFact_mag[band] = FL2FXCONST_DBL(0.5f); in sbrDecoder_drcInitChannel()
126 hDrcData->prevFact_exp = 1; in sbrDecoder_drcInitChannel()
127 hDrcData->currFact_exp = 1; in sbrDecoder_drcInitChannel()
128 hDrcData->nextFact_exp = 1; in sbrDecoder_drcInitChannel()
130 hDrcData->numBandsCurr = 1; in sbrDecoder_drcInitChannel()
131 hDrcData->numBandsNext = 1; in sbrDecoder_drcInitChannel()
133 hDrcData->winSequenceCurr = 0; in sbrDecoder_drcInitChannel()
134 hDrcData->winSequenceNext = 0; in sbrDecoder_drcInitChannel()
136 hDrcData->drcInterpolationSchemeCurr = 0; in sbrDecoder_drcInitChannel()
137 hDrcData->drcInterpolationSchemeNext = 0; in sbrDecoder_drcInitChannel()
139 hDrcData->enable = 0; in sbrDecoder_drcInitChannel()
151 HANDLE_SBR_DRC_CHANNEL hDrcData ) in sbrDecoder_drcUpdateChannel() argument
153 if (hDrcData == NULL) { in sbrDecoder_drcUpdateChannel()
156 if (hDrcData->enable != 1) { in sbrDecoder_drcUpdateChannel()
161 FDKmemcpy( hDrcData->currFact_mag, in sbrDecoder_drcUpdateChannel()
162 hDrcData->nextFact_mag, in sbrDecoder_drcUpdateChannel()
165 hDrcData->currFact_exp = hDrcData->nextFact_exp; in sbrDecoder_drcUpdateChannel()
167 hDrcData->numBandsCurr = hDrcData->numBandsNext; in sbrDecoder_drcUpdateChannel()
169 FDKmemcpy( hDrcData->bandTopCurr, in sbrDecoder_drcUpdateChannel()
170 hDrcData->bandTopNext, in sbrDecoder_drcUpdateChannel()
173 hDrcData->drcInterpolationSchemeCurr = hDrcData->drcInterpolationSchemeNext; in sbrDecoder_drcUpdateChannel()
175 hDrcData->winSequenceCurr = hDrcData->winSequenceNext; in sbrDecoder_drcUpdateChannel()
192 HANDLE_SBR_DRC_CHANNEL hDrcData, in sbrDecoder_drcApplySlot() argument
214 if (hDrcData == NULL) { in sbrDecoder_drcApplySlot()
217 if (hDrcData->enable != 1) { in sbrDecoder_drcApplySlot()
231 if (hDrcData->winSequenceCurr != 2) { /* long window */ in sbrDecoder_drcApplySlot()
234 if (hDrcData->drcInterpolationSchemeCurr == 0) { in sbrDecoder_drcApplySlot()
240 if (j >= offset[hDrcData->drcInterpolationSchemeCurr - 1]) { in sbrDecoder_drcApplySlot()
249 fact_mag = hDrcData->currFact_mag; in sbrDecoder_drcApplySlot()
250 fact_exp = hDrcData->currFact_exp; in sbrDecoder_drcApplySlot()
251 numBands = hDrcData->numBandsCurr; in sbrDecoder_drcApplySlot()
252 bandTop = hDrcData->bandTopCurr; in sbrDecoder_drcApplySlot()
255 if (hDrcData->winSequenceNext != 2) { /* next: long window */ in sbrDecoder_drcApplySlot()
258 if (hDrcData->drcInterpolationSchemeNext == 0) { in sbrDecoder_drcApplySlot()
264 if (j >= offset[hDrcData->drcInterpolationSchemeNext - 1]) { in sbrDecoder_drcApplySlot()
269 fact_mag = hDrcData->nextFact_mag; in sbrDecoder_drcApplySlot()
270 fact_exp = hDrcData->nextFact_exp; in sbrDecoder_drcApplySlot()
271 numBands = hDrcData->numBandsNext; in sbrDecoder_drcApplySlot()
272 bandTop = hDrcData->bandTopNext; in sbrDecoder_drcApplySlot()
275 if (hDrcData->winSequenceCurr != 2) { /* current: long window */ in sbrDecoder_drcApplySlot()
278 fact_mag = hDrcData->nextFact_mag; in sbrDecoder_drcApplySlot()
279 fact_exp = hDrcData->nextFact_exp; in sbrDecoder_drcApplySlot()
280 numBands = hDrcData->numBandsNext; in sbrDecoder_drcApplySlot()
281 bandTop = hDrcData->bandTopNext; in sbrDecoder_drcApplySlot()
286 fact_mag = hDrcData->currFact_mag; in sbrDecoder_drcApplySlot()
287 fact_exp = hDrcData->currFact_exp; in sbrDecoder_drcApplySlot()
288 numBands = hDrcData->numBandsCurr; in sbrDecoder_drcApplySlot()
289 bandTop = hDrcData->bandTopCurr; in sbrDecoder_drcApplySlot()
294 if (hDrcData->winSequenceNext != 2) { /* long window */ in sbrDecoder_drcApplySlot()
297 if (hDrcData->drcInterpolationSchemeNext == 0) { in sbrDecoder_drcApplySlot()
303 if (j >= offset[hDrcData->drcInterpolationSchemeNext - 1]) { in sbrDecoder_drcApplySlot()
312 fact_mag = hDrcData->nextFact_mag; in sbrDecoder_drcApplySlot()
313 fact_exp = hDrcData->nextFact_exp; in sbrDecoder_drcApplySlot()
314 numBands = hDrcData->numBandsNext; in sbrDecoder_drcApplySlot()
315 bandTop = hDrcData->bandTopNext; in sbrDecoder_drcApplySlot()
352 FIXP_DBL drcFact1_mag = hDrcData->prevFact_mag[bin]; in sbrDecoder_drcApplySlot()
356 if (hDrcData->prevFact_exp < maxShift) { in sbrDecoder_drcApplySlot()
357 drcFact1_mag >>= maxShift - hDrcData->prevFact_exp; in sbrDecoder_drcApplySlot()
380 hDrcData->prevFact_mag[bin] = fact_mag[band]; in sbrDecoder_drcApplySlot()
429 hDrcData->prevFact_mag[bin] = fact_mag[band]; in sbrDecoder_drcApplySlot()
463 hDrcData->prevFact_exp = fact_exp; in sbrDecoder_drcApplySlot()
480 HANDLE_SBR_DRC_CHANNEL hDrcData, in sbrDecoder_drcApply() argument
490 if (hDrcData == NULL) { in sbrDecoder_drcApply()
493 if (hDrcData->enable == 0) { in sbrDecoder_drcApply()
498 if (hDrcData->prevFact_exp > maxShift) { in sbrDecoder_drcApply()
499 maxShift = hDrcData->prevFact_exp; in sbrDecoder_drcApply()
501 if (hDrcData->currFact_exp > maxShift) { in sbrDecoder_drcApply()
502 maxShift = hDrcData->currFact_exp; in sbrDecoder_drcApply()
504 if (hDrcData->nextFact_exp > maxShift) { in sbrDecoder_drcApply()
505 maxShift = hDrcData->nextFact_exp; in sbrDecoder_drcApply()
514 hDrcData, in sbrDecoder_drcApply()