• 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()
236 if (hDrcData->drcInterpolationSchemeCurr == 0) { in sbrDecoder_drcApplySlot()
241 if (j >= (int)winBorderToColMap[hDrcData->drcInterpolationSchemeCurr]) { 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()
254 if (hDrcData->winSequenceNext != 2) { /* next: long window */ in sbrDecoder_drcApplySlot()
257 if (hDrcData->drcInterpolationSchemeNext == 0) { in sbrDecoder_drcApplySlot()
262 if (j >= (int)winBorderToColMap[hDrcData->drcInterpolationSchemeNext]) { in sbrDecoder_drcApplySlot()
267 fact_mag = hDrcData->nextFact_mag; in sbrDecoder_drcApplySlot()
268 fact_exp = hDrcData->nextFact_exp; in sbrDecoder_drcApplySlot()
269 numBands = hDrcData->numBandsNext; in sbrDecoder_drcApplySlot()
270 bandTop = hDrcData->bandTopNext; in sbrDecoder_drcApplySlot()
272 if (hDrcData->winSequenceCurr != 2) { /* current: long window */ in sbrDecoder_drcApplySlot()
275 fact_mag = hDrcData->nextFact_mag; in sbrDecoder_drcApplySlot()
276 fact_exp = hDrcData->nextFact_exp; in sbrDecoder_drcApplySlot()
277 numBands = hDrcData->numBandsNext; in sbrDecoder_drcApplySlot()
278 bandTop = hDrcData->bandTopNext; in sbrDecoder_drcApplySlot()
282 fact_mag = hDrcData->currFact_mag; in sbrDecoder_drcApplySlot()
283 fact_exp = hDrcData->currFact_exp; in sbrDecoder_drcApplySlot()
284 numBands = hDrcData->numBandsCurr; in sbrDecoder_drcApplySlot()
285 bandTop = hDrcData->bandTopCurr; in sbrDecoder_drcApplySlot()
289 if (hDrcData->winSequenceNext != 2) { /* long window */ in sbrDecoder_drcApplySlot()
292 if (hDrcData->drcInterpolationSchemeNext == 0) { in sbrDecoder_drcApplySlot()
297 if (j >= (int)winBorderToColMap[hDrcData->drcInterpolationSchemeNext]) { in sbrDecoder_drcApplySlot()
305 fact_mag = hDrcData->nextFact_mag; in sbrDecoder_drcApplySlot()
306 fact_exp = hDrcData->nextFact_exp; in sbrDecoder_drcApplySlot()
307 numBands = hDrcData->numBandsNext; in sbrDecoder_drcApplySlot()
308 bandTop = hDrcData->bandTopNext; in sbrDecoder_drcApplySlot()
341 FIXP_DBL drcFact1_mag = hDrcData->prevFact_mag[bin]; in sbrDecoder_drcApplySlot()
345 if (hDrcData->prevFact_exp < maxShift) { in sbrDecoder_drcApplySlot()
346 drcFact1_mag >>= maxShift - hDrcData->prevFact_exp; in sbrDecoder_drcApplySlot()
371 hDrcData->prevFact_mag[bin] = fact_mag[band]; in sbrDecoder_drcApplySlot()
445 hDrcData->prevFact_mag[bin] = fact_mag[band]; in sbrDecoder_drcApplySlot()
479 hDrcData->prevFact_exp = fact_exp; in sbrDecoder_drcApplySlot()
494 void sbrDecoder_drcApply(HANDLE_SBR_DRC_CHANNEL hDrcData, in sbrDecoder_drcApply() argument
500 if (hDrcData == NULL) { in sbrDecoder_drcApply()
503 if (hDrcData->enable == 0) { in sbrDecoder_drcApply()
509 if (hDrcData->prevFact_exp > maxShift) { in sbrDecoder_drcApply()
510 maxShift = hDrcData->prevFact_exp; in sbrDecoder_drcApply()
512 if (hDrcData->currFact_exp > maxShift) { in sbrDecoder_drcApply()
513 maxShift = hDrcData->currFact_exp; in sbrDecoder_drcApply()
515 if (hDrcData->nextFact_exp > maxShift) { in sbrDecoder_drcApply()
516 maxShift = hDrcData->nextFact_exp; in sbrDecoder_drcApply()
523 sbrDecoder_drcApplySlot(hDrcData, qmfSlotReal, qmfSlotImag, col, in sbrDecoder_drcApply()