Home
last modified time | relevance | path

Searched refs:pcmParams (Results 1 – 15 of 15) sorted by relevance

/frameworks/av/media/libstagefright/codecs/raw/
DSoftRaw.cpp127 OMX_AUDIO_PARAM_PCMMODETYPE *pcmParams = in internalGetParameter() local
130 if (!isValidOMXParam(pcmParams)) { in internalGetParameter()
134 if (pcmParams->nPortIndex != 0 && pcmParams->nPortIndex != 1) { in internalGetParameter()
138 pcmParams->eNumData = (OMX_NUMERICALDATATYPE)mNumericalData; in internalGetParameter()
139 pcmParams->eEndian = OMX_EndianBig; in internalGetParameter()
140 pcmParams->bInterleaved = OMX_TRUE; in internalGetParameter()
141 pcmParams->nBitPerSample = mBitsPerSample; in internalGetParameter()
142 pcmParams->ePCMMode = OMX_AUDIO_PCMModeLinear; in internalGetParameter()
143 pcmParams->eChannelMapping[0] = OMX_AUDIO_ChannelLF; in internalGetParameter()
144 pcmParams->eChannelMapping[1] = OMX_AUDIO_ChannelRF; in internalGetParameter()
[all …]
/frameworks/av/media/libstagefright/codecs/flac/dec/
DSoftFlacDecoder.cpp185 OMX_AUDIO_PARAM_PCMMODETYPE *pcmParams = in internalGetParameter() local
188 if (!isValidOMXParam(pcmParams)) { in internalGetParameter()
193 if (pcmParams->nPortIndex != 1) { in internalGetParameter()
198 pcmParams->eNumData = mNumericalData; in internalGetParameter()
199 pcmParams->eEndian = OMX_EndianBig; in internalGetParameter()
200 pcmParams->bInterleaved = OMX_TRUE; in internalGetParameter()
201 pcmParams->nBitPerSample = mBitsPerSample; in internalGetParameter()
202 pcmParams->ePCMMode = OMX_AUDIO_PCMModeLinear; in internalGetParameter()
203 pcmParams->eChannelMapping[0] = OMX_AUDIO_ChannelLF; in internalGetParameter()
204 pcmParams->eChannelMapping[1] = OMX_AUDIO_ChannelRF; in internalGetParameter()
[all …]
/frameworks/av/media/libstagefright/codecs/g711/dec/
DSoftG711.cpp136 OMX_AUDIO_PARAM_PCMMODETYPE *pcmParams = in internalGetParameter() local
139 if (!isValidOMXParam(pcmParams)) { in internalGetParameter()
143 if (pcmParams->nPortIndex > 1) { in internalGetParameter()
147 pcmParams->eNumData = OMX_NumericalDataSigned; in internalGetParameter()
148 pcmParams->eEndian = OMX_EndianBig; in internalGetParameter()
149 pcmParams->bInterleaved = OMX_TRUE; in internalGetParameter()
150 pcmParams->nBitPerSample = 16; in internalGetParameter()
151 if (pcmParams->nPortIndex == 0) { in internalGetParameter()
153 pcmParams->ePCMMode = mIsMLaw ? OMX_AUDIO_PCMModeMULaw in internalGetParameter()
157 pcmParams->ePCMMode = OMX_AUDIO_PCMModeLinear; in internalGetParameter()
[all …]
/frameworks/av/media/libstagefright/codecs/gsm/dec/
DSoftGSM.cpp134 OMX_AUDIO_PARAM_PCMMODETYPE *pcmParams = in internalGetParameter() local
137 if (!isValidOMXParam(pcmParams)) { in internalGetParameter()
141 if (pcmParams->nPortIndex > 1) { in internalGetParameter()
145 pcmParams->eNumData = OMX_NumericalDataSigned; in internalGetParameter()
146 pcmParams->eEndian = OMX_EndianBig; in internalGetParameter()
147 pcmParams->bInterleaved = OMX_TRUE; in internalGetParameter()
148 pcmParams->nBitPerSample = 16; in internalGetParameter()
149 pcmParams->ePCMMode = OMX_AUDIO_PCMModeLinear; in internalGetParameter()
150 pcmParams->eChannelMapping[0] = OMX_AUDIO_ChannelLF; in internalGetParameter()
151 pcmParams->eChannelMapping[1] = OMX_AUDIO_ChannelRF; in internalGetParameter()
[all …]
/frameworks/av/media/libstagefright/codecs/flac/enc/
DSoftFlacEncoder.cpp187 OMX_AUDIO_PARAM_PCMMODETYPE *pcmParams = in internalGetParameter() local
190 if (!isValidOMXParam(pcmParams)) { in internalGetParameter()
194 if (pcmParams->nPortIndex != 0) { in internalGetParameter()
198 pcmParams->eNumData = mNumericalData; in internalGetParameter()
199 pcmParams->eEndian = OMX_EndianBig; in internalGetParameter()
200 pcmParams->bInterleaved = OMX_TRUE; in internalGetParameter()
201 pcmParams->nBitPerSample = mBitsPerSample; in internalGetParameter()
202 pcmParams->ePCMMode = OMX_AUDIO_PCMModeLinear; in internalGetParameter()
203 pcmParams->eChannelMapping[0] = OMX_AUDIO_ChannelLF; in internalGetParameter()
204 pcmParams->eChannelMapping[1] = OMX_AUDIO_ChannelRF; in internalGetParameter()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/
DSoftAMRNBEncoder.cpp166 OMX_AUDIO_PARAM_PCMMODETYPE *pcmParams = in internalGetParameter() local
169 if (!isValidOMXParam(pcmParams)) { in internalGetParameter()
173 if (pcmParams->nPortIndex != 0) { in internalGetParameter()
177 pcmParams->eNumData = OMX_NumericalDataSigned; in internalGetParameter()
178 pcmParams->eEndian = OMX_EndianBig; in internalGetParameter()
179 pcmParams->bInterleaved = OMX_TRUE; in internalGetParameter()
180 pcmParams->nBitPerSample = 16; in internalGetParameter()
181 pcmParams->ePCMMode = OMX_AUDIO_PCMModeLinear; in internalGetParameter()
182 pcmParams->eChannelMapping[0] = OMX_AUDIO_ChannelCF; in internalGetParameter()
184 pcmParams->nChannels = 1; in internalGetParameter()
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/
DSoftMP3.cpp163 OMX_AUDIO_PARAM_PCMMODETYPE *pcmParams = in internalGetParameter() local
166 if (!isValidOMXParam(pcmParams)) { in internalGetParameter()
170 if (pcmParams->nPortIndex > 1) { in internalGetParameter()
174 pcmParams->eNumData = OMX_NumericalDataSigned; in internalGetParameter()
175 pcmParams->eEndian = OMX_EndianBig; in internalGetParameter()
176 pcmParams->bInterleaved = OMX_TRUE; in internalGetParameter()
177 pcmParams->nBitPerSample = 16; in internalGetParameter()
178 pcmParams->ePCMMode = OMX_AUDIO_PCMModeLinear; in internalGetParameter()
179 pcmParams->eChannelMapping[0] = OMX_AUDIO_ChannelLF; in internalGetParameter()
180 pcmParams->eChannelMapping[1] = OMX_AUDIO_ChannelRF; in internalGetParameter()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/
DSoftAMRWBEncoder.cpp204 OMX_AUDIO_PARAM_PCMMODETYPE *pcmParams = in internalGetParameter() local
207 if (!isValidOMXParam(pcmParams)) { in internalGetParameter()
211 if (pcmParams->nPortIndex != 0) { in internalGetParameter()
215 pcmParams->eNumData = OMX_NumericalDataSigned; in internalGetParameter()
216 pcmParams->eEndian = OMX_EndianBig; in internalGetParameter()
217 pcmParams->bInterleaved = OMX_TRUE; in internalGetParameter()
218 pcmParams->nBitPerSample = 16; in internalGetParameter()
219 pcmParams->ePCMMode = OMX_AUDIO_PCMModeLinear; in internalGetParameter()
220 pcmParams->eChannelMapping[0] = OMX_AUDIO_ChannelCF; in internalGetParameter()
222 pcmParams->nChannels = 1; in internalGetParameter()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/
DSoftAMR.cpp202 OMX_AUDIO_PARAM_PCMMODETYPE *pcmParams = in internalGetParameter() local
205 if (!isValidOMXParam(pcmParams)) { in internalGetParameter()
209 if (pcmParams->nPortIndex != 1) { in internalGetParameter()
213 pcmParams->nChannels = 1; in internalGetParameter()
214 pcmParams->eNumData = OMX_NumericalDataSigned; in internalGetParameter()
215 pcmParams->eEndian = OMX_EndianBig; in internalGetParameter()
216 pcmParams->bInterleaved = OMX_TRUE; in internalGetParameter()
217 pcmParams->nBitPerSample = 16; in internalGetParameter()
219 pcmParams->nSamplingRate = in internalGetParameter()
222 pcmParams->ePCMMode = OMX_AUDIO_PCMModeLinear; in internalGetParameter()
[all …]
/frameworks/av/media/libstagefright/codecs/aacenc/
DSoftAACEncoder2.cpp221 OMX_AUDIO_PARAM_PCMMODETYPE *pcmParams = in internalGetParameter() local
224 if (!isValidOMXParam(pcmParams)) { in internalGetParameter()
228 if (pcmParams->nPortIndex != 0) { in internalGetParameter()
232 pcmParams->eNumData = OMX_NumericalDataSigned; in internalGetParameter()
233 pcmParams->eEndian = OMX_EndianBig; in internalGetParameter()
234 pcmParams->bInterleaved = OMX_TRUE; in internalGetParameter()
235 pcmParams->nBitPerSample = 16; in internalGetParameter()
236 pcmParams->ePCMMode = OMX_AUDIO_PCMModeLinear; in internalGetParameter()
237 pcmParams->eChannelMapping[0] = OMX_AUDIO_ChannelLF; in internalGetParameter()
238 pcmParams->eChannelMapping[1] = OMX_AUDIO_ChannelRF; in internalGetParameter()
[all …]
/frameworks/av/media/libstagefright/codecs/vorbis/dec/
DSoftVorbis.cpp192 OMX_AUDIO_PARAM_PCMMODETYPE *pcmParams = in internalGetParameter() local
195 if (!isValidOMXParam(pcmParams)) { in internalGetParameter()
199 if (pcmParams->nPortIndex != 1) { in internalGetParameter()
203 pcmParams->eNumData = OMX_NumericalDataSigned; in internalGetParameter()
204 pcmParams->eEndian = OMX_EndianBig; in internalGetParameter()
205 pcmParams->bInterleaved = OMX_TRUE; in internalGetParameter()
206 pcmParams->nBitPerSample = 16; in internalGetParameter()
207 pcmParams->ePCMMode = OMX_AUDIO_PCMModeLinear; in internalGetParameter()
208 pcmParams->eChannelMapping[0] = OMX_AUDIO_ChannelLF; in internalGetParameter()
209 pcmParams->eChannelMapping[1] = OMX_AUDIO_ChannelRF; in internalGetParameter()
[all …]
/frameworks/av/media/libstagefright/codecs/opus/dec/
DSoftOpus.cpp186 OMX_AUDIO_PARAM_PCMMODETYPE *pcmParams = in internalGetParameter() local
189 if (!isValidOMXParam(pcmParams)) { in internalGetParameter()
193 if (pcmParams->nPortIndex != 1) { in internalGetParameter()
197 pcmParams->eNumData = OMX_NumericalDataSigned; in internalGetParameter()
198 pcmParams->eEndian = OMX_EndianBig; in internalGetParameter()
199 pcmParams->bInterleaved = OMX_TRUE; in internalGetParameter()
200 pcmParams->nBitPerSample = 16; in internalGetParameter()
201 pcmParams->ePCMMode = OMX_AUDIO_PCMModeLinear; in internalGetParameter()
202 pcmParams->eChannelMapping[0] = OMX_AUDIO_ChannelLF; in internalGetParameter()
203 pcmParams->eChannelMapping[1] = OMX_AUDIO_ChannelRF; in internalGetParameter()
[all …]
/frameworks/av/media/libstagefright/codecs/aacdec/
DSoftAAC2.cpp298 OMX_AUDIO_PARAM_PCMMODETYPE *pcmParams = in internalGetParameter() local
301 if (!isValidOMXParam(pcmParams)) { in internalGetParameter()
305 if (pcmParams->nPortIndex != 1) { in internalGetParameter()
309 pcmParams->eNumData = OMX_NumericalDataSigned; in internalGetParameter()
310 pcmParams->eEndian = OMX_EndianBig; in internalGetParameter()
311 pcmParams->bInterleaved = OMX_TRUE; in internalGetParameter()
312 pcmParams->nBitPerSample = 16; in internalGetParameter()
313 pcmParams->ePCMMode = OMX_AUDIO_PCMModeLinear; in internalGetParameter()
314 pcmParams->eChannelMapping[0] = OMX_AUDIO_ChannelLF; in internalGetParameter()
315 pcmParams->eChannelMapping[1] = OMX_AUDIO_ChannelRF; in internalGetParameter()
[all …]
/frameworks/av/media/libstagefright/codecs/xaacdec/
DSoftXAAC.cpp326 OMX_AUDIO_PARAM_PCMMODETYPE* pcmParams = (OMX_AUDIO_PARAM_PCMMODETYPE*)params; in internalGetParameter() local
328 if (!isValidOMXParam(pcmParams)) { in internalGetParameter()
332 if (pcmParams->nPortIndex != 1) { in internalGetParameter()
336 pcmParams->eNumData = OMX_NumericalDataSigned; in internalGetParameter()
337 pcmParams->eEndian = OMX_EndianBig; in internalGetParameter()
338 pcmParams->bInterleaved = OMX_TRUE; in internalGetParameter()
339 pcmParams->nBitPerSample = 16; in internalGetParameter()
340 pcmParams->ePCMMode = OMX_AUDIO_PCMModeLinear; in internalGetParameter()
341 pcmParams->eChannelMapping[0] = OMX_AUDIO_ChannelLF; in internalGetParameter()
342 pcmParams->eChannelMapping[1] = OMX_AUDIO_ChannelRF; in internalGetParameter()
[all …]
/frameworks/av/media/libstagefright/
DACodec.cpp3098 OMX_AUDIO_PARAM_PCMMODETYPE pcmParams; in setupRawAudioFormat() local
3099 InitOMXParams(&pcmParams); in setupRawAudioFormat()
3100 pcmParams.nPortIndex = portIndex; in setupRawAudioFormat()
3103 OMX_IndexParamAudioPcm, &pcmParams, sizeof(pcmParams)); in setupRawAudioFormat()
3109 pcmParams.nChannels = numChannels; in setupRawAudioFormat()
3112 pcmParams.eNumData = OMX_NumericalDataUnsigned; in setupRawAudioFormat()
3113 pcmParams.nBitPerSample = 8; in setupRawAudioFormat()
3116 pcmParams.eNumData = OMX_NumericalDataFloat; in setupRawAudioFormat()
3117 pcmParams.nBitPerSample = 32; in setupRawAudioFormat()
3120 pcmParams.eNumData = OMX_NumericalDataSigned; in setupRawAudioFormat()
[all …]