Home
last modified time | relevance | path

Searched refs:numChannels (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/wilhelm/src/itf/
DIMuteSolo.cpp33 SLuint8 numChannels = ap->mNumChannels; in IMuteSolo_SetChannelMute() local
34 if (1 >= numChannels) { in IMuteSolo_SetChannelMute()
37 } else if (numChannels <= chan) { in IMuteSolo_SetChannelMute()
73 SLuint8 numChannels = ap->mNumChannels; in IMuteSolo_GetChannelMute() local
74 if (1 >= numChannels) { in IMuteSolo_GetChannelMute()
77 } else if (numChannels <= chan) { in IMuteSolo_GetChannelMute()
105 SLuint8 numChannels = ap->mNumChannels; in IMuteSolo_SetChannelSolo() local
106 if (1 >= numChannels) { in IMuteSolo_SetChannelSolo()
109 } else if (numChannels <= chan) { in IMuteSolo_SetChannelSolo()
145 SLuint8 numChannels = ap->mNumChannels; in IMuteSolo_GetChannelSolo() local
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_poly_phase_synthesis.cpp123 int32 numChannels, in pvmp3_poly_phase_synthesis() argument
155 numChannels); in pvmp3_poly_phase_synthesis()
171 ptr_out + (numChannels << 5), in pvmp3_poly_phase_synthesis()
172 numChannels); in pvmp3_poly_phase_synthesis()
174 ptr_out += (numChannels << 6); in pvmp3_poly_phase_synthesis()
Dpvmp3_polyphase_filter_window.cpp117 int32 numChannels) in pvmp3_polyphase_filter_window() argument
198 int32 k = j << (numChannels - 1); in pvmp3_polyphase_filter_window()
200 outPcm[(numChannels<<5) - k] = saturate16(sum2 >> 6); in pvmp3_polyphase_filter_window()
233 outPcm[(SUBBANDS_NUMBER/2)<<(numChannels-1)] = saturate16(sum2 >> 6); in pvmp3_polyphase_filter_window()
Dpvmp3_poly_phase_synthesis.h90 int32 numChannels,
/frameworks/wilhelm/tests/listening/
DslesTest_playMuteSolo.cpp107 SLuint8 numChannels = 0; in PlayEventCallback() local
108 SLresult res = (*muteSolo)->GetNumChannels(muteSolo, &numChannels); ExitOnError(res); in PlayEventCallback()
117 if (numChannels > 1) { // SLMuteSoloItf only works if more than one channel in PlayEventCallback()
137 if (numChannels > 1) { // SLMuteSoloItf only works if more than one channel in PlayEventCallback()
278 SLuint8 numChannels = 123; in TestPlayUri() local
279 result = (*muteSoloItf)->GetNumChannels(muteSoloItf, &numChannels); in TestPlayUri()
281 result, numChannels); in TestPlayUri()
330 numChannels = 123; in TestPlayUri()
331 result = (*muteSoloItf)->GetNumChannels(muteSoloItf, &numChannels); in TestPlayUri()
333 result, numChannels); in TestPlayUri()
[all …]
/frameworks/wilhelm/tests/sandbox/
Dconfigbq.c28 SLuint8 numChannels; member
98 for (format = formats; format->numChannels; ++format) { in main()
100 printf("Channels: %d, sample rate: %u, bits: %u\n", format->numChannels, in main()
109 format_pcm.numChannels = format->numChannels; in main()
150 float seconds = (((i * 8) / (format->bitsPerSample * format->numChannels)) * 1000.0) / in main()
154 if (2 == format->numChannels) { in main()
166 assert(1 == format->numChannels); in main()
Dsrcsink.c44 format_pcm.numChannels = 2; in main()
109 format_pcm.numChannels = 0; in main()
114 format_pcm.numChannels = 3; in main()
119 format_pcm.numChannels = 2; in main()
178 format_pcm.numChannels = 1; in main()
190 format_pcm.numChannels = 2; in main()
Dintbufq.c113 pcm.numChannels = 2; in main()
140 SLuint8 numChannels = 123; in main() local
141 result = (*playerMuteSolo)->GetNumChannels(playerMuteSolo, &numChannels); in main()
142 assert(2 == numChannels); in main()
/frameworks/av/media/libstagefright/rtsp/
DAPacketSource.cpp470 int32_t sampleRate, numChannels; in APacketSource() local
472 desc.c_str(), &sampleRate, &numChannels); in APacketSource()
475 mFormat->setInt32(kKeyChannelCount, numChannels); in APacketSource()
486 int32_t sampleRate, numChannels; in APacketSource() local
488 desc.c_str(), &sampleRate, &numChannels); in APacketSource()
491 mFormat->setInt32(kKeyChannelCount, numChannels); in APacketSource()
493 if (sampleRate != 8000 || numChannels != 1) { in APacketSource()
499 int32_t sampleRate, numChannels; in APacketSource() local
501 desc.c_str(), &sampleRate, &numChannels); in APacketSource()
504 mFormat->setInt32(kKeyChannelCount, numChannels); in APacketSource()
[all …]
DARawAudioAssembler.cpp136 int32_t sampleRate, numChannels; in MakeFormat() local
138 desc, &sampleRate, &numChannels); in MakeFormat()
141 format->setInt32(kKeyChannelCount, numChannels); in MakeFormat()
DASessionDescription.cpp280 const char *desc, int32_t *timescale, int32_t *numChannels) { in ParseFormatDesc() argument
291 *numChannels = 1; in ParseFormatDesc()
299 *numChannels = x; in ParseFormatDesc()
/frameworks/av/media/libstagefright/codecs/aacdec/
DSoftAAC2.cpp288 aacParams->nChannels = mStreamInfo->numChannels; in internalGetParameter()
325 pcmParams->nChannels = mStreamInfo->numChannels; in internalGetParameter()
664 if (mStreamInfo->sampleRate && mStreamInfo->numChannels) { in onQueueFilled()
667 mStreamInfo->numChannels); in onQueueFilled()
756 INT prevNumChannels = mStreamInfo->numChannels; in onQueueFilled()
775 (mStreamInfo->frameSize * mStreamInfo->numChannels)) { in onQueueFilled()
806 mStreamInfo->frameSize * sizeof(int16_t) * mStreamInfo->numChannels; in onQueueFilled()
810 mStreamInfo->frameSize * mStreamInfo->numChannels)) { in onQueueFilled()
821 mStreamInfo->frameSize * mStreamInfo->numChannels)) { in onQueueFilled()
860 if (!mStreamInfo->sampleRate || !mStreamInfo->numChannels) { in onQueueFilled()
[all …]
DDrcPresModeWrap.cpp96 if (mStreamNrOutChan != pStreamInfo->numChannels) { in submitStreamData()
97 mStreamNrOutChan = pStreamInfo->numChannels; in submitStreamData()
/frameworks/av/cmds/stagefright/
DSineSource.cpp13 SineSource::SineSource(int32_t sampleRate, int32_t numChannels) in SineSource() argument
16 mNumChannels(numChannels), in SineSource()
19 CHECK(numChannels == 1 || numChannels == 2); in SineSource()
DAudioPlayer.cpp137 int32_t numChannels, channelMask; in start() local
138 success = format->findInt32(kKeyChannelCount, &numChannels); in start()
143 ALOGI_IF(numChannels > 2, in start()
144 "source format didn't specify channel mask, using (%d) channel order", numChannels); in start()
200 mSampleRate, numChannels, channelMask, audioFormat, in start()
242 audio_channel_out_mask_from_count(numChannels) : channelMask; in start()
/frameworks/av/media/codec2/components/mp3/
DC2SoftMp3Dec.cpp365 int32_t numChannels = mConfig->num_channels; in process() local
375 calOutSize += kPVMP3DecoderDelay * numChannels * sizeof(int16_t); in process()
430 || mConfig->num_channels != numChannels) { in process()
433 numChannels, mConfig->num_channels); in process()
435 numChannels = mConfig->num_channels; in process()
438 C2StreamChannelCountInfo::output channelCountInfo(0u, numChannels); in process()
470 outOffset = kPVMP3DecoderDelay * numChannels * sizeof(int16_t); in process()
475 outSize + kPVMP3DecoderDelay * numChannels * sizeof(int16_t)) { in process()
477 kPVMP3DecoderDelay * numChannels * sizeof(int16_t))) { in process()
484 outSize += kPVMP3DecoderDelay * numChannels * sizeof(int16_t); in process()
[all …]
/frameworks/av/media/codec2/components/aac/
DC2SoftAacDec.cpp431 >= mStreamInfo->frameSize * mStreamInfo->numChannels) { in drainRingBuffer()
434 int samplesize __unused = mStreamInfo->numChannels * sizeof(int16_t); in drainRingBuffer()
438 int numSamples = numFrames * (mStreamInfo->frameSize * mStreamInfo->numChannels); in drainRingBuffer()
633 INT prevNumChannels = mStreamInfo->numChannels; in process()
651 (mStreamInfo->frameSize * mStreamInfo->numChannels)) { in process()
683 mStreamInfo->frameSize * sizeof(int16_t) * mStreamInfo->numChannels; in process()
687 mStreamInfo->frameSize * mStreamInfo->numChannels)) { in process()
698 mStreamInfo->frameSize * mStreamInfo->numChannels)) { in process()
732 if (!mStreamInfo->sampleRate || !mStreamInfo->numChannels) { in process()
739 (mStreamInfo->numChannels != prevNumChannels)) { in process()
[all …]
DDrcPresModeWrap.cpp96 if (mStreamNrOutChan != pStreamInfo->numChannels) { in submitStreamData()
97 mStreamNrOutChan = pStreamInfo->numChannels; in submitStreamData()
/frameworks/wilhelm/src/
Ddata.cpp371 if (pDataFormat->mPCM.numChannels == 0) { in checkDataFormat()
373 } else if (pDataFormat->mPCM.numChannels > SL_ANDROID_SPEAKER_COUNT_MAX) { in checkDataFormat()
377 SL_LOGE("%s: numChannels=%u", name, (unsigned) pDataFormat->mPCM.numChannels); in checkDataFormat()
440 pDataFormat->mPCM.numChannels); in checkDataFormat()
448 ? sles_channel_out_mask_from_count(pDataFormat->mPCM.numChannels) in checkDataFormat()
449 : sles_channel_in_mask_from_count(pDataFormat->mPCM.numChannels); in checkDataFormat()
452 "requested speaker count of %u", pDataFormat->mPCM.numChannels); in checkDataFormat()
459 pDataFormat->mPCM.numChannels); in checkDataFormat()
465 if (count != pDataFormat->mPCM.numChannels) { in checkDataFormat()
468 pDataFormat->mPCM.numChannels, in checkDataFormat()
[all …]
/frameworks/base/media/jni/soundpool/
DSoundPool.cpp515 uint32_t *rate, int *numChannels, audio_format_t *audioFormat, in decode() argument
650 !AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_CHANNEL_COUNT, numChannels)) { in decode()
671 int numChannels; in doLoad() local
678 status = decode(mFd, mOffset, mLength, &sampleRate, &numChannels, &format, in doLoad()
688 mHeap->getBase(), mSize, sampleRate, numChannels); in doLoad()
696 if ((numChannels < 1) || (numChannels > FCC_8)) { in doLoad()
697 ALOGE("Sample channel count (%d) out of range", numChannels); in doLoad()
704 mNumChannels = numChannels; in doLoad()
757 int numChannels = sample->numChannels(); in play() local
764 ? numChannels * audio_bytes_per_sample(format) : 1; in play()
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DACodec.h96 static status_t getOMXChannelMapping(size_t numChannels, OMX_AUDIO_CHANNELTYPE map[]);
473 int32_t numChannels, int32_t sampleRate, int32_t bitRate,
478 status_t setupAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate);
480 status_t setupEAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate);
482 status_t setupAC4Codec(bool encoder, int32_t numChannels, int32_t sampleRate);
488 status_t setupG711Codec(bool encoder, int32_t sampleRate, int32_t numChannels);
491 bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel,
495 OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels,
/frameworks/av/media/extractors/midi/
DMidiExtractor.cpp187 trackMetadata, AMEDIAFORMAT_KEY_CHANNEL_COUNT, mEasConfig->numChannels); in MidiEngine()
216 * mEasConfig->mixBufferSize * mEasConfig->numChannels * NUM_COMBINE_BUFFERS; in allocateBuffers()
266 p += numRendered * mEasConfig->numChannels; in readBuffer()
267 numBytesOutput += numRendered * mEasConfig->numChannels * sizeof(EAS_PCM); in readBuffer()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DChannelHelper.java279 private static String toString(WifiNative.ChannelSettings[] channels, int numChannels) { in toString() argument
286 for (int c = 0; c < numChannels; c++) { in toString()
288 if (c != numChannels - 1) { in toString()
/frameworks/av/media/tests/benchmark/src/native/decoder/
DC2Decoder.cpp37 int32_t sampleRate, numChannels; in createCodec2Component() local
39 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &numChannels); in createCodec2Component()
41 C2StreamChannelCountInfo::output channelCountInfo(0u, numChannels); in createCodec2Component()
/frameworks/base/media/jni/
DJetPlayer.cpp91 audio_channel_out_mask_from_count(pLibConfig->numChannels), in init()
169 new EAS_PCM[pLibConfig->mixBufferSize * pLibConfig->numChannels * MIX_NUM_BUFFERS]; in render()
210 p += count * pLibConfig->numChannels; in render()
211 num_output += count * pLibConfig->numChannels * sizeof(EAS_PCM); in render()

123