Lines Matching refs:asc
1225 CSAudioSpecificConfig *asc, in GaSpecificConfig_Parse() argument
1238 if (asc->m_channelConfiguration == 0) { in GaSpecificConfig_Parse()
1239 CProgramConfig_Read(&asc->m_progrConfigElement, bs, ascStartAnchor); in GaSpecificConfig_Parse()
1242 if ((asc->m_aot == AOT_AAC_SCAL) || (asc->m_aot == AOT_ER_AAC_SCAL)) { in GaSpecificConfig_Parse()
1247 if (asc->m_aot == AOT_ER_BSAC) { in GaSpecificConfig_Parse()
1252 if ((asc->m_aot == AOT_ER_AAC_LC) || (asc->m_aot == AOT_ER_AAC_LTP) || in GaSpecificConfig_Parse()
1253 (asc->m_aot == AOT_ER_AAC_SCAL) || (asc->m_aot == AOT_ER_AAC_LD)) { in GaSpecificConfig_Parse()
1254 asc->m_vcb11Flag = FDKreadBits(bs, 1); /* aacSectionDataResilienceFlag */ in GaSpecificConfig_Parse()
1255 asc->m_rvlcFlag = in GaSpecificConfig_Parse()
1257 asc->m_hcrFlag = FDKreadBits(bs, 1); /* aacSpectralDataResilienceFlag */ in GaSpecificConfig_Parse()
1284 static INT ld_sbr_header(CSAudioSpecificConfig *asc, const INT dsFactor, in ld_sbr_header() argument
1286 const int channelConfiguration = asc->m_channelConfiguration; in ld_sbr_header()
1309 cb->cbSbrData, hBs, asc->m_samplingFrequency / dsFactor, in ld_sbr_header()
1310 asc->m_extensionSamplingFrequency / dsFactor, in ld_sbr_header()
1311 asc->m_samplesPerFrame / dsFactor, AOT_ER_AAC_ELD, element, i++, 0, 0, in ld_sbr_header()
1312 asc->configMode, &asc->SbrConfigChanged, dsFactor); in ld_sbr_header()
1323 static TRANSPORTDEC_ERROR EldSpecificConfig_Parse(CSAudioSpecificConfig *asc, in EldSpecificConfig_Parse() argument
1327 CSEldSpecificConfig *esc = &asc->m_sc.m_eldSpecificConfig; in EldSpecificConfig_Parse()
1338 asc->m_samplesPerFrame = 480; in EldSpecificConfig_Parse()
1340 asc->m_samplesPerFrame = 512; in EldSpecificConfig_Parse()
1343 asc->m_vcb11Flag = FDKreadBits(hBs, 1); in EldSpecificConfig_Parse()
1344 asc->m_rvlcFlag = FDKreadBits(hBs, 1); in EldSpecificConfig_Parse()
1345 asc->m_hcrFlag = FDKreadBits(hBs, 1); in EldSpecificConfig_Parse()
1354 asc->m_extensionSamplingFrequency = asc->m_samplingFrequency in EldSpecificConfig_Parse()
1361 switch (asc->m_channelConfiguration) { in EldSpecificConfig_Parse()
1395 esc->m_downscaledSamplingFrequency = asc->m_samplingFrequency; in EldSpecificConfig_Parse()
1416 cb->cbSscData, hBs, asc->m_aot, in EldSpecificConfig_Parse()
1417 asc->m_samplingFrequency << esc->m_sbrSamplingRate, in EldSpecificConfig_Parse()
1418 asc->m_samplesPerFrame << esc->m_sbrSamplingRate, in EldSpecificConfig_Parse()
1421 eldExtLen, asc->configMode, &asc->SacConfigChanged); in EldSpecificConfig_Parse()
1425 if (esc->m_downscaledSamplingFrequency != asc->m_samplingFrequency) { in EldSpecificConfig_Parse()
1465 if (asc->m_samplingFrequency % esc->m_downscaledSamplingFrequency != 0) { in EldSpecificConfig_Parse()
1468 dsFactor = asc->m_samplingFrequency / esc->m_downscaledSamplingFrequency; in EldSpecificConfig_Parse()
1476 if ((INT)asc->m_samplesPerFrame % dsFactor != 0) { in EldSpecificConfig_Parse()
1483 if (0 != ld_sbr_header(asc, dsFactor, hBs, cb)) { in EldSpecificConfig_Parse()
1689 CSAudioSpecificConfig *asc, HANDLE_FDK_BITSTREAM hBs, in UsacRsv60DecoderConfig_Parse() argument
1692 CSUsacConfig *usc = &asc->m_sc.m_usacConfig; in UsacRsv60DecoderConfig_Parse()
1704 usc->m_channelConfigurationIndex = asc->m_channelConfiguration; in UsacRsv60DecoderConfig_Parse()
1706 if (asc->m_aot == AOT_USAC) { in UsacRsv60DecoderConfig_Parse()
1722 if (asc->m_aot == AOT_USAC) { in UsacRsv60DecoderConfig_Parse()
1761 if (cb->cbSbr(cb->cbSbrData, hBs, asc->m_samplingFrequency, in UsacRsv60DecoderConfig_Parse()
1762 asc->m_extensionSamplingFrequency, in UsacRsv60DecoderConfig_Parse()
1763 asc->m_samplesPerFrame, asc->m_aot, ID_SCE, in UsacRsv60DecoderConfig_Parse()
1765 usc->element[i].m_stereoConfigIndex, asc->configMode, in UsacRsv60DecoderConfig_Parse()
1766 &asc->SbrConfigChanged, 1)) { in UsacRsv60DecoderConfig_Parse()
1801 if (cb->cbSbr(cb->cbSbrData, hBs, asc->m_samplingFrequency, in UsacRsv60DecoderConfig_Parse()
1802 asc->m_extensionSamplingFrequency, in UsacRsv60DecoderConfig_Parse()
1803 asc->m_samplesPerFrame, asc->m_aot, el_type, in UsacRsv60DecoderConfig_Parse()
1805 usc->element[i].m_stereoConfigIndex, asc->configMode, in UsacRsv60DecoderConfig_Parse()
1806 &asc->SbrConfigChanged, 1)) { in UsacRsv60DecoderConfig_Parse()
1817 int samplesPerFrame = asc->m_samplesPerFrame; in UsacRsv60DecoderConfig_Parse()
1825 if (cb->cbSsc(cb->cbSscData, hBs, asc->m_aot, in UsacRsv60DecoderConfig_Parse()
1826 asc->m_extensionSamplingFrequency, samplesPerFrame, in UsacRsv60DecoderConfig_Parse()
1830 asc->configMode, &asc->SacConfigChanged)) { in UsacRsv60DecoderConfig_Parse()
1855 if (cb->cbSbr(cb->cbSbrData, hBs, asc->m_samplingFrequency, in UsacRsv60DecoderConfig_Parse()
1856 asc->m_extensionSamplingFrequency, in UsacRsv60DecoderConfig_Parse()
1857 asc->m_samplesPerFrame, asc->m_aot, ID_LFE, in UsacRsv60DecoderConfig_Parse()
1859 usc->element[i].m_stereoConfigIndex, asc->configMode, in UsacRsv60DecoderConfig_Parse()
1860 &asc->SbrConfigChanged, 1)) { in UsacRsv60DecoderConfig_Parse()
1869 asc->m_samplesPerFrame, 0, asc->m_aot); in UsacRsv60DecoderConfig_Parse()
1882 if (asc->m_aot == AOT_USAC) { in UsacRsv60DecoderConfig_Parse()
1903 CSAudioSpecificConfig *asc, int coreSbrFrameLengthIndex) { in UsacConfig_SetCoreSbrFrameLengthIndex() argument
1909 asc->m_sc.m_usacConfig.m_coreSbrFrameLengthIndex = coreSbrFrameLengthIndex; in UsacConfig_SetCoreSbrFrameLengthIndex()
1910 asc->m_samplesPerFrame = usacFrameLength[coreSbrFrameLengthIndex]; in UsacConfig_SetCoreSbrFrameLengthIndex()
1912 asc->m_sc.m_usacConfig.m_sbrRatioIndex = sbrRatioIndex_val; in UsacConfig_SetCoreSbrFrameLengthIndex()
1915 asc->m_sbrPresentFlag = 1; in UsacConfig_SetCoreSbrFrameLengthIndex()
1916 asc->m_extensionSamplingFrequency = asc->m_samplingFrequency; in UsacConfig_SetCoreSbrFrameLengthIndex()
1917 asc->m_extensionSamplingFrequencyIndex = asc->m_samplingFrequencyIndex; in UsacConfig_SetCoreSbrFrameLengthIndex()
1920 asc->m_samplingFrequency >>= 2; in UsacConfig_SetCoreSbrFrameLengthIndex()
1921 asc->m_samplesPerFrame >>= 2; in UsacConfig_SetCoreSbrFrameLengthIndex()
1924 asc->m_samplingFrequency = (asc->m_samplingFrequency * 3) / 8; in UsacConfig_SetCoreSbrFrameLengthIndex()
1925 asc->m_samplesPerFrame = (asc->m_samplesPerFrame * 3) / 8; in UsacConfig_SetCoreSbrFrameLengthIndex()
1928 asc->m_samplingFrequency >>= 1; in UsacConfig_SetCoreSbrFrameLengthIndex()
1929 asc->m_samplesPerFrame >>= 1; in UsacConfig_SetCoreSbrFrameLengthIndex()
1934 asc->m_samplingFrequencyIndex = in UsacConfig_SetCoreSbrFrameLengthIndex()
1935 getSamplingRateIndex(asc->m_samplingFrequency, 4); in UsacConfig_SetCoreSbrFrameLengthIndex()
1941 static TRANSPORTDEC_ERROR UsacConfig_Parse(CSAudioSpecificConfig *asc, in UsacConfig_Parse() argument
1950 usacSamplingFrequency = getSampleRate(hBs, &asc->m_samplingFrequencyIndex, 5); in UsacConfig_Parse()
1951 asc->m_samplingFrequency = (UINT)usacSamplingFrequency; in UsacConfig_Parse()
1954 if (UsacConfig_SetCoreSbrFrameLengthIndex(asc, coreSbrFrameLengthIndex) != in UsacConfig_Parse()
1969 asc->m_channelConfiguration = channelConfigurationIndex; in UsacConfig_Parse()
1971 err = UsacRsv60DecoderConfig_Parse(asc, hBs, cb); in UsacConfig_Parse()
1977 err = configExtension(&asc->m_sc.m_usacConfig, hBs, cb); in UsacConfig_Parse()
1987 asc->m_sc.m_usacConfig.m_nUsacChannels)) { in UsacConfig_Parse()
1994 asc->m_sc.m_usacConfig.UsacConfig, in UsacConfig_Parse()
1996 asc->m_sc.m_usacConfig.UsacConfigBits = fAbs(configSize_bits); in UsacConfig_Parse()
2102 void AudioSpecificConfig_Init(CSAudioSpecificConfig *asc) { in AudioSpecificConfig_Init() argument
2103 FDKmemclear(asc, sizeof(CSAudioSpecificConfig)); in AudioSpecificConfig_Init()
2106 asc->m_aot = AOT_NONE; in AudioSpecificConfig_Init()
2107 asc->m_samplingFrequencyIndex = 0xf; in AudioSpecificConfig_Init()
2108 asc->m_epConfig = -1; in AudioSpecificConfig_Init()
2109 asc->m_extensionAudioObjectType = AOT_NULL_OBJECT; in AudioSpecificConfig_Init()
2110 CProgramConfig_Init(&asc->m_progrConfigElement); in AudioSpecificConfig_Init()
2283 CSAudioSpecificConfig *asc, HANDLE_FDK_BITSTREAM hBs, int audioMode, in Drm_xHEAACDecoderConfig() argument
2287 CSUsacConfig *usc = &asc->m_sc.m_usacConfig; in Drm_xHEAACDecoderConfig()
2308 if (cb->cbSbr(cb->cbSbrData, hBs, asc->m_samplingFrequency, in Drm_xHEAACDecoderConfig()
2309 asc->m_extensionSamplingFrequency, in Drm_xHEAACDecoderConfig()
2310 asc->m_samplesPerFrame, asc->m_aot, ID_SCE, elemIdx, in Drm_xHEAACDecoderConfig()
2313 asc->configMode, &asc->SbrConfigChanged, 1)) { in Drm_xHEAACDecoderConfig()
2366 if (cb->cbSbr(cb->cbSbrData, hBs, asc->m_samplingFrequency, in Drm_xHEAACDecoderConfig()
2367 asc->m_extensionSamplingFrequency, in Drm_xHEAACDecoderConfig()
2368 asc->m_samplesPerFrame, asc->m_aot, el_type, elemIdx, in Drm_xHEAACDecoderConfig()
2371 asc->configMode, &asc->SbrConfigChanged, 1)) { in Drm_xHEAACDecoderConfig()
2378 int samplesPerFrame = asc->m_samplesPerFrame; in Drm_xHEAACDecoderConfig()
2388 asc->m_extensionSamplingFrequency, samplesPerFrame, in Drm_xHEAACDecoderConfig()
2391 asc->configMode, &asc->SacConfigChanged); in Drm_xHEAACDecoderConfig()
2406 CSAudioSpecificConfig *asc, HANDLE_FDK_BITSTREAM bs, int audioMode, in Drm_xHEAACStaticConfig() argument
2411 asc, coreSbrFrameLengthIndexDrm + 1) != TRANSPORTDEC_OK) { in Drm_xHEAACStaticConfig()
2415 asc->m_channelConfiguration = (audioMode) ? 2 : 1; in Drm_xHEAACStaticConfig()
2417 if (Drm_xHEAACDecoderConfig(asc, bs, audioMode, cb) != TRANSPORTDEC_OK) { in Drm_xHEAACStaticConfig()