/frameworks/av/media/libaaudio/tests/ |
D | test_open_params.cpp | 43 int32_t channelCount, in testOpenOptions() argument 61 direction, channelCount, sampleRate, format); in testOpenOptions() 69 AAudioStreamBuilder_setChannelCount(aaudioBuilder, channelCount); in testOpenOptions() 94 if (channelCount != AAUDIO_UNSPECIFIED) { in testOpenOptions() 95 EXPECT_EQ(channelCount, actualChannelCount); in testOpenOptions() 131 for (int32_t channelCount = 0; channelCount <= 8; channelCount++) { in TEST() local 132 testOpenOptions(direction, channelCount, in TEST()
|
/frameworks/av/media/libaaudio/src/flowgraph/ |
D | SourceFloat.cpp | 24 SourceFloat::SourceFloat(int32_t channelCount) in SourceFloat() argument 25 : AudioSource(channelCount) { in SourceFloat() 31 int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local 35 int32_t numSamples = framesToProcess * channelCount; in onProcess() 38 const float *floatData = &floatBase[mFrameIndex * channelCount]; in onProcess()
|
D | RampLinear.cpp | 28 RampLinear::RampLinear(int32_t channelCount) in RampLinear() argument 29 : input(*this, channelCount) in RampLinear() 30 , output(*this, channelCount) { in RampLinear() 50 int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local 70 for (int ch = 0; ch < channelCount; ch++) { in onProcess() 79 int32_t samplesLeft = framesLeft * channelCount; in onProcess()
|
D | SourceI16.cpp | 29 SourceI16::SourceI16(int32_t channelCount) in SourceI16() argument 30 : AudioSource(channelCount) { in SourceI16() 35 int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local 39 int32_t numSamples = framesToProcess * channelCount; in onProcess() 42 const int16_t *shortData = &shortBase[mFrameIndex * channelCount]; in onProcess()
|
D | SourceI24.cpp | 31 SourceI24::SourceI24(int32_t channelCount) in SourceI24() argument 32 : AudioSource(channelCount) { in SourceI24() 37 int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local 41 int32_t numSamples = framesToProcess * channelCount; in onProcess() 44 const uint8_t *byteData = &byteBase[mFrameIndex * channelCount * kBytesPerI24Packed]; in onProcess()
|
D | SinkFloat.cpp | 24 SinkFloat::SinkFloat(int32_t channelCount) in SinkFloat() argument 25 : AudioSink(channelCount) { in SinkFloat() 30 int32_t channelCount = input.getSamplesPerFrame(); in read() local 40 int32_t numSamples = framesRead * channelCount; in read()
|
D | MonoToMultiConverter.cpp | 24 MonoToMultiConverter::MonoToMultiConverter(int32_t channelCount) in MonoToMultiConverter() argument 26 , output(*this, channelCount) { in MonoToMultiConverter() 36 int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local 41 for (int channel = 0; channel < channelCount; channel++) { in onProcess()
|
D | SinkI16.cpp | 29 SinkI16::SinkI16(int32_t channelCount) in SinkI16() argument 30 : AudioSink(channelCount) {} in SinkI16() 34 const int32_t channelCount = input.getSamplesPerFrame(); in read() local 44 int32_t numSamples = framesRead * channelCount; in read()
|
D | SinkI24.cpp | 30 SinkI24::SinkI24(int32_t channelCount) in SinkI24() argument 31 : AudioSink(channelCount) {} in SinkI24() 35 const int32_t channelCount = input.getSamplesPerFrame(); in read() local 45 int32_t numSamples = framesRead * channelCount; in read()
|
D | ClipToRange.cpp | 24 ClipToRange::ClipToRange(int32_t channelCount) in ClipToRange() argument 25 : input(*this, channelCount) in ClipToRange() 26 , output(*this, channelCount) { in ClipToRange()
|
D | AudioProcessorBase.h | 238 explicit AudioSource(int32_t channelCount) in AudioSource() argument 239 : output(*this, channelCount) { in AudioSource() 261 explicit AudioSink(int32_t channelCount) in AudioSink() argument 262 : input(*this, channelCount) { in AudioSink()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
D | AudioSample.java | 22 public final int channelCount; field in AudioSample 25 public AudioSample(int sampleRate, int channelCount, byte[] bytes) { in AudioSample() argument 27 this.channelCount = channelCount; in AudioSample()
|
/frameworks/base/core/java/android/speech/tts/ |
D | FileSynthesisCallback.java | 102 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument 105 + "," + channelCount + ")"); in start() 114 mDispatcher.dispatchOnBeginSynthesis(sampleRateInHz, audioFormat, channelCount); in start() 133 mChannelCount = channelCount; in start() 204 int channelCount = 0; in done() local 229 channelCount = mChannelCount; in done() 237 makeWavHeader(sampleRateInHz, audioFormat, channelCount, dataLength)); in done() 284 private ByteBuffer makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount, in makeWavHeader() argument 287 int byteRate = sampleRateInHz * sampleSizeInBytes * channelCount; in makeWavHeader() 288 short blockAlign = (short) (sampleSizeInBytes * channelCount); in makeWavHeader() [all …]
|
D | PlaybackSynthesisCallback.java | 125 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument 126 if (DBG) Log.d(TAG, "start(" + sampleRateInHz + "," + audioFormat + "," + channelCount in start() 135 mDispatcher.dispatchOnBeginSynthesis(sampleRateInHz, audioFormat, channelCount); in start() 137 int channelConfig = BlockingAudioTrack.getChannelConfig(channelCount); in start() 141 Log.e(TAG, "Unsupported number of channels :" + channelCount); in start() 158 mAudioParams, sampleRateInHz, audioFormat, channelCount, in start()
|
D | BlockingAudioTrack.java | 79 int audioFormat, int channelCount) { in BlockingAudioTrack() argument 83 mChannelCount = channelCount; in BlockingAudioTrack() 174 static int getChannelConfig(int channelCount) { in getChannelConfig() argument 175 if (channelCount == 1) { in getChannelConfig() 177 } else if (channelCount == 2){ in getChannelConfig()
|
/frameworks/wilhelm/src/android/ |
D | channels.cpp | 31 SLuint32 sles_channel_out_mask_from_count(unsigned channelCount) in sles_channel_out_mask_from_count() argument 35 if (channelCount > FCC_8) { in sles_channel_out_mask_from_count() 38 switch (channelCount) { in sles_channel_out_mask_from_count() 70 SLuint32 sles_channel_in_mask_from_count(unsigned channelCount) { in sles_channel_in_mask_from_count() argument 71 switch (channelCount) { in sles_channel_in_mask_from_count() 77 if (channelCount > AUDIO_CHANNEL_COUNT_MAX) { in sles_channel_in_mask_from_count() 80 SLuint32 bitfield = (1 << channelCount) - 1; in sles_channel_in_mask_from_count()
|
D | AacBqToPcmCbRenderer.cpp | 181 int32_t channelCount; in onPrepare() local 182 CHECK(meta->findInt32(kKeyChannelCount, &channelCount)); in onPrepare() 196 mPcmFormatValues[ANDROID_KEY_INDEX_PCMFORMAT_NUMCHANNELS] = channelCount; in onPrepare() 198 sles_channel_out_mask_from_count(channelCount); in onPrepare() 201 channelCount, sr); in onPrepare()
|
D | android_AudioSfDecoder.cpp | 278 int32_t channelCount; in onPrepare() local 279 bool hasChannelCount = meta->findInt32(kKeyChannelCount, &channelCount); in onPrepare() 334 CHECK(meta->findInt32(kKeyChannelCount, &channelCount)); in onPrepare() 358 mPcmFormatValues[ANDROID_KEY_INDEX_PCMFORMAT_NUMCHANNELS] = channelCount; in onPrepare() 360 sles_channel_out_mask_from_count(channelCount); in onPrepare() 768 int32_t channelCount; in hasNewDecodeParams() local 769 CHECK(meta->findInt32(kKeyChannelCount, &channelCount)); in hasNewDecodeParams() 779 sr, channelCount); in hasNewDecodeParams() 780 mPcmFormatValues[ANDROID_KEY_INDEX_PCMFORMAT_NUMCHANNELS] = channelCount; in hasNewDecodeParams() 783 sles_channel_out_mask_from_count(channelCount); in hasNewDecodeParams()
|
/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
D | DPFrequency.cpp | 377 int channelCount = mChannelBuffers.size(); in processSamples() local 378 if (channelCount < 1) { in processSamples() 384 for (int ch = 0; ch < channelCount; ch++) { in processSamples() 389 for (size_t k = 0; k < samples; k += channelCount) { in processSamples() 390 for (int ch = 0; ch < channelCount; ch++) { in processSamples() 400 for (int ch = 1; ch < channelCount; ch++) { in processSamples() 405 if (available > samples/channelCount) { in processSamples() 406 available = samples/channelCount; in processSamples() 410 size_t fill = samples - (channelCount * available); in processSamples() 417 for (int ch = 0; ch < channelCount; ch++) { in processSamples() [all …]
|
/frameworks/av/media/libaudioprocessing/ |
D | BufferProviders.cpp | 367 ReformatBufferProvider::ReformatBufferProvider(int32_t channelCount, in ReformatBufferProvider() argument 371 channelCount * audio_bytes_per_sample(inputFormat), in ReformatBufferProvider() 372 channelCount * audio_bytes_per_sample(outputFormat), in ReformatBufferProvider() 374 mChannelCount(channelCount), in ReformatBufferProvider() 379 this, channelCount, inputFormat, outputFormat); in ReformatBufferProvider() 387 ClampFloatBufferProvider::ClampFloatBufferProvider(int32_t channelCount, size_t bufferFrameCount) : in ClampFloatBufferProvider() argument 389 channelCount * audio_bytes_per_sample(AUDIO_FORMAT_PCM_FLOAT), in ClampFloatBufferProvider() 390 channelCount * audio_bytes_per_sample(AUDIO_FORMAT_PCM_FLOAT), in ClampFloatBufferProvider() 392 mChannelCount(channelCount) in ClampFloatBufferProvider() 394 ALOGV("ClampFloatBufferProvider(%p)(%u)", this, channelCount); in ClampFloatBufferProvider() [all …]
|
/frameworks/av/media/libeffects/lvm/tests/ |
D | lvmtest.cpp | 635 const int channelCount = plvmConfigParams->nrChannels; in lvmMainProcess() local 637 const int frameSize = channelCount * sizeof(float); // processing size in lvmMainProcess() 640 const int maxChannelCount = std::max(channelCount, ioChannelCount); in lvmMainProcess() 648 const int memAllocChCount = (channelCount == 1 ? 2 : channelCount); in lvmMainProcess() 652 std::vector<float> floatIn(frameLength * channelCount); in lvmMainProcess() 657 if (ioChannelCount != channelCount) { in lvmMainProcess() 658 adjust_channels(in.data(), ioChannelCount, in.data(), channelCount, in lvmMainProcess() 661 memcpy_to_float_from_i16(floatIn.data(), in.data(), frameLength * channelCount); in lvmMainProcess() 666 if (plvmConfigParams->monoMode && channelCount > 1) { in lvmMainProcess() 668 auto *fp = &floatIn[i * channelCount]; in lvmMainProcess() [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | PolicyAudioPort.cpp | 126 uint32_t channelCount = UINT_MAX; in pickChannelMask() local 134 if ((cnlCount < channelCount) && (cnlCount > 0)) { in pickChannelMask() 136 channelCount = cnlCount; in pickChannelMask() 140 uint32_t channelCount = 0; in pickChannelMask() local 155 if ((cnlCount > channelCount) && (cnlCount <= maxCount)) { in pickChannelMask() 157 channelCount = cnlCount; in pickChannelMask()
|
/frameworks/av/media/libaudiohal/impl/ |
D | StreamPowerLog.h | 48 const uint32_t channelCount = popcount(audio_channel_mask_get_bits(channelMask)); in init() local 49 mFrameSize = channelCount * audio_bytes_per_sample(format); in init() 55 channelCount, in init()
|
/frameworks/av/media/libstagefright/ |
D | AudioSource.cpp | 54 uint32_t sampleRate, uint32_t channelCount, uint32_t outSampleRate, in AudioSource() argument 74 sampleRate, outSampleRate, channelCount); in AudioSource() 75 CHECK(channelCount == 1 || channelCount == 2); in AudioSource() 82 audio_channel_in_mask_from_count(channelCount)); in AudioSource() 86 uint32_t frameCount = kMaxBufferSize / sizeof(int16_t) / channelCount; in AudioSource() 96 audio_channel_in_mask_from_count(channelCount), in AudioSource() 207 meta->setInt32(kKeyChannelCount, mRecord->channelCount()); in getFormat() 220 const int32_t nChannels = mRecord->channelCount(); in rampVolume()
|
/frameworks/av/media/libnbaio/ |
D | NBAIO.cpp | 48 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount, in Format_from_SR_C() argument 51 if (sampleRate == 0 || channelCount == 0 || !audio_is_valid_format(format)) { in Format_from_SR_C() 56 ret.mChannelCount = channelCount; in Format_from_SR_C() 59 channelCount * audio_bytes_per_sample(format) : sizeof(uint8_t); in Format_from_SR_C()
|