Home
last modified time | relevance | path

Searched refs:channelCount (Results 1 – 25 of 176) sorted by relevance

12345678

/frameworks/av/media/libaaudio/src/flowgraph/
DManyToMultiConverter.cpp23 ManyToMultiConverter::ManyToMultiConverter(int32_t channelCount) in ManyToMultiConverter() argument
24 : inputs(channelCount) in ManyToMultiConverter()
25 , output(*this, channelCount) { in ManyToMultiConverter()
26 for (int i = 0; i < channelCount; i++) { in ManyToMultiConverter()
32 int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local
34 for (int ch = 0; ch < channelCount; ch++) { in onProcess()
42 outputBuffer += channelCount; // advance to next multichannel frame in onProcess()
DMultiToManyConverter.cpp23 MultiToManyConverter::MultiToManyConverter(int32_t channelCount) in MultiToManyConverter() argument
24 : outputs(channelCount) in MultiToManyConverter()
25 , input(*this, channelCount) { in MultiToManyConverter()
26 for (int i = 0; i < channelCount; i++) { in MultiToManyConverter()
34 int32_t channelCount = input.getSamplesPerFrame(); in onProcess() local
36 for (int ch = 0; ch < channelCount; ch++) { in onProcess()
42 inputBuffer += channelCount; in onProcess()
DMonoBlend.cpp23 MonoBlend::MonoBlend(int32_t channelCount) in MonoBlend() argument
24 : FlowGraphFilter(channelCount) in MonoBlend()
25 , mInvChannelCount(1. / channelCount) in MonoBlend()
30 int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local
36 for (size_t j = 0; j < channelCount; ++j) { in onProcess()
40 for (size_t j = 0; j < channelCount; ++j) { in onProcess()
DSourceFloat.cpp24 SourceFloat::SourceFloat(int32_t channelCount) in SourceFloat() argument
25 : FlowGraphSourceBuffered(channelCount) { in SourceFloat()
30 const int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local
34 const int32_t numSamples = framesToProcess * channelCount; in onProcess()
37 const float *floatData = &floatBase[mFrameIndex * channelCount]; in onProcess()
DSourceI16.cpp29 SourceI16::SourceI16(int32_t channelCount) in SourceI16() argument
30 : FlowGraphSourceBuffered(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()
DSourceI32.cpp29 SourceI32::SourceI32(int32_t channelCount) in SourceI32() argument
30 : FlowGraphSourceBuffered(channelCount) { in SourceI32()
35 const int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local
39 const int32_t numSamples = framesToProcess * channelCount; in onProcess()
42 const int32_t *intData = &intBase[mFrameIndex * channelCount]; in onProcess()
DSourceI8_24.cpp29 SourceI8_24::SourceI8_24(int32_t channelCount) in SourceI8_24() argument
30 : FlowGraphSourceBuffered(channelCount) { in SourceI8_24()
35 const int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local
39 const int32_t numSamples = framesToProcess * channelCount; in onProcess()
42 const int32_t *intData = &intBase[mFrameIndex * channelCount]; in onProcess()
DSourceI24.cpp31 SourceI24::SourceI24(int32_t channelCount) in SourceI24() argument
32 : FlowGraphSourceBuffered(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()
DFlowGraphNode.h350 explicit FlowGraphSource(int32_t channelCount) in FlowGraphSource() argument
351 : output(*this, channelCount) { in FlowGraphSource()
368 explicit FlowGraphSourceBuffered(int32_t channelCount) in FlowGraphSourceBuffered() argument
369 : FlowGraphSource(channelCount) {} in FlowGraphSourceBuffered()
400 explicit FlowGraphSink(int32_t channelCount) in FlowGraphSink() argument
401 : input(*this, channelCount) { in FlowGraphSink()
437 explicit FlowGraphFilter(int32_t channelCount) in FlowGraphFilter() argument
438 : input(*this, channelCount) in FlowGraphFilter()
439 , output(*this, channelCount) { in FlowGraphFilter()
DRampLinear.cpp24 RampLinear::RampLinear(int32_t channelCount) in RampLinear() argument
25 : FlowGraphFilter(channelCount) { in RampLinear()
48 int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local
66 for (int ch = 0; ch < channelCount; ch++) { in onProcess()
75 int32_t samplesLeft = framesLeft * channelCount; in onProcess()
DSinkFloat.cpp24 SinkFloat::SinkFloat(int32_t channelCount) in SinkFloat() argument
25 : FlowGraphSink(channelCount) { in SinkFloat()
30 const int32_t channelCount = input.getSamplesPerFrame(); in read() local
40 int32_t numSamples = framesPulled * channelCount; in read()
DSinkI32.cpp27 SinkI32::SinkI32(int32_t channelCount) in SinkI32() argument
28 : FlowGraphSink(channelCount) {} in SinkI32()
32 const int32_t channelCount = input.getSamplesPerFrame(); in read() local
42 int32_t numSamples = framesRead * channelCount; in read()
DSinkI8_24.cpp27 SinkI8_24::SinkI8_24(int32_t channelCount) in SinkI8_24() argument
28 : FlowGraphSink(channelCount) {} in SinkI8_24()
32 const int32_t channelCount = input.getSamplesPerFrame(); in read() local
42 int32_t numSamples = framesRead * channelCount; in read()
DSinkI16.cpp28 SinkI16::SinkI16(int32_t channelCount) in SinkI16() argument
29 : FlowGraphSink(channelCount) {} in SinkI16()
33 const int32_t channelCount = input.getSamplesPerFrame(); in read() local
43 int32_t numSamples = framesRead * channelCount; in read()
DSampleRateConverter.cpp22 SampleRateConverter::SampleRateConverter(int32_t channelCount, in SampleRateConverter() argument
24 : FlowGraphFilter(channelCount) in SampleRateConverter()
53 int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local
67 outputBuffer += channelCount; in onProcess()
DSinkI24.cpp30 SinkI24::SinkI24(int32_t channelCount) in SinkI24() argument
31 : FlowGraphSink(channelCount) {} in SinkI24()
35 const int32_t channelCount = input.getSamplesPerFrame(); in read() local
45 int32_t numSamples = framesRead * channelCount; in read()
/frameworks/av/media/libeffects/hapticgenerator/
DProcessors.cpp59 Ramp::Ramp(size_t channelCount) : mChannelCount(channelCount) {} in Ramp() argument
87 size_t channelCount) in SlowEnvelope() argument
88 : mLpf(createLPF(cornerFrequency, sampleRate, channelCount)), in SlowEnvelope()
91 mChannelCount(channelCount) {} in SlowEnvelope()
124 size_t channelCount) in Distortion() argument
125 : mLpf(createLPF2(cornerFrequency, sampleRate, channelCount)), in Distortion()
131 mChannelCount(channelCount) {} in Distortion()
235 const size_t channelCount) { in createLPF() argument
237 return std::make_shared<HapticBiquadFilter>(channelCount, coefficient); in createLPF()
242 const size_t channelCount) { in createLPF2() argument
[all …]
DProcessors.h35 explicit Ramp(size_t channelCount);
48 size_t channelCount);
71 float outputGain, size_t channelCount);
111 const size_t channelCount);
116 const size_t channelCount);
121 const size_t channelCount);
126 const size_t channelCount);
132 const size_t channelCount);
/frameworks/av/media/libaaudio/tests/
Dtest_open_params.cpp43 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/libeffects/lvm/tests/
Dreverb_test.cpp340 const int channelCount = revConfigParams.nrChannels; in main() local
343 const int frameSize = (int)channelCount * sizeof(float); in main()
347 const int maxChannelCount = std::max(channelCount, ioChannelCount); in main()
351 std::vector<float> floatIn(frameLength * channelCount); in main()
352 std::vector<float> floatOut(frameLength * channelCount); in main()
357 if (ioChannelCount != channelCount) { in main()
358 adjust_channels(in.data(), ioChannelCount, in.data(), channelCount, sizeof(short), in main()
361 memcpy_to_float_from_i16(floatIn.data(), in.data(), frameLength * channelCount); in main()
366 if (revConfigParams.monoMode && channelCount > 1) { in main()
368 auto* fp = &floatIn[i * channelCount]; in main()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DAudioSample.java22 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/
DFileSynthesisCallback.java103 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument
106 + "," + channelCount + ")"); in start()
115 mDispatcher.dispatchOnBeginSynthesis(sampleRateInHz, audioFormat, channelCount); in start()
134 mChannelCount = channelCount; in start()
205 int channelCount = 0; in done() local
230 channelCount = mChannelCount; in done()
238 makeWavHeader(sampleRateInHz, audioFormat, channelCount, dataLength)); in done()
285 private ByteBuffer makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount, in makeWavHeader() argument
288 int byteRate = sampleRateInHz * sampleSizeInBytes * channelCount; in makeWavHeader()
289 short blockAlign = (short) (sampleSizeInBytes * channelCount); in makeWavHeader()
[all …]
/frameworks/wilhelm/src/android/
Dchannels.cpp31 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()
/frameworks/base/media/jni/soundpool/
DSound.cpp49 uint32_t *rate, int32_t *channelCount, audio_format_t *audioFormat, in decode() argument
181 format.get(), AMEDIAFORMAT_KEY_CHANNEL_COUNT, channelCount)) { in decode()
207 int32_t channelCount; in doLoad() local
210 status = decode(mFd.get(), mOffset, mLength, &sampleRate, &channelCount, &format, in doLoad()
220 } else if (channelCount < 1 || channelCount > FCC_LIMIT) { in doLoad()
221 ALOGE("%s: sample channel count (%d) out of range", __func__, channelCount); in doLoad()
226 __func__, mHeap->getBase(), mSizeInBytes, sampleRate, channelCount); in doLoad()
229 mChannelCount = channelCount; in doLoad()
/frameworks/av/media/libeffects/hapticgenerator/aidl/
DHapticGeneratorContext.cpp240 const size_t channelCount = mParams.mHapticChannelCount; in buildProcessingChain() local
243 mSampleRate, channelCount); in buildProcessingChain()
247 mSampleRate, channelCount); in buildProcessingChain()
251 channelCount); // ramp = half-wave rectifier. in buildProcessingChain()
263 mSampleRate, channelCount); in buildProcessingChain()
267 channelCount); in buildProcessingChain()
272 channelCount); in buildProcessingChain()
276 channelCount); in buildProcessingChain()
280 mParams.mVibratorInfo.resonantFrequencyHz, DEFAULT_BPF_Q, mSampleRate, channelCount); in buildProcessingChain()
292 channelCount); in buildProcessingChain()
[all …]

12345678