HomeSort by relevance Sort by last modified time
    Searched refs:CHANNELS (Results 1 - 15 of 15) sorted by null

  /external/libopus/doc/
trivial_example.c 41 #define CHANNELS 2
54 opus_int16 in[FRAME_SIZE*CHANNELS];
55 opus_int16 out[MAX_FRAME_SIZE*CHANNELS];
71 encoder = opus_encoder_create(SAMPLE_RATE, CHANNELS, APPLICATION, &err);
97 decoder = opus_decoder_create(SAMPLE_RATE, CHANNELS, &err);
114 unsigned char pcm_bytes[MAX_FRAME_SIZE*CHANNELS*2];
118 fread(pcm_bytes, sizeof(short)*CHANNELS, FRAME_SIZE, fin);
122 for (i=0;i<CHANNELS*FRAME_SIZE;i++)
146 for(i=0;i<CHANNELS*frame_size;i++)
152 fwrite(pcm_bytes, sizeof(short), frame_size*CHANNELS, fout)
    [all...]
  /frameworks/av/services/audioflinger/
AudioResamplerFirProcess.h 79 template<int CHANNELS, typename TO>
80 class Accumulator : public Accumulator<CHANNELS-1, TO> // recursive
85 Accumulator<CHANNELS-1, TO>::clear();
90 Accumulator<CHANNELS-1, TO>::acc(coef, data);
94 Accumulator<CHANNELS-1, TO>::volume(out, gain);
177 template <int CHANNELS, int STRIDE, typename TFUNC, typename TC, typename TI, typename TO,
189 COMPILE_TIME_ASSERT_FUNCTION_SCOPE(CHANNELS > 0)
191 if (CHANNELS > 2) {
192 // TO accum[CHANNELS];
193 Accumulator<CHANNELS, TO> accum
    [all...]
AudioResamplerSinc.h 49 template<int CHANNELS>
53 template<int CHANNELS>
57 template<int CHANNELS>
63 template<int CHANNELS>
AudioResamplerDyn.h 80 void resize(int CHANNELS, int halfNumCoefs);
91 template<int CHANNELS>
95 template<int CHANNELS>
103 // in general, mRingFull = mState + mStateSize - halfNumCoefs*CHANNELS.
113 template<int CHANNELS, bool LOCKED, int STRIDE>
AudioResamplerSinc.cpp 293 template<int CHANNELS>
298 const size_t headOffset = c.halfNumCoefs*CHANNELS;
319 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex);
322 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex);
328 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex);
337 for (size_t i=0 ; i<CHANNELS ; i++) {
338 head[i] = in[inputIndex*CHANNELS + i];
343 filterCoefficient<CHANNELS>(&out[outputIndex], phaseFraction, impulse, vRL);
353 read<CHANNELS>(impulse, phaseFraction, in, inputIndex);
368 return outputIndex / CHANNELS;
    [all...]
AudioResamplerFirProcessNeon.h 73 template <int CHANNELS, int STRIDE, bool FIXED>
86 COMPILE_TIME_ASSERT_FUNCTION_SCOPE(CHANNELS == 1 || CHANNELS == 2);
88 sP -= CHANNELS*((STRIDE>>1)-1);
103 if (CHANNELS == 2) {
127 switch (CHANNELS) {
168 if (CHANNELS == 1) {
171 } else if (CHANNELS == 2) {
181 template <int CHANNELS, int STRIDE, bool FIXED>
194 COMPILE_TIME_ASSERT_FUNCTION_SCOPE(CHANNELS == 1 || CHANNELS == 2)
    [all...]
AudioResamplerDyn.cpp 82 void AudioResamplerDyn<TC, TI, TO>::InBuffer::resize(int CHANNELS, int halfNumCoefs)
85 size_t stateCount = halfNumCoefs * CHANNELS * 2 * kStateSizeMultipleOfFilterLength;
90 && mRingFull-mState == (ssize_t) (mStateCount-halfNumCoefs*CHANNELS)) {
101 TI* srcLo = mImpulse - halfNumCoefs*CHANNELS;
102 TI* srcHi = mImpulse + halfNumCoefs*CHANNELS;
119 mImpulse = state + halfNumCoefs*CHANNELS; // actually one sample greater than needed
120 mRingFull = state + mStateCount - halfNumCoefs*CHANNELS;
125 template<int CHANNELS>
129 TI* head = impulse + halfNumCoefs*CHANNELS;
130 for (size_t i=0 ; i<CHANNELS ; i++)
    [all...]
  /external/libopus/tests/
test_opus_padding.c 39 #define CHANNELS 2
49 opus_int16 *out = malloc(FRAMESIZE*CHANNELS*sizeof(*out));
61 decoder = opus_decoder_create(48000, CHANNELS, &error);
  /external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
WebRtcAudioManager.java 28 // fundamental audio parameters like native sample rate and number of channels.
62 private static final int CHANNELS = 1;
85 private int channels; field in class:WebRtcAudioManager
100 sampleRate, channels, hardwareAEC, hardwareAGC, hardwareNS,
139 channels = CHANNELS;
147 getMinOutputFrameSize(sampleRate, channels);
149 inputBufferSize = getMinInputFrameSize(sampleRate, channels);
269 assertTrue(numChannels == CHANNELS);
289 int sampleRate, int channels, boolean hardwareAEC, boolean hardwareAGC
    [all...]
  /cts/tests/camera/src/android/hardware/camera2/cts/
AllocationTest.java 281 * <p>The color channels must be in the following order:
307 final int CHANNELS = 3; // yuv
310 assertTrue("YUV pixel must be at least 3 bytes large", CHANNELS <= yuvData.length);
312 float[] rgb = new float[CHANNELS];
329 for (int i = 0; i < CHANNELS; ++i) {
    [all...]
ImageReaderTest.java 567 final int CHANNELS = 3; // yuv
    [all...]
  /prebuilts/tools/common/m2/repository/com/tunnelvisionlabs/antlr4/4.5/
antlr4-4.5.jar 
  /prebuilts/tools/common/offline-m2/com/tunnelvisionlabs/antlr4/4.5/
antlr4-4.5.jar 
  /prebuilts/tools/common/m2/repository/org/antlr/antlr4/4.5.3/
antlr4-4.5.3.jar 
  /prebuilts/tools/common/offline-m2/org/antlr/antlr4/4.5.3/
antlr4-4.5.3.jar 

Completed in 734 milliseconds