Lines Matching refs:asc
837 …EC_CPP AAC_DECODER_ERROR CAacDecoder_Init(HANDLE_AACDECODER self, const CSAudioSpecificConfig *asc) in CAacDecoder_Init() argument
847 switch (asc->m_aot) { in CAacDecoder_Init()
865 switch (asc->m_channelConfiguration) { in CAacDecoder_Init()
869 if (CProgramConfig_IsValid(&asc->m_progrConfigElement)) { in CAacDecoder_Init()
870 ascChannels = asc->m_progrConfigElement.NumChannels; in CAacDecoder_Init()
874 FDKmemcpy(&self->pce, &asc->m_progrConfigElement, sizeof(CProgramConfig)); in CAacDecoder_Init()
876 …el = CProgramConfig_GetElementTable(&asc->m_progrConfigElement, self->elements, (8), &self->chMapI… in CAacDecoder_Init()
898 ascChannels = asc->m_channelConfiguration; in CAacDecoder_Init()
915 if (asc->m_channelConfiguration > 0) { in CAacDecoder_Init()
917 …FDKmemcpy(self->elements, elementsTab[asc->m_channelConfiguration-1], sizeof(MP4_ELEMENT_ID)*FDKmi… in CAacDecoder_Init()
927 self->chMapIndex = asc->m_channelConfiguration; in CAacDecoder_Init()
931 if (CProgramConfig_IsValid(&asc->m_progrConfigElement)) { in CAacDecoder_Init()
934 asc->m_progrConfigElement.MatrixMixdownIndexPresent, in CAacDecoder_Init()
935 asc->m_progrConfigElement.MatrixMixdownIndex, in CAacDecoder_Init()
936 asc->m_progrConfigElement.PseudoSurroundEnable ); in CAacDecoder_Init()
941 self->streamInfo.channelConfig = asc->m_channelConfiguration; in CAacDecoder_Init()
943 if (self->streamInfo.aot != asc->m_aot) { in CAacDecoder_Init()
944 self->streamInfo.aot = asc->m_aot; in CAacDecoder_Init()
948 if (self->streamInfo.aacSamplesPerFrame != (INT)asc->m_samplesPerFrame) { in CAacDecoder_Init()
949 self->streamInfo.aacSamplesPerFrame = asc->m_samplesPerFrame; in CAacDecoder_Init()
958 self->streamInfo.extAot = asc->m_extensionAudioObjectType; in CAacDecoder_Init()
959 self->streamInfo.extSamplingRate = asc->m_extensionSamplingFrequency; in CAacDecoder_Init()
960 self->flags |= (asc->m_sbrPresentFlag) ? AC_SBR_PRESENT : 0; in CAacDecoder_Init()
961 self->flags |= (asc->m_psPresentFlag) ? AC_PS_PRESENT : 0; in CAacDecoder_Init()
965 self->flags |= (asc->m_vcb11Flag) ? AC_ER_VCB11 : 0; in CAacDecoder_Init()
968 self->flags |= (asc->m_rvlcFlag) ? AC_ER_RVLC : 0; in CAacDecoder_Init()
971 self->flags |= (asc->m_hcrFlag) ? AC_ER_HCR : 0; in CAacDecoder_Init()
973 if (asc->m_aot == AOT_ER_AAC_ELD) { in CAacDecoder_Init()
975 self->flags |= (asc->m_sc.m_eldSpecificConfig.m_sbrCrcFlag) ? AC_SBRCRC : 0; in CAacDecoder_Init()
976 self->flags |= (asc->m_sc.m_eldSpecificConfig.m_useLdQmfTimeAlign) ? AC_LD_MPS : 0; in CAacDecoder_Init()
978 self->flags |= (asc->m_aot == AOT_ER_AAC_LD) ? AC_LD : 0; in CAacDecoder_Init()
979 self->flags |= (asc->m_epConfig >= 0) ? AC_ER : 0; in CAacDecoder_Init()
982 if (asc->m_sbrPresentFlag) { in CAacDecoder_Init()
986 if (asc->m_psPresentFlag) { in CAacDecoder_Init()
990 if ( (asc->m_epConfig >= 0) in CAacDecoder_Init()
991 && (asc->m_channelConfiguration <= 0) ) { in CAacDecoder_Init()
996 self->streamInfo.epConfig = asc->m_epConfig; in CAacDecoder_Init()
999 if (asc->m_epConfig > 1) in CAacDecoder_Init()
1003 if (self->streamInfo.aacSampleRate != (INT)asc->m_samplingFrequency) { in CAacDecoder_Init()
1009 …= getSamplingRateInfo(&self->samplingRateInfo, asc->m_samplesPerFrame, asc->m_samplingFrequencyInd… in CAacDecoder_Init()