Home
last modified time | relevance | path

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

123

/aosp12/frameworks/wilhelm/src/itf/
H A 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()
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()
146 if (1 >= numChannels) { in IMuteSolo_GetChannelSolo()
149 } else if (numChannels <= chan) { in IMuteSolo_GetChannelSolo()
[all …]
/aosp12/frameworks/av/media/codecs/mp3dec/src/
H A 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()
H A 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()
/aosp12/frameworks/wilhelm/tests/listening/
H A DslesTest_playMuteSolo.cpp107 SLuint8 numChannels = 0; in PlayEventCallback() local
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()
335 fprintf(stdout, "Content has %d channel(s)\n", numChannels); in TestPlayUri()
[all …]
/aosp12/frameworks/wilhelm/tests/sandbox/
H A 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()
H A 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()
H A 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()
/aosp12/frameworks/av/media/libstagefright/rtsp/
H A DAPacketSource.cpp483 int32_t sampleRate, numChannels; in APacketSource() local
485 desc.c_str(), &sampleRate, &numChannels); in APacketSource()
488 mFormat->setInt32(kKeyChannelCount, numChannels); 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()
506 if (sampleRate != 8000 || numChannels != 1) { in APacketSource()
512 int32_t sampleRate, numChannels; in APacketSource() local
514 desc.c_str(), &sampleRate, &numChannels); in APacketSource()
519 if (sampleRate != 16000 || numChannels != 1) { in APacketSource()
[all …]
H A DARawAudioAssembler.cpp136 int32_t sampleRate, numChannels; in MakeFormat() local
138 desc, &sampleRate, &numChannels); in MakeFormat()
141 format->setInt32(kKeyChannelCount, numChannels); in MakeFormat()
/aosp12/frameworks/av/media/libstagefright/codecs/aacdec/
H A DSoftAAC2.cpp304 aacParams->nChannels = mStreamInfo->numChannels; in internalGetParameter()
341 pcmParams->nChannels = mStreamInfo->numChannels; in internalGetParameter()
716 if (mStreamInfo->sampleRate && mStreamInfo->numChannels) { in onQueueFilled()
719 mStreamInfo->numChannels); in onQueueFilled()
808 INT prevNumChannels = mStreamInfo->numChannels; in onQueueFilled()
917 if (!mStreamInfo->sampleRate || !mStreamInfo->numChannels) { in onQueueFilled()
925 (mStreamInfo->numChannels != prevNumChannels)) { in onQueueFilled()
928 prevNumChannels, mStreamInfo->numChannels); in onQueueFilled()
1014 int samplesize = mStreamInfo->numChannels * sizeof(int16_t); in onQueueFilled()
1154 if (avail > mStreamInfo->frameSize * mStreamInfo->numChannels) { in onPortFlushCompleted()
[all …]
/aosp12/frameworks/av/media/codec2/components/mp3/
H A DC2SoftMp3Dec.cpp366 int32_t numChannels = mConfig->num_channels; in process() local
376 calOutSize += kPVMP3DecoderDelay * numChannels * sizeof(int16_t); in process()
431 || mConfig->num_channels != numChannels) { in process()
434 numChannels, mConfig->num_channels); in process()
436 numChannels = mConfig->num_channels; in process()
439 C2StreamChannelCountInfo::output channelCountInfo(0u, numChannels); in process()
471 outOffset = kPVMP3DecoderDelay * numChannels * sizeof(int16_t); in process()
476 outSize + kPVMP3DecoderDelay * numChannels * sizeof(int16_t)) { in process()
478 kPVMP3DecoderDelay * numChannels * sizeof(int16_t))) { in process()
485 outSize += kPVMP3DecoderDelay * numChannels * sizeof(int16_t); in process()
[all …]
/aosp12/frameworks/av/cmds/stagefright/
H A 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()
H A DAudioPlayer.cpp137 int32_t numChannels; in start() local
138 success = format->findInt32(kKeyChannelCount, &numChannels); in start()
144 ALOGI_IF(numChannels > 2, in start()
145 "source format didn't specify channel mask, using (%d) channel order", numChannels); in start()
203 mSampleRate, numChannels, channelMask, audioFormat, in start()
245 audio_channel_out_mask_from_count(numChannels) : channelMask; in start()
/aosp12/packages/services/Car/service/src/com/android/car/audio/
H A DCarAudioDeviceInfo.java180 int numChannels = 1; in getMaxChannels() local
183 return numChannels; in getMaxChannels()
187 if (currentNumChannels > numChannels) { in getMaxChannels()
188 numChannels = currentNumChannels; in getMaxChannels()
191 return numChannels; in getMaxChannels()
/aosp12/frameworks/av/media/codec2/components/aac/
H A DC2SoftAacDec.cpp475 >= mStreamInfo->frameSize * mStreamInfo->numChannels) { in drainRingBuffer()
478 int samplesize __unused = mStreamInfo->numChannels * sizeof(int16_t); in drainRingBuffer()
677 INT prevNumChannels = mStreamInfo->numChannels; in process()
738 (mStreamInfo->frameSize * mStreamInfo->numChannels)) { in process()
774 mStreamInfo->frameSize * mStreamInfo->numChannels)) { in process()
785 mStreamInfo->frameSize * mStreamInfo->numChannels)) { in process()
818 if (!mStreamInfo->sampleRate || !mStreamInfo->numChannels) { in process()
825 (mStreamInfo->numChannels != prevNumChannels)) { in process()
828 prevNumChannels, mStreamInfo->numChannels); in process()
1016 if (avail > mStreamInfo->frameSize * mStreamInfo->numChannels) { in onFlush_sm()
[all …]
/aosp12/frameworks/wilhelm/src/
H A 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 …]
/aosp12/frameworks/av/media/libstagefright/include/media/stagefright/
H A DACodec.h107 static status_t getOMXChannelMapping(size_t numChannels, OMX_AUDIO_CHANNELTYPE map[]);
491 int32_t numChannels, int32_t sampleRate, int32_t bitRate,
496 status_t setupAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate);
498 status_t setupEAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate);
500 status_t setupAC4Codec(bool encoder, int32_t numChannels, int32_t sampleRate);
506 status_t setupG711Codec(bool encoder, int32_t sampleRate, int32_t numChannels);
508 status_t setupOpusCodec(bool encoder, int32_t sampleRate, int32_t numChannels);
510 bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel,
514 OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels,
/aosp12/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DImageUtils.cpp311 …tils::writeBinaryPPM(ImageType image, const char *filename, int width, int height, int numChannels) in writeBinaryPPM() argument
320 if (numChannels == 3) { in writeBinaryPPM()
322 } else if (numChannels == 1) { in writeBinaryPPM()
327 fwrite(image, sizeof(ImageTypeBase), numChannels*width*height, imgout); in writeBinaryPPM()
333 ImageType ImageUtils::allocateImage(int width, int height, int numChannels, short int border) in allocateImage() argument
336 return (ImageType) calloc(width*height*numChannels+overallocation, sizeof(ImageTypeBase)); in allocateImage()
H A DImageUtils.h102 …yPPM(ImageType image, const char *filename, int width, int height, int numChannels = IMAGE_TYPE_NU…
107 static ImageType allocateImage(int width, int height, int numChannels, short int border = 0);
/aosp12/system/bt/embdrv/sbc/decoder/
H A Dsbcdecoder_fuzzer.c5 #define CODEC_DATA_WORDS(numChannels, numBuffers) \ argument
6 (((sizeof(int32_t) * SBC_MAX_BLOCKS * (numChannels)*SBC_MAX_BANDS) + \
/aosp12/frameworks/av/media/extractors/midi/
H A 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()
/aosp12/frameworks/base/media/jni/
H A 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()
/aosp12/frameworks/av/media/tests/benchmark/src/native/decoder/
H A DC2Decoder.cpp39 int32_t sampleRate, numChannels; in createCodec2Component() local
41 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &numChannels); in createCodec2Component()
43 C2StreamChannelCountInfo::output channelCountInfo(0u, numChannels); in createCodec2Component()
/aosp12/packages/apps/Camera2/src/com/android/camera/util/
H A DCaptureDataSerializer.java191 int numChannels = RggbChannelVector.COUNT; in toString() local
193 for (int ch = 0; ch < numChannels; ch++) { in toString()
213 if (ch < numChannels - 1) { in toString()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
H A DChannelHelper.java310 private static String toString(WifiNative.ChannelSettings[] channels, int numChannels) { in toString() argument
317 for (int c = 0; c < numChannels; c++) { in toString()
319 if (c != numChannels - 1) { in toString()

123