Lines Matching refs:hDrcDec

148 static int isResetNeeded(HANDLE_DRC_DECODER hDrcDec,  in isResetNeeded()  argument
152 if (hDrcDec->selProcOutput.numSelectedDrcSets != in isResetNeeded()
156 for (i = 0; i < hDrcDec->selProcOutput.numSelectedDrcSets; i++) { in isResetNeeded()
157 if (hDrcDec->selProcOutput.selectedDrcSetIds[i] != in isResetNeeded()
160 if (hDrcDec->selProcOutput.selectedDownmixIds[i] != in isResetNeeded()
166 if (hDrcDec->selProcOutput.boost != oldSelProcOutput.boost) resetNeeded = 1; in isResetNeeded()
167 if (hDrcDec->selProcOutput.compress != oldSelProcOutput.compress) in isResetNeeded()
176 static void startSelectionProcess(HANDLE_DRC_DECODER hDrcDec) { in startSelectionProcess() argument
178 SEL_PROC_OUTPUT oldSelProcOutput = hDrcDec->selProcOutput; in startSelectionProcess()
180 if (!hDrcDec->status) return; in startSelectionProcess()
182 if (hDrcDec->functionalRange & DRC_DEC_SELECTION) { in startSelectionProcess()
183 uniDrcConfigHasChanged = hDrcDec->uniDrcConfig.diff; in startSelectionProcess()
184 if (hDrcDec->uniDrcConfig.diff || hDrcDec->loudnessInfoSet.diff || in startSelectionProcess()
185 hDrcDec->selProcInputDiff) { in startSelectionProcess()
188 hDrcDec->selProcOutput.numSelectedDrcSets = 0; in startSelectionProcess()
191 hDrcDec->hSelectionProc, &(hDrcDec->uniDrcConfig), in startSelectionProcess()
192 &(hDrcDec->loudnessInfoSet), &(hDrcDec->selProcOutput)); in startSelectionProcess()
194 hDrcDec->selProcInputDiff = 0; in startSelectionProcess()
195 hDrcDec->uniDrcConfig.diff = 0; in startSelectionProcess()
196 hDrcDec->loudnessInfoSet.diff = 0; in startSelectionProcess()
200 if (hDrcDec->functionalRange & DRC_DEC_GAIN) { in startSelectionProcess()
201 if (isResetNeeded(hDrcDec, oldSelProcOutput) || uniDrcConfigHasChanged) { in startSelectionProcess()
202 drcDec_GainDecoder_Config(hDrcDec->hGainDec, &(hDrcDec->uniDrcConfig), in startSelectionProcess()
203 hDrcDec->selProcOutput.numSelectedDrcSets, in startSelectionProcess()
204 hDrcDec->selProcOutput.selectedDrcSetIds, in startSelectionProcess()
205 hDrcDec->selProcOutput.selectedDownmixIds); in startSelectionProcess()
215 HANDLE_DRC_DECODER hDrcDec; in FDK_drcDec_Open() local
219 hDrcDec = *phDrcDec; in FDK_drcDec_Open()
221 hDrcDec->functionalRange = functionalRange; in FDK_drcDec_Open()
223 hDrcDec->status = DRC_DEC_NOT_INITIALIZED; in FDK_drcDec_Open()
224 hDrcDec->codecMode = DRC_DEC_CODEC_MODE_UNDEFINED; in FDK_drcDec_Open()
226 if (hDrcDec->functionalRange & DRC_DEC_SELECTION) { in FDK_drcDec_Open()
227 sErr = drcDec_SelectionProcess_Create(&(hDrcDec->hSelectionProc)); in FDK_drcDec_Open()
229 sErr = drcDec_SelectionProcess_Init(hDrcDec->hSelectionProc); in FDK_drcDec_Open()
231 hDrcDec->selProcInputDiff = 1; in FDK_drcDec_Open()
234 if (hDrcDec->functionalRange & DRC_DEC_GAIN) { in FDK_drcDec_Open()
235 dErr = drcDec_GainDecoder_Open(&(hDrcDec->hGainDec)); in FDK_drcDec_Open()
243 FDK_drcDec_SetCodecMode(HANDLE_DRC_DECODER hDrcDec, in FDK_drcDec_SetCodecMode() argument
248 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_SetCodecMode()
250 if (hDrcDec->codecMode == in FDK_drcDec_SetCodecMode()
253 hDrcDec->codecMode = codecMode; in FDK_drcDec_SetCodecMode()
255 if (hDrcDec->functionalRange & DRC_DEC_SELECTION) { in FDK_drcDec_SetCodecMode()
257 hDrcDec->hSelectionProc, (SEL_PROC_CODEC_MODE)codecMode); in FDK_drcDec_SetCodecMode()
259 hDrcDec->selProcInputDiff = 1; in FDK_drcDec_SetCodecMode()
262 if (hDrcDec->functionalRange & DRC_DEC_GAIN) { in FDK_drcDec_SetCodecMode()
267 switch (hDrcDec->codecMode) { in FDK_drcDec_SetCodecMode()
275 switch (hDrcDec->codecMode) { in FDK_drcDec_SetCodecMode()
305 hDrcDec->hGainDec, delayMode, timeDomainSupported, in FDK_drcDec_SetCodecMode()
312 if (hDrcDec->codecMode != codecMode) return DRC_DEC_NOT_OK; in FDK_drcDec_SetCodecMode()
318 FDK_drcDec_Init(HANDLE_DRC_DECODER hDrcDec, const int frameSize, in FDK_drcDec_Init() argument
323 if (hDrcDec == NULL || frameSize == 0 || sampleRate == 0 || in FDK_drcDec_Init()
327 if (hDrcDec->functionalRange & DRC_DEC_SELECTION) { in FDK_drcDec_Init()
329 hDrcDec->hSelectionProc, SEL_PROC_BASE_CHANNEL_COUNT, in FDK_drcDec_Init()
330 (FIXP_DBL)baseChannelCount, &(hDrcDec->selProcInputDiff)); in FDK_drcDec_Init()
333 hDrcDec->hSelectionProc, SEL_PROC_SAMPLE_RATE, (FIXP_DBL)sampleRate, in FDK_drcDec_Init()
334 &(hDrcDec->selProcInputDiff)); in FDK_drcDec_Init()
338 if (hDrcDec->functionalRange & DRC_DEC_GAIN) { in FDK_drcDec_Init()
339 dErr = drcDec_GainDecoder_SetParam(hDrcDec->hGainDec, GAIN_DEC_FRAME_SIZE, in FDK_drcDec_Init()
342 dErr = drcDec_GainDecoder_SetParam(hDrcDec->hGainDec, GAIN_DEC_SAMPLE_RATE, in FDK_drcDec_Init()
345 dErr = drcDec_GainDecoder_Init(hDrcDec->hGainDec); in FDK_drcDec_Init()
349 hDrcDec->status = DRC_DEC_INITIALIZED; in FDK_drcDec_Init()
351 startSelectionProcess(hDrcDec); in FDK_drcDec_Init()
358 HANDLE_DRC_DECODER hDrcDec; in FDK_drcDec_Close() local
364 hDrcDec = *phDrcDec; in FDK_drcDec_Close()
366 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_Close()
368 if (hDrcDec->functionalRange & DRC_DEC_GAIN) { in FDK_drcDec_Close()
369 drcDec_GainDecoder_Close(&(hDrcDec->hGainDec)); in FDK_drcDec_Close()
372 if (hDrcDec->functionalRange & DRC_DEC_SELECTION) { in FDK_drcDec_Close()
373 drcDec_SelectionProcess_Delete(&(hDrcDec->hSelectionProc)); in FDK_drcDec_Close()
383 FDK_drcDec_SetParam(HANDLE_DRC_DECODER hDrcDec, in FDK_drcDec_SetParam() argument
390 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_SetParam()
392 if (hDrcDec->functionalRange & DRC_DEC_GAIN) { in FDK_drcDec_SetParam()
396 hDrcDec->hGainDec, GAIN_DEC_SAMPLE_RATE, (int)requestValue); in FDK_drcDec_SetParam()
401 hDrcDec->hGainDec, GAIN_DEC_FRAME_SIZE, (int)requestValue); in FDK_drcDec_SetParam()
409 if (hDrcDec->functionalRange & DRC_DEC_SELECTION) { in FDK_drcDec_SetParam()
412 sErr = drcDec_SelectionProcess_SetParam(hDrcDec->hSelectionProc, in FDK_drcDec_SetParam()
414 &(hDrcDec->selProcInputDiff)); in FDK_drcDec_SetParam()
418 sErr = drcDec_SelectionProcess_SetParam(hDrcDec->hSelectionProc, in FDK_drcDec_SetParam()
420 &(hDrcDec->selProcInputDiff)); in FDK_drcDec_SetParam()
425 hDrcDec->hSelectionProc, SEL_PROC_LOUDNESS_NORMALIZATION_ON, in FDK_drcDec_SetParam()
426 requestValue, &(hDrcDec->selProcInputDiff)); in FDK_drcDec_SetParam()
431 hDrcDec->hSelectionProc, SEL_PROC_TARGET_LOUDNESS, requestValue, in FDK_drcDec_SetParam()
432 &(hDrcDec->selProcInputDiff)); in FDK_drcDec_SetParam()
437 hDrcDec->hSelectionProc, SEL_PROC_EFFECT_TYPE, requestValue, in FDK_drcDec_SetParam()
438 &(hDrcDec->selProcInputDiff)); in FDK_drcDec_SetParam()
443 hDrcDec->hSelectionProc, SEL_PROC_DOWNMIX_ID, requestValue, in FDK_drcDec_SetParam()
444 &(hDrcDec->selProcInputDiff)); in FDK_drcDec_SetParam()
449 hDrcDec->hSelectionProc, SEL_PROC_TARGET_CHANNEL_COUNT, in FDK_drcDec_SetParam()
450 requestValue, &(hDrcDec->selProcInputDiff)); in FDK_drcDec_SetParam()
455 hDrcDec->hSelectionProc, SEL_PROC_BASE_CHANNEL_COUNT, requestValue, in FDK_drcDec_SetParam()
456 &(hDrcDec->selProcInputDiff)); in FDK_drcDec_SetParam()
461 hDrcDec->hSelectionProc, SEL_PROC_LOUDNESS_MEASUREMENT_METHOD, in FDK_drcDec_SetParam()
462 requestValue, &(hDrcDec->selProcInputDiff)); in FDK_drcDec_SetParam()
467 hDrcDec->hSelectionProc, SEL_PROC_ALBUM_MODE, requestValue, in FDK_drcDec_SetParam()
468 &(hDrcDec->selProcInputDiff)); in FDK_drcDec_SetParam()
476 if (invalidParameter == hDrcDec->functionalRange) in FDK_drcDec_SetParam()
480 startSelectionProcess(hDrcDec); in FDK_drcDec_SetParam()
485 LONG FDK_drcDec_GetParam(HANDLE_DRC_DECODER hDrcDec, in FDK_drcDec_GetParam() argument
487 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_GetParam()
491 return (LONG)hDrcDec->selProcOutput.boost; in FDK_drcDec_GetParam()
493 return (LONG)hDrcDec->selProcOutput.compress; in FDK_drcDec_GetParam()
495 return (LONG)bitstreamContainsMultibandDrc(&hDrcDec->uniDrcConfig, 0); in FDK_drcDec_GetParam()
497 return (LONG)bitstreamContainsMultibandDrc(&hDrcDec->uniDrcConfig, 0x7F); in FDK_drcDec_GetParam()
503 hDrcDec->hSelectionProc, SEL_PROC_DYNAMIC_RANGE_CONTROL_ON); in FDK_drcDec_GetParam()
505 hDrcDec->hSelectionProc, SEL_PROC_LOUDNESS_NORMALIZATION_ON); in FDK_drcDec_GetParam()
507 (hDrcDec->loudnessInfoSet.loudnessInfoCount > 0); in FDK_drcDec_GetParam()
509 (hDrcDec->loudnessInfoSet.loudnessInfoAlbumCount > 0); in FDK_drcDec_GetParam()
511 (hDrcDec->uniDrcConfig.drcInstructionsUniDrcCount > 0); in FDK_drcDec_GetParam()
513 (hDrcDec->uniDrcConfig.downmixInstructionsCount > 0); in FDK_drcDec_GetParam()
517 return (LONG)hDrcDec->selProcOutput.targetChannelCount; in FDK_drcDec_GetParam()
524 FDK_drcDec_SetInterfaceParameters(HANDLE_DRC_DECODER hDrcDec, in FDK_drcDec_SetInterfaceParameters() argument
531 HANDLE_DRC_DECODER hDrcDec, const int groupPresetIdRequested, in FDK_drcDec_SetSelectionProcessMpeghParameters_simple() argument
537 FDK_drcDec_SetDownmixInstructions(HANDLE_DRC_DECODER hDrcDec, in FDK_drcDec_SetDownmixInstructions() argument
545 HANDLE_DRC_DECODER hDrcDec, HANDLE_SEL_PROC_OUTPUT hSelProcOutput) {} in FDK_drcDec_SetSelectionProcessOutput() argument
548 FDK_drcDec_GetSelectionProcessOutput(HANDLE_DRC_DECODER hDrcDec) { in FDK_drcDec_GetSelectionProcessOutput() argument
549 if (hDrcDec == NULL) return NULL; in FDK_drcDec_GetSelectionProcessOutput()
551 return &(hDrcDec->selProcOutput); in FDK_drcDec_GetSelectionProcessOutput()
560 void FDK_drcDec_SetChannelGains(HANDLE_DRC_DECODER hDrcDec, in FDK_drcDec_SetChannelGains() argument
566 if (hDrcDec == NULL) return; in FDK_drcDec_SetChannelGains()
569 hDrcDec->hGainDec, hDrcDec->selProcOutput.loudnessNormalizationGainDb); in FDK_drcDec_SetChannelGains()
572 drcDec_GainDecoder_SetChannelGains(hDrcDec->hGainDec, numChannels, frameSize, in FDK_drcDec_SetChannelGains()
578 FDK_drcDec_ReadUniDrcConfig(HANDLE_DRC_DECODER hDrcDec, in FDK_drcDec_ReadUniDrcConfig() argument
582 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_ReadUniDrcConfig()
584 if (hDrcDec->codecMode == DRC_DEC_MPEG_D_USAC) { in FDK_drcDec_ReadUniDrcConfig()
585 dErr = drcDec_readUniDrcConfig(hBitstream, &(hDrcDec->uniDrcConfig)); in FDK_drcDec_ReadUniDrcConfig()
591 FDKmemclear(&hDrcDec->uniDrcConfig, sizeof(hDrcDec->uniDrcConfig)); in FDK_drcDec_ReadUniDrcConfig()
592 hDrcDec->uniDrcConfig.diff = 1; in FDK_drcDec_ReadUniDrcConfig()
595 startSelectionProcess(hDrcDec); in FDK_drcDec_ReadUniDrcConfig()
601 FDK_drcDec_ReadDownmixInstructions_Box(HANDLE_DRC_DECODER hDrcDec, in FDK_drcDec_ReadDownmixInstructions_Box() argument
605 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_ReadDownmixInstructions_Box()
611 FDKmemclear(&hDrcDec->uniDrcConfig.downmixInstructions, in FDK_drcDec_ReadDownmixInstructions_Box()
612 sizeof(hDrcDec->uniDrcConfig.downmixInstructions)); in FDK_drcDec_ReadDownmixInstructions_Box()
613 hDrcDec->uniDrcConfig.downmixInstructionsCount = 0; in FDK_drcDec_ReadDownmixInstructions_Box()
614 hDrcDec->uniDrcConfig.downmixInstructionsCountV0 = 0; in FDK_drcDec_ReadDownmixInstructions_Box()
615 hDrcDec->uniDrcConfig.downmixInstructionsCountV1 = 0; in FDK_drcDec_ReadDownmixInstructions_Box()
616 hDrcDec->uniDrcConfig.diff = 1; in FDK_drcDec_ReadDownmixInstructions_Box()
619 startSelectionProcess(hDrcDec); in FDK_drcDec_ReadDownmixInstructions_Box()
625 FDK_drcDec_ReadUniDrcInstructions_Box(HANDLE_DRC_DECODER hDrcDec, in FDK_drcDec_ReadUniDrcInstructions_Box() argument
629 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_ReadUniDrcInstructions_Box()
635 FDKmemclear(&hDrcDec->uniDrcConfig.drcInstructionsUniDrc, in FDK_drcDec_ReadUniDrcInstructions_Box()
636 sizeof(hDrcDec->uniDrcConfig.drcInstructionsUniDrc)); in FDK_drcDec_ReadUniDrcInstructions_Box()
637 hDrcDec->uniDrcConfig.drcInstructionsUniDrcCount = 0; in FDK_drcDec_ReadUniDrcInstructions_Box()
638 hDrcDec->uniDrcConfig.drcInstructionsUniDrcCountV0 = 0; in FDK_drcDec_ReadUniDrcInstructions_Box()
639 hDrcDec->uniDrcConfig.drcInstructionsUniDrcCountV1 = 0; in FDK_drcDec_ReadUniDrcInstructions_Box()
640 hDrcDec->uniDrcConfig.diff = 1; in FDK_drcDec_ReadUniDrcInstructions_Box()
643 startSelectionProcess(hDrcDec); in FDK_drcDec_ReadUniDrcInstructions_Box()
649 FDK_drcDec_ReadUniDrcCoefficients_Box(HANDLE_DRC_DECODER hDrcDec, in FDK_drcDec_ReadUniDrcCoefficients_Box() argument
653 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_ReadUniDrcCoefficients_Box()
659 FDKmemclear(&hDrcDec->uniDrcConfig.drcCoefficientsUniDrc, in FDK_drcDec_ReadUniDrcCoefficients_Box()
660 sizeof(hDrcDec->uniDrcConfig.drcCoefficientsUniDrc)); in FDK_drcDec_ReadUniDrcCoefficients_Box()
661 hDrcDec->uniDrcConfig.drcCoefficientsUniDrcCount = 0; in FDK_drcDec_ReadUniDrcCoefficients_Box()
662 hDrcDec->uniDrcConfig.drcCoefficientsUniDrcCountV0 = 0; in FDK_drcDec_ReadUniDrcCoefficients_Box()
663 hDrcDec->uniDrcConfig.drcCoefficientsUniDrcCountV1 = 0; in FDK_drcDec_ReadUniDrcCoefficients_Box()
664 hDrcDec->uniDrcConfig.diff = 1; in FDK_drcDec_ReadUniDrcCoefficients_Box()
667 startSelectionProcess(hDrcDec); in FDK_drcDec_ReadUniDrcCoefficients_Box()
673 FDK_drcDec_ReadLoudnessInfoSet(HANDLE_DRC_DECODER hDrcDec, in FDK_drcDec_ReadLoudnessInfoSet() argument
677 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_ReadLoudnessInfoSet()
679 if (hDrcDec->codecMode == DRC_DEC_MPEG_D_USAC) { in FDK_drcDec_ReadLoudnessInfoSet()
680 dErr = drcDec_readLoudnessInfoSet(hBitstream, &(hDrcDec->loudnessInfoSet)); in FDK_drcDec_ReadLoudnessInfoSet()
686 FDKmemclear(&hDrcDec->loudnessInfoSet, sizeof(hDrcDec->loudnessInfoSet)); in FDK_drcDec_ReadLoudnessInfoSet()
687 hDrcDec->loudnessInfoSet.diff = 1; in FDK_drcDec_ReadLoudnessInfoSet()
690 startSelectionProcess(hDrcDec); in FDK_drcDec_ReadLoudnessInfoSet()
696 FDK_drcDec_ReadLoudnessBox(HANDLE_DRC_DECODER hDrcDec, in FDK_drcDec_ReadLoudnessBox() argument
700 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_ReadLoudnessBox()
706 FDKmemclear(&hDrcDec->loudnessInfoSet, sizeof(hDrcDec->loudnessInfoSet)); in FDK_drcDec_ReadLoudnessBox()
707 hDrcDec->loudnessInfoSet.diff = 1; in FDK_drcDec_ReadLoudnessBox()
710 startSelectionProcess(hDrcDec); in FDK_drcDec_ReadLoudnessBox()
716 FDK_drcDec_ReadUniDrcGain(HANDLE_DRC_DECODER hDrcDec, in FDK_drcDec_ReadUniDrcGain() argument
720 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_ReadUniDrcGain()
721 if (!hDrcDec->status) { in FDK_drcDec_ReadUniDrcGain()
726 hBitstream, &(hDrcDec->uniDrcConfig), in FDK_drcDec_ReadUniDrcGain()
727 drcDec_GainDecoder_GetFrameSize(hDrcDec->hGainDec), in FDK_drcDec_ReadUniDrcGain()
728 drcDec_GainDecoder_GetDeltaTminDefault(hDrcDec->hGainDec), in FDK_drcDec_ReadUniDrcGain()
729 &(hDrcDec->uniDrcGain)); in FDK_drcDec_ReadUniDrcGain()
732 hDrcDec->status = DRC_DEC_NEW_GAIN_PAYLOAD; in FDK_drcDec_ReadUniDrcGain()
738 FDK_drcDec_ReadUniDrc(HANDLE_DRC_DECODER hDrcDec, in FDK_drcDec_ReadUniDrc() argument
742 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_ReadUniDrc()
743 if (!hDrcDec->status) return DRC_DEC_NOT_READY; in FDK_drcDec_ReadUniDrc()
746 hBitstream, &(hDrcDec->uniDrcConfig), &(hDrcDec->loudnessInfoSet), in FDK_drcDec_ReadUniDrc()
747 drcDec_GainDecoder_GetFrameSize(hDrcDec->hGainDec), in FDK_drcDec_ReadUniDrc()
748 drcDec_GainDecoder_GetDeltaTminDefault(hDrcDec->hGainDec), in FDK_drcDec_ReadUniDrc()
749 &(hDrcDec->uniDrcGain)); in FDK_drcDec_ReadUniDrc()
751 startSelectionProcess(hDrcDec); in FDK_drcDec_ReadUniDrc()
754 hDrcDec->status = DRC_DEC_NEW_GAIN_PAYLOAD; in FDK_drcDec_ReadUniDrc()
760 FDK_drcDec_Preprocess(HANDLE_DRC_DECODER hDrcDec) { in FDK_drcDec_Preprocess() argument
763 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_Preprocess()
764 if (!hDrcDec->status) return DRC_DEC_NOT_READY; in FDK_drcDec_Preprocess()
765 if (!(hDrcDec->functionalRange & DRC_DEC_GAIN)) return DRC_DEC_NOT_OK; in FDK_drcDec_Preprocess()
767 if (hDrcDec->status != DRC_DEC_NEW_GAIN_PAYLOAD) { in FDK_drcDec_Preprocess()
770 drcDec_GainDecoder_Conceal(hDrcDec->hGainDec, &(hDrcDec->uniDrcConfig), in FDK_drcDec_Preprocess()
771 &(hDrcDec->uniDrcGain)); in FDK_drcDec_Preprocess()
775 hDrcDec->hGainDec, &(hDrcDec->uniDrcGain), in FDK_drcDec_Preprocess()
776 hDrcDec->selProcOutput.loudnessNormalizationGainDb, in FDK_drcDec_Preprocess()
777 hDrcDec->selProcOutput.boost, hDrcDec->selProcOutput.compress); in FDK_drcDec_Preprocess()
779 hDrcDec->status = DRC_DEC_INTERPOLATION_PREPARED; in FDK_drcDec_Preprocess()
785 FDK_drcDec_ProcessTime(HANDLE_DRC_DECODER hDrcDec, const int delaySamples, in FDK_drcDec_ProcessTime() argument
792 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_ProcessTime()
793 if (!(hDrcDec->functionalRange & DRC_DEC_GAIN)) return DRC_DEC_NOT_OK; in FDK_drcDec_ProcessTime()
794 if (hDrcDec->status != DRC_DEC_INTERPOLATION_PREPARED) in FDK_drcDec_ProcessTime()
798 hDrcDec->hGainDec, delaySamples, (GAIN_DEC_LOCATION)drcLocation, in FDK_drcDec_ProcessTime()
807 FDK_drcDec_ProcessFreq(HANDLE_DRC_DECODER hDrcDec, const int delaySamples, in FDK_drcDec_ProcessFreq() argument
815 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_ProcessFreq()
816 if (!(hDrcDec->functionalRange & DRC_DEC_GAIN)) return DRC_DEC_NOT_OK; in FDK_drcDec_ProcessFreq()
817 if (hDrcDec->status != DRC_DEC_INTERPOLATION_PREPARED) in FDK_drcDec_ProcessFreq()
821 hDrcDec->hGainDec, delaySamples, (GAIN_DEC_LOCATION)drcLocation, in FDK_drcDec_ProcessFreq()
830 FDK_drcDec_ApplyDownmix(HANDLE_DRC_DECODER hDrcDec, int* reverseInChannelMap, in FDK_drcDec_ApplyDownmix() argument
833 SEL_PROC_OUTPUT* pSelProcOutput = &(hDrcDec->selProcOutput); in FDK_drcDec_ApplyDownmix()
840 if (hDrcDec == NULL) return DRC_DEC_NOT_OPENED; in FDK_drcDec_ApplyDownmix()
841 if (!(hDrcDec->functionalRange & DRC_DEC_GAIN)) return DRC_DEC_NOT_OK; in FDK_drcDec_ApplyDownmix()
858 frameSize = drcDec_GainDecoder_GetFrameSize(hDrcDec->hGainDec); in FDK_drcDec_ApplyDownmix()