Home
last modified time | relevance | path

Searched refs:outputChannels (Results 1 – 25 of 33) sorted by relevance

12

/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/audio/
DChannelMappingAudioProcessor.java31 @Nullable private int[] outputChannels; field in ChannelMappingAudioProcessor
42 public void setChannelMap(@Nullable int[] outputChannels) { in setChannelMap() argument
43 pendingOutputChannels = outputChannels; in setChannelMap()
49 @Nullable int[] outputChannels = pendingOutputChannels; in onConfigure() local
50 if (outputChannels == null) { in onConfigure()
58 boolean active = inputAudioFormat.channelCount != outputChannels.length; in onConfigure()
59 for (int i = 0; i < outputChannels.length; i++) { in onConfigure()
60 int channelIndex = outputChannels[i]; in onConfigure()
67 ? new AudioFormat(inputAudioFormat.sampleRate, outputChannels.length, C.ENCODING_PCM_16BIT) in onConfigure()
73 int[] outputChannels = Assertions.checkNotNull(this.outputChannels); in queueInput() local
[all …]
DForwardingAudioSink.java59 public void configure(Format inputFormat, int specifiedBufferSize, @Nullable int[] outputChannels) in configure() argument
61 sink.configure(inputFormat, specifiedBufferSize, outputChannels); in configure()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/audio/
DChannelMappingAudioProcessor.java31 @Nullable private int[] outputChannels; field in ChannelMappingAudioProcessor
42 public void setChannelMap(@Nullable int[] outputChannels) { in setChannelMap() argument
43 pendingOutputChannels = outputChannels; in setChannelMap()
49 @Nullable int[] outputChannels = pendingOutputChannels; in onConfigure() local
50 if (outputChannels == null) { in onConfigure()
58 boolean active = inputAudioFormat.channelCount != outputChannels.length; in onConfigure()
59 for (int i = 0; i < outputChannels.length; i++) { in onConfigure()
60 int channelIndex = outputChannels[i]; in onConfigure()
67 ? new AudioFormat(inputAudioFormat.sampleRate, outputChannels.length, C.ENCODING_PCM_16BIT) in onConfigure()
73 int[] outputChannels = Assertions.checkNotNull(this.outputChannels); in queueInput() local
[all …]
DForwardingAudioSink.java60 public void configure(Format inputFormat, int specifiedBufferSize, @Nullable int[] outputChannels) in configure() argument
62 sink.configure(inputFormat, specifiedBufferSize, outputChannels); in configure()
DAudioSink.java331 void configure(Format inputFormat, int specifiedBufferSize, @Nullable int[] outputChannels) in configure() argument
/external/armnn/src/backends/reference/workloads/
DConvImpl.cpp102 const unsigned int outputChannels = rOutputShape[channelsIndex]; in Convolve() local
103 const unsigned int depthMultiplier = depthwise ? outputChannels/inputChannels : 1; in Convolve()
117 const TensorShape biasShape{outputChannels}; in Convolve()
122 for (unsigned int cOutput = 0; cOutput < outputChannels; cOutput++) in Convolve()
147 filterIndex = xFilter * outputChannels + cOutput + in Convolve()
148 yFilter * filterWidth * outputChannels; in Convolve()
217 outIdx = batchIdx * outputHeight * outputWidth * outputChannels + in Convolve()
218 yOutput * outputWidth * outputChannels + in Convolve()
219 xOutput * outputChannels + in Convolve()
224 outIdx = batchIdx * outputHeight * outputWidth * outputChannels + in Convolve()
DPad.cpp67 unsigned int outputChannels = 0; in Pad() local
152 outputChannels = outputShape[1]; in Pad()
170 * outputChannels * outputHeight * outputWidth in Pad()
DSpaceToDepth.cpp52 const unsigned int outputChannels = outputShape[dataLayout.GetChannelsIndex()]; in SpaceToDepth() local
63 for (unsigned int outChannelIndex = 0; outChannelIndex < outputChannels; outChannelIndex++) in SpaceToDepth()
/external/armnn/src/backends/backendsCommon/test/layerTests/
DFullyConnectedTestImpl.cpp101 constexpr static unsigned int outputChannels = 2u; in FullyConnectedTest() local
107 armnn::TensorInfo outputTensorInfo({ 1, outputChannels }, ArmnnType); in FullyConnectedTest()
111 armnn::TensorInfo weightsDesc({ outputChannels, inputSize }, ArmnnType); in FullyConnectedTest()
115 …armnn::TensorInfo biasesDesc({ outputChannels }, GetBiasTypeFromWeightsType(weightsDesc.GetDataTyp… in FullyConnectedTest()
183 unsigned int outputChannels = 1; in FullyConnectedLargeTestCommon() local
193 unsigned int outputShape[] = { outputNum, outputChannels }; in FullyConnectedLargeTestCommon()
194 unsigned int weightsShape[] = { inputChannels, outputChannels }; in FullyConnectedLargeTestCommon()
200 unsigned int biasShape[] = { outputChannels }; in FullyConnectedLargeTestCommon()
283 unsigned int outputChannels = 3; in FullyConnectedFloat32Test() local
293 unsigned int outputShape[] = { outputNum, outputChannels }; in FullyConnectedFloat32Test()
[all …]
DNormalizationTestImpl.cpp39 unsigned int outputChannels = inputChannels; in SimpleNormalizationTestImpl() local
43 unsigned int outputShape[] = { outputNum, outputChannels, outputHeight, outputWidth }; in SimpleNormalizationTestImpl()
196 unsigned int outputChannels = inputChannels; in SimpleNormalizationNhwcTestImpl() local
200 unsigned int outputShape[] = { outputNum, outputHeight, outputWidth, outputChannels }; in SimpleNormalizationNhwcTestImpl()
305 constexpr unsigned int outputChannels = inputChannels; in CompareNormalizationTestImpl() local
313 unsigned int outputShape[] = {outputNum, outputChannels, outputHeight, outputWidth}; in CompareNormalizationTestImpl()
402 unsigned int outputChannels = inputChannels; in AcrossChannelNormalizationTestImpl() local
406 unsigned int outputShape[] = { outputNum, outputHeight, outputWidth, outputChannels }; in AcrossChannelNormalizationTestImpl()
DConv2dTestImpl.cpp119 const unsigned int outputChannels = outputInfo.GetShape()[channelsIndex]; in GetBias() local
121 switch (outputChannels) in GetBias()
225 unsigned int outputChannels = armnn::numeric_cast<unsigned int>(originalOutputExpectedShape[1]); in SimpleConvolution2dTestImpl() local
240 ARMNN_ASSERT(!biasEnabled || bias.size() == outputChannels); in SimpleConvolution2dTestImpl()
246 …armnnUtils::GetTensorInfo(2*outputNum, outputChannels, outputHeight, outputWidth, layout, ArmnnTyp… in SimpleConvolution2dTestImpl()
282 originalOutputExpected.data() + outputChannels*outputHeight*outputWidth); in SimpleConvolution2dTestImpl()
288 biasV.assign(bias.data(), bias.data() + outputChannels); in SimpleConvolution2dTestImpl()
407 unsigned int outputChannels = armnn::numeric_cast<unsigned int>(outputExpectedShape[3]); in SimpleConvolution2dNhwcTestImpl() local
415 armnn::TensorInfo outputTensorInfo({outputNum, outputHeight, outputWidth, outputChannels}, in SimpleConvolution2dNhwcTestImpl()
426 …ata.assign(outputExpected.data(), outputExpected.data() + outputHeight*outputWidth*outputChannels); in SimpleConvolution2dNhwcTestImpl()
[all …]
DConstantTestImpl.cpp40 constexpr unsigned int outputChannels = inputChannels; in ConstantTestImpl() local
46 … armnn::TensorInfo outputTensorInfo({ outputBatchSize, outputChannels, outputHeight, outputWidth }, in ConstantTestImpl()
DConv3dTestImpl.cpp37 … const unsigned int outputChannels = outputInfo.GetShape()[dataLayoutIndexed.GetChannelsIndex()]; in GetBiasData() local
39 switch (outputChannels) in GetBiasData()
194 unsigned int outputChannels = armnn::numeric_cast<unsigned int>(outputExpectedShape[4]); in SimpleConvolution3dTestImpl() local
199 ARMNN_ASSERT(!biasEnabled || bias.size() == outputChannels); in SimpleConvolution3dTestImpl()
203 …o outputTensorInfo({outputNum, outputDepth, outputHeight, outputWidth, outputChannels}, ArmnnType); in SimpleConvolution3dTestImpl()
228 outputNum*outputDepth*outputHeight*outputWidth*outputChannels); in SimpleConvolution3dTestImpl()
DActivationTestImpl.cpp43 unsigned int outputChannels = inputChannels; in BoundedReLuTestCommon() local
48 …armnn::TensorInfo outputTensorInfo({ outputBatchSize, outputChannels, outputHeight, outputWidth },… in BoundedReLuTestCommon()
230 constexpr static unsigned int outputChannels = inputChannels; member
241 return armnn::TensorInfo({ outputBatchSize, outputChannels, outputHeight, outputWidth }, in GetOutputTensorInfo()
430 constexpr static unsigned int outputChannels = inputChannels; in SimpleActivationTest() local
434 …armnn::TensorInfo outputTensorInfo({ outputBatchSize, outputChannels, outputHeight, outputWidth },… in SimpleActivationTest()
/external/armnn/src/armnn/optimizations/
DFuseBatchNorm.hpp68 const unsigned int outputChannels = depthwise ? weightsShape[3] : weightsShape[0]; in Run() local
91 for (unsigned int cOut = 0; cOut < outputChannels; ++cOut) in Run()
104 weightsIdx = w * outputChannels + cOut + in Run()
105 h * weightsWidth * outputChannels; in Run()
129 std::vector<T> fusedBiasVector(outputChannels); in Run()
146 for (unsigned int cOut = 0; cOut < outputChannels; ++cOut) in Run()
155 std::vector<T> biasVector(outputChannels, T(0)); in Run()
157 for (unsigned int cOut = 0; cOut < outputChannels; ++cOut) in Run()
163 …ConstTensor fusedBiasTensor(TensorInfo({outputChannels}, ArmnnType, 0.0f, 0, true), fusedBiasVecto… in Run()
/external/armnn/src/backends/backendsCommon/test/
DDepthwiseConvolution2dEndToEndTests.hpp71 unsigned int outputChannels = inputChannels * depthMultiplier; in DepthwiseConvolution2dEndToEnd() local
75 …TensorInfo outputInfo({ outputBatchSize, outputChannels, outputHeight, outputWidth }, ArmnnType, q… in DepthwiseConvolution2dEndToEnd()
76 …TensorInfo weightsInfo({1, kernelHeight, kernelWidth, outputChannels}, ArmnnType, qScale, qOffset,… in DepthwiseConvolution2dEndToEnd()
77 TensorInfo biasesInfo({outputChannels}, ArmnnBType, qScale * qScale, 0, true); in DepthwiseConvolution2dEndToEnd()
DFullyConnectedEndToEndTestImpl.hpp230 unsigned int outputChannels = 3; in FullyConnectedWithDynamicOrConstantInputsEndToEnd() local
234 unsigned int outputShape[] = { outputNum, outputChannels }; in FullyConnectedWithDynamicOrConstantInputsEndToEnd()
235 unsigned int weightsShape[] = { inputChannels, outputChannels }; in FullyConnectedWithDynamicOrConstantInputsEndToEnd()
242 unsigned int biasShape[] = { outputChannels }; in FullyConnectedWithDynamicOrConstantInputsEndToEnd()
351 unsigned int outputChannels = 3; in FullyConnectedErrorChecking() local
355 unsigned int outputShape[] = { outputNum, outputChannels }; in FullyConnectedErrorChecking()
356 unsigned int weightsShape[] = { inputChannels, outputChannels }; in FullyConnectedErrorChecking()
358 unsigned int biasShape[] = { outputChannels }; in FullyConnectedErrorChecking()
DWorkloadDataValidation.cpp106 unsigned int outputChannels = inputChannels; variable
115 unsigned int outputShape[] = { outputNum, outputChannels, outputHeight, outputWidth };
139 unsigned int outputChannels = 3; variable
149 unsigned int outputShape[] = { outputNum, outputChannels, outputHeight, outputWidth };
150 unsigned int weightsShape[] = { 1, 1, inputChannels, outputChannels };
151 unsigned int biasShape[] = { 1, outputChannels, outputHeight, outputWidth };
181 constexpr unsigned int outputChannels = inputChannels; variable
191 unsigned int outputShape[] = {outputNum, outputChannels, outputHeight, outputWidth};
228 constexpr unsigned int outputChannels = inputChannels; variable
237 unsigned int outputShape[] = {outputNum, outputChannels, outputHeight, outputWidth};
[all …]
/external/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioManager.java165 private int outputChannels; field in WebRtcAudioManager
182 nativeCacheAudioParameters(sampleRate, outputChannels, inputChannels, hardwareAEC, hardwareAGC, in WebRtcAudioManager()
223 outputChannels = getStereoOutput() ? 2 : 1; in storeAudioParameters()
236 : getMinOutputFrameSize(sampleRate, outputChannels); in storeAudioParameters()
367 private native void nativeCacheAudioParameters(int sampleRate, int outputChannels, in nativeCacheAudioParameters() argument
/external/armnn/src/armnn/layers/
DDepthwiseConvolution2dLayer.cpp95 unsigned int outputChannels = filterShape[3]; in InferOutputShapes() local
99 … TensorShape{ outputBatchSize, outputHeight, outputWidth, outputChannels } : in InferOutputShapes()
100 … TensorShape{ outputBatchSize, outputChannels, outputHeight, outputWidth }; in InferOutputShapes()
/external/armnn/python/pyarmnn/test/
Dtest_network.py277 outputChannels = 3
281 outputShape = ( outputNum, outputChannels )
282 weightsShape = ( inputChannels, outputChannels )
283 biasShape = ( outputChannels, )
/external/armnn/src/backends/neon/test/
DNeonTimerTest.cpp57 unsigned int outputChannels = inputChannels; variable
63 … armnn::TensorInfo outputTensorInfo({ outputBatchSize, outputChannels, outputHeight, outputWidth },
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DCapturingAudioSink.java40 public void configure(Format inputFormat, int specifiedBufferSize, @Nullable int[] outputChannels) in configure() argument
45 super.configure(inputFormat, specifiedBufferSize, outputChannels); in configure()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DCapturingAudioSink.java40 public void configure(Format inputFormat, int specifiedBufferSize, @Nullable int[] outputChannels) in configure() argument
45 super.configure(inputFormat, specifiedBufferSize, outputChannels); in configure()
/external/armnn/src/armnn/test/
DShapeInferenceTests.cpp400 const unsigned int outputChannels = 2u; variable
403 … { inputChannels, outputChannels }}, // weights
404 … {{ 1, outputChannels }}, // output

12