Home
last modified time | relevance | path

Searched refs:pVars (Results 1 – 25 of 33) sorted by relevance

12

/external/opencore/codecs_v2/audio/aac/dec/src/
Dpvmp4setaudioconfig.cpp180 tDec_Int_File *pVars; /* Helper pointer */ in PVMP4SetAudioConfig() local
187 pVars = (tDec_Int_File *)pMem; in PVMP4SetAudioConfig()
191 pVars->inputStream.pBuffer = pExt->pInputBuffer; in PVMP4SetAudioConfig()
193 pVars->inputStream.availableBits = 0; in PVMP4SetAudioConfig()
195 pVars->inputStream.usedBits = 0; in PVMP4SetAudioConfig()
206 pVars->prog_config.sampling_rate_idx = 0; in PVMP4SetAudioConfig()
209 pVars->prog_config.sampling_rate_idx = 1; in PVMP4SetAudioConfig()
212 pVars->prog_config.sampling_rate_idx = 2; in PVMP4SetAudioConfig()
215 pVars->prog_config.sampling_rate_idx = 3; in PVMP4SetAudioConfig()
218 pVars->prog_config.sampling_rate_idx = 4; in PVMP4SetAudioConfig()
[all …]
Dpvmp4audiodecoderinitlibrary.cpp245 tDec_Int_File *pVars; in PVMP4AudioDecoderInitLibrary() local
247 pVars = (tDec_Int_File *)pMem; in PVMP4AudioDecoderInitLibrary()
254 pVars, in PVMP4AudioDecoderInitLibrary()
261 pVars->perChan[0].fxpCoef = pVars->fxpCoef[0]; in PVMP4AudioDecoderInitLibrary()
262 pVars->perChan[1].fxpCoef = pVars->fxpCoef[1]; in PVMP4AudioDecoderInitLibrary()
272 pVars->perChan[0].pShareWfxpCoef = (per_chan_share_w_fxpCoef *) in PVMP4AudioDecoderInitLibrary()
273 & (pVars->perChan[0].fxpCoef[1024]); in PVMP4AudioDecoderInitLibrary()
275 pVars->perChan[1].pShareWfxpCoef = (per_chan_share_w_fxpCoef *) in PVMP4AudioDecoderInitLibrary()
276 & (pVars->perChan[1].fxpCoef[1024]); in PVMP4AudioDecoderInitLibrary()
284 pVars->current_program = -1; in PVMP4AudioDecoderInitLibrary()
[all …]
Dget_audio_specific_config.cpp306 Int get_audio_specific_config(tDec_Int_File * const pVars) in get_audio_specific_config() argument
321 pInputStream = &(pVars->inputStream); in get_audio_specific_config()
323 pVars->mc_info.upsamplingFactor = 1; /* default to regular AAC */ in get_audio_specific_config()
340 pVars->mc_info.ExtendedAudioObjectType = audioObjectType; /* default */ in get_audio_specific_config()
345 pVars->prog_config.sampling_rate_idx = temp & 0xf; in get_audio_specific_config()
347 if (pVars->prog_config.sampling_rate_idx > 0xb) in get_audio_specific_config()
353 if (pVars->prog_config.sampling_rate_idx == 0xf) /* escape sequence */ in get_audio_specific_config()
370 if ((channel_config > 2) && (!pVars->aacConfigUtilityEnabled)) in get_audio_specific_config()
384 pVars->mc_info.ExtendedAudioObjectType = MP4AUDIO_SBR; in get_audio_specific_config()
385 pVars->mc_info.sbrPresentFlag = 1; in get_audio_specific_config()
[all …]
Dpvmp4audiodecoderframe.cpp518 tDec_Int_File *pVars; /* Helper pointer */ in PVMP4AudioDecodeFrame() local
539 pVars = (tDec_Int_File *)pMem; in PVMP4AudioDecodeFrame()
541 pMC_Info = &pVars->mc_info; in PVMP4AudioDecodeFrame()
543 pChVars[LEFT] = &pVars->perChan[LEFT]; in PVMP4AudioDecodeFrame()
544 pChVars[RIGHT] = &pVars->perChan[RIGHT]; in PVMP4AudioDecodeFrame()
552 sbrDecoderData = (SBRDECODER_DATA *) & pVars->sbrDecoderData; in PVMP4AudioDecodeFrame()
553 sbrDec = (SBR_DEC *) & pVars->sbrDec; in PVMP4AudioDecodeFrame()
554 sbrBitStream = (SBRBITSTREAM *) & pVars->sbrBitStr; in PVMP4AudioDecodeFrame()
557 …sbrDecoderData->hParametricStereoDec = (HANDLE_PS_DEC) & pVars->sbrDecoderData.ParametricStereoDec; in PVMP4AudioDecodeFrame()
564 pVars->inputStream.pBuffer = pExt->pInputBuffer; in PVMP4AudioDecodeFrame()
[all …]
Dget_adts_header.cpp362 tDec_Int_File *pVars, in get_adts_header() argument
386 &(pVars->inputStream), in get_adts_header()
396 &(pVars->inputStream), in get_adts_header()
404 &(pVars->inputStream)); in get_adts_header()
410 pVars->prog_config.CRC_absent = ((UInt)(adts_header >> 12)) & 0x0001; in get_adts_header()
428 pVars->prog_config.profile = (lower_16 >> 10) & 0x3; in get_adts_header()
430 if (pVars->prog_config.profile == MP4AUDIO_AAC_SSR) in get_adts_header()
439 pVars->prog_config.sampling_rate_idx = (lower_16 >> 6) & 0xF; in get_adts_header()
496 pVars->prog_config.front.ele_is_cpe[0] = channel_configuration; in get_adts_header()
499 pVars->prog_config.front.num_ele = 1; in get_adts_header()
[all …]
Dpvmp4audiodecoderconfig.cpp184 tDec_Int_File *pVars; /* Helper pointer */ in PVMP4AudioDecoderConfig() local
191 pVars = (tDec_Int_File *)pMem; in PVMP4AudioDecoderConfig()
195 pVars->inputStream.pBuffer = pExt->pInputBuffer; in PVMP4AudioDecoderConfig()
197 pVars->inputStream.inputBufferCurrentLength = in PVMP4AudioDecoderConfig()
200 pVars->inputStream.availableBits = in PVMP4AudioDecoderConfig()
207 pVars->inputStream.usedBits = initialUsedBits; in PVMP4AudioDecoderConfig()
209 if (initialUsedBits <= pVars->inputStream.availableBits) in PVMP4AudioDecoderConfig()
217 pVars->aacConfigUtilityEnabled = false; /* set aac dec mode */ in PVMP4AudioDecoderConfig()
219 status = get_audio_specific_config(pVars); in PVMP4AudioDecoderConfig()
223 byte_align(&pVars->inputStream); in PVMP4AudioDecoderConfig()
[all …]
Dpvmp4audiodecoderresetbuffer.cpp163 tDec_Int_File *pVars; /* Helper pointer */ in PVMP4AudioDecoderResetBuffer() local
178 pVars = (tDec_Int_File *)pMem; in PVMP4AudioDecoderResetBuffer()
184 pv_memset(pVars->perChan[LEFT].time_quant, in PVMP4AudioDecoderResetBuffer()
186 LONG_WINDOW*sizeof(pVars->perChan[LEFT].time_quant[0])); in PVMP4AudioDecoderResetBuffer()
188 pv_memset(pVars->perChan[RIGHT].time_quant, in PVMP4AudioDecoderResetBuffer()
190 LONG_WINDOW*sizeof(pVars->perChan[RIGHT].time_quant[0])); in PVMP4AudioDecoderResetBuffer()
195 if (!pVars->sbrDecoderData.setStreamType) /* reset only when stream type is defined */ in PVMP4AudioDecoderResetBuffer()
197 if (pVars->aacPlusEnabled == true) /* clear buffer only if they were used */ in PVMP4AudioDecoderResetBuffer()
200 hFrameData_1 = (SBR_FRAME_DATA *) & pVars->sbrDecoderData.SbrChannel[LEFT].frameData; in PVMP4AudioDecoderResetBuffer()
201 hFrameData_2 = (SBR_FRAME_DATA *) & pVars->sbrDecoderData.SbrChannel[RIGHT].frameData; in PVMP4AudioDecoderResetBuffer()
[all …]
Dsbr_applied.cpp162 tDec_Int_File *pVars, in sbr_applied() argument
204 pVars->mc_info.psPresentFlag = sbrEnablePS; in sbr_applied()
208 pVars->mc_info.ExtendedAudioObjectType = MP4AUDIO_PS; in sbr_applied()
219 if (pVars->mc_info.ExtendedAudioObjectType != MP4AUDIO_PS) in sbr_applied()
221 pVars->mc_info.ExtendedAudioObjectType = MP4AUDIO_SBR; in sbr_applied()
223 if (pVars->mc_info.nch > 1) in sbr_applied()
235 pVars->mc_info.psPresentFlag = sbrEnablePS; in sbr_applied()
241 pVars->mc_info.ExtendedAudioObjectType = MP4AUDIO_SBR; in sbr_applied()
243 if (pVars->mc_info.nch > 1) in sbr_applied()
254 pVars->mc_info.ExtendedAudioObjectType = MP4AUDIO_SBR; in sbr_applied()
[all …]
Dget_ga_specific_config.cpp302 tDec_Int_File * const pVars, in get_GA_specific_config() argument
358 pVars->mc_info.implicit_channeling = 1; in get_GA_specific_config()
365 status = get_prog_config(pVars, in get_GA_specific_config()
366 &pVars->scratch.scratch_prog_config); in get_GA_specific_config()
370 pVars->prog_config.front.ele_is_cpe[0] = 0; /* default to mono */ in get_GA_specific_config()
371 pVars->mc_info.nch = 1; in get_GA_specific_config()
372 pVars->prog_config.front.ele_tag[0] = 0; in get_GA_specific_config()
384 pVars->prog_config.front.ele_is_cpe[0] = channel_config; in get_GA_specific_config()
385 pVars->prog_config.front.ele_tag[0] = 0; in get_GA_specific_config()
389 &(pVars->mc_info), in get_GA_specific_config()
[all …]
Dget_adif_header.cpp293 tDec_Int_File *pVars, in get_adif_header() argument
302 BITS *pInputStream = &pVars->inputStream; in get_adif_header()
303 ADIF_Header *pHeader = &pVars->scratch.adif_header; in get_adif_header()
409 pVars->adif_test = 1; in get_adif_header()
413 pVars, in get_adif_header()
423 if ((pVars->prog_config.sampling_rate_idx >= 6) && (pVars->aacPlusEnabled == true) && in get_adif_header()
424 pVars->mc_info.audioObjectType == MP4AUDIO_AAC_LC) in get_adif_header()
426 pVars->mc_info.upsamplingFactor = 2; in get_adif_header()
427 pVars->prog_config.sampling_rate_idx -= 3; in get_adif_header()
428 pVars->mc_info.sbrPresentFlag = 1; in get_adif_header()
[all …]
Dhuffdecode.cpp376 tDec_Int_File *pVars, in huffdecode() argument
410 pMcInfo = &pVars->mc_info; in huffdecode()
419 if (pVars->mc_info.implicit_channeling) /* check done only once */ in huffdecode()
440 pVars->hasmask = 0; in huffdecode()
452 (tMP4AudioObjectType) pVars->mc_info.audioObjectType, in huffdecode()
459 pVars->winmap, in huffdecode()
476 pVars->winmap[pChVars[LEFT]->wnd], in huffdecode()
480 pVars->mask); in huffdecode()
486 pVars->hasmask = hasmask; in huffdecode()
492 pVars->hasmask = 0; in huffdecode()
[all …]
Dget_prog_config.cpp454 tDec_Int_File *pVars, in get_prog_config() argument
463 BITS *pInputStream = &(pVars->inputStream); in get_prog_config()
497 if (!pVars->adif_test && pScratchPCE->sampling_rate_idx != pVars->prog_config.sampling_rate_idx) in get_prog_config()
694 if (pVars->current_program < 0) in get_prog_config()
700 pVars->current_program = tag; in get_prog_config()
705 if (tag == (UInt)pVars->current_program) in get_prog_config()
720 &pVars->prog_config, in get_prog_config()
727 &pVars->mc_info, in get_prog_config()
728 (tMP4AudioObjectType)(pVars->prog_config.profile + 1), in get_prog_config()
729 pVars->prog_config.sampling_rate_idx, in get_prog_config()
[all …]
Dsbr_dec.cpp153 tDec_Int_File *pVars) in sbr_dec() argument
185 scratch_mem = pVars->scratch.scratch_mem; in sbr_dec()
247 if (pVars->ltp_buffer_state) in sbr_dec()
411 if ((pVars->mc_info.psPresentFlag) && (applyProcessing) && in sbr_dec()
424 tDec_Int_Chan *tmpx = &pVars->perChan[1]; in sbr_dec()
543 if (pVars->mc_info.bDownSampledSbr) in sbr_dec()
601 if (pVars->mc_info.bDownSampledSbr) in sbr_dec()
607 pVars->mc_info.bDownSampledSbr); in sbr_dec()
615 pVars->mc_info.bDownSampledSbr); in sbr_dec()
650 if (pVars->mc_info.bDownSampledSbr) in sbr_dec()
[all …]
Dgetics.cpp427 tDec_Int_File *pVars, in getics() argument
469 pVars->mc_info.audioObjectType, in getics()
577 pVars->scratch.huffbook_used); in getics()
623 &pVars->mc_info, in getics()
625 pVars->scratch.tns_decode_coef); in getics()
661 pVars->share.a.quantSpec, in getics()
662 pVars->scratch.tmp_spec, in getics()
Dhuffman.h196 tDec_Int_File *pVars,
208 tDec_Int_File *pVars,
Dget_audio_specific_config.h80 tDec_Int_File * const pVars
/external/opencore/codecs_v2/audio/aac/dec/util/getactualaacconfig/src/
Dpvmp4audiodecoderinitlibrary.cpp245 tDec_Int_File *pVars; in PVMP4AudioDecoderInitLibrary() local
247 pVars = (tDec_Int_File *)pMem; in PVMP4AudioDecoderInitLibrary()
254 pVars, in PVMP4AudioDecoderInitLibrary()
261 pVars->perChan[0].fxpCoef = pVars->fxpCoef[0]; in PVMP4AudioDecoderInitLibrary()
262 pVars->perChan[1].fxpCoef = pVars->fxpCoef[1]; in PVMP4AudioDecoderInitLibrary()
272 pVars->perChan[0].pShareWfxpCoef = (per_chan_share_w_fxpCoef *) in PVMP4AudioDecoderInitLibrary()
273 & (pVars->perChan[0].fxpCoef[1024]); in PVMP4AudioDecoderInitLibrary()
275 pVars->perChan[1].pShareWfxpCoef = (per_chan_share_w_fxpCoef *) in PVMP4AudioDecoderInitLibrary()
276 & (pVars->perChan[1].fxpCoef[1024]); in PVMP4AudioDecoderInitLibrary()
284 pVars->current_program = -1; in PVMP4AudioDecoderInitLibrary()
[all …]
Dget_audio_specific_config.cpp306 Int get_audio_specific_config(tDec_Int_File * const pVars) in get_audio_specific_config() argument
321 pInputStream = &(pVars->inputStream); in get_audio_specific_config()
323 pVars->mc_info.upsamplingFactor = 1; /* default to regular AAC */ in get_audio_specific_config()
340 pVars->mc_info.ExtendedAudioObjectType = audioObjectType; /* default */ in get_audio_specific_config()
345 pVars->prog_config.sampling_rate_idx = temp & 0xf; in get_audio_specific_config()
347 if (pVars->prog_config.sampling_rate_idx > 0xb) in get_audio_specific_config()
353 if (pVars->prog_config.sampling_rate_idx == 0xf) /* escape sequence */ in get_audio_specific_config()
370 if ((channel_config > 2) && (!pVars->aacConfigUtilityEnabled)) in get_audio_specific_config()
384 pVars->mc_info.ExtendedAudioObjectType = MP4AUDIO_SBR; in get_audio_specific_config()
385 pVars->mc_info.sbrPresentFlag = 1; in get_audio_specific_config()
[all …]
Dgetactualaacconfig.cpp178 tDec_Int_File *pVars; /* Helper pointer */ in OSCL_DLL_ENTRY_POINT_DEFAULT() local
226 pVars = (tDec_Int_File *)pMem; in OSCL_DLL_ENTRY_POINT_DEFAULT()
229 pMC_Info = &pVars->mc_info; in OSCL_DLL_ENTRY_POINT_DEFAULT()
236 pVars->inputStream.pBuffer = iAACDecExt->pInputBuffer; in OSCL_DLL_ENTRY_POINT_DEFAULT()
238 pVars->inputStream.availableBits = in OSCL_DLL_ENTRY_POINT_DEFAULT()
245 pVars->inputStream.inputBufferCurrentLength = in OSCL_DLL_ENTRY_POINT_DEFAULT()
248 pVars->inputStream.usedBits = initialUsedBits; in OSCL_DLL_ENTRY_POINT_DEFAULT()
250 pVars->aacPlusEnabled = true; /* Always enable aacplus decoding */ in OSCL_DLL_ENTRY_POINT_DEFAULT()
253 if (initialUsedBits <= pVars->inputStream.availableBits) in OSCL_DLL_ENTRY_POINT_DEFAULT()
259 pVars->aacConfigUtilityEnabled = true; /* set aac utility mode */ in OSCL_DLL_ENTRY_POINT_DEFAULT()
[all …]
Dget_ga_specific_config.cpp302 tDec_Int_File * const pVars, in get_GA_specific_config() argument
358 pVars->mc_info.implicit_channeling = 1; in get_GA_specific_config()
365 status = get_prog_config(pVars, in get_GA_specific_config()
366 &pVars->scratch.scratch_prog_config); in get_GA_specific_config()
370 pVars->prog_config.front.ele_is_cpe[0] = 0; /* default to mono */ in get_GA_specific_config()
371 pVars->mc_info.nch = 1; in get_GA_specific_config()
372 pVars->prog_config.front.ele_tag[0] = 0; in get_GA_specific_config()
384 pVars->prog_config.front.ele_is_cpe[0] = channel_config; in get_GA_specific_config()
385 pVars->prog_config.front.ele_tag[0] = 0; in get_GA_specific_config()
389 &(pVars->mc_info), in get_GA_specific_config()
[all …]
Dget_prog_config.cpp454 tDec_Int_File *pVars, in get_prog_config() argument
463 BITS *pInputStream = &(pVars->inputStream); in get_prog_config()
497 if (!pVars->adif_test && pScratchPCE->sampling_rate_idx != pVars->prog_config.sampling_rate_idx) in get_prog_config()
694 if (pVars->current_program < 0) in get_prog_config()
700 pVars->current_program = tag; in get_prog_config()
705 if (tag == (UInt)pVars->current_program) in get_prog_config()
720 &pVars->prog_config, in get_prog_config()
727 &pVars->mc_info, in get_prog_config()
728 (tMP4AudioObjectType)(pVars->prog_config.profile + 1), in get_prog_config()
729 pVars->prog_config.sampling_rate_idx, in get_prog_config()
[all …]
/external/opencore/codecs_v2/audio/mp3/dec/src/
Dpvmp3_framedecoder.cpp168 tmp3dec_file *pVars = (tmp3dec_file *)pMem; in pvmp3_framedecoder() local
173 pVars->inputStream.pBuffer = pExt->pInputBuffer; in pvmp3_framedecoder()
176 pVars->inputStream.usedBits = pExt->inputBufferUsedLength << 3; in pvmp3_framedecoder()
177 pVars->inputStream.inputBufferCurrentLength = pExt->inputBufferCurrentLength; in pvmp3_framedecoder()
180 errorCode = pvmp3_decode_header(&pVars->inputStream, in pvmp3_framedecoder()
190 pVars->num_channels = (info->mode == MPG_MD_MONO) ? 1 : 2; in pvmp3_framedecoder()
191 pExt->num_channels = pVars->num_channels; in pvmp3_framedecoder()
214 pChVars[ LEFT] = &pVars->perChan[ LEFT]; in pvmp3_framedecoder()
215 pChVars[RIGHT] = &pVars->perChan[RIGHT]; in pvmp3_framedecoder()
225 sent_crc = getUpTo17bits(&pVars->inputStream, 16); in pvmp3_framedecoder()
[all …]
Dpvmp3_seek_synch.cpp136 tmp3dec_file *pVars; in pvmp3_frame_synch() local
138 pVars = (tmp3dec_file *)pMem; in pvmp3_frame_synch()
140 pVars->inputStream.pBuffer = pExt->pInputBuffer; in pvmp3_frame_synch()
141 pVars->inputStream.usedBits = (pExt->inputBufferUsedLength << 3); // in bits in pvmp3_frame_synch()
144 pVars->inputStream.inputBufferCurrentLength = (pExt->inputBufferCurrentLength); // in bits in pvmp3_frame_synch()
146 err = pvmp3_header_sync(&pVars->inputStream); in pvmp3_frame_synch()
153 uint32 temp = getNbits(&pVars->inputStream, 21); in pvmp3_frame_synch()
155 pVars->inputStream.usedBits -= 21 + SYNC_WORD_LNGTH; in pvmp3_frame_synch()
193 if (numBytes > (int32)pVars->inputStream.inputBufferCurrentLength) in pvmp3_frame_synch()
199 else if (numBytes == (int32)pVars->inputStream.inputBufferCurrentLength) in pvmp3_frame_synch()
[all …]
Dpvmp3_huffman_parsing.cpp127 tmp3dec_file *pVars, in pvmp3_huffman_parsing() argument
141 tmp3Bits *pMainData = &pVars->mainDataStream; in pvmp3_huffman_parsing()
185 h = &(pVars->ht[grInfo->table_select[0]]); in pvmp3_huffman_parsing()
200 h = &(pVars->ht[grInfo->table_select[1]]); in pvmp3_huffman_parsing()
215 h = &(pVars->ht[grInfo->table_select[2]]); in pvmp3_huffman_parsing()
232 h = &(pVars->ht[grInfo->table_select[0]]); in pvmp3_huffman_parsing()
246 h = &(pVars->ht[grInfo->table_select[1]]); in pvmp3_huffman_parsing()
262 h = &(pVars->ht[grInfo->table_select[0]]); in pvmp3_huffman_parsing()
281 h = &(pVars->ht[grInfo->count1table_select+32]); in pvmp3_huffman_parsing()
Dpvmp3_get_main_data_size.cpp117 tmp3dec_file *pVars) in pvmp3_get_main_data_size() argument
132 pVars->predicted_frame_size = numBytes; in pvmp3_get_main_data_size()
145 pVars->predicted_frame_size = numBytes; in pvmp3_get_main_data_size()
160 pVars->predicted_frame_size++; in pvmp3_get_main_data_size()

12