/external/chromium_org/third_party/webrtc/modules/audio_processing/ |
D | common.h | 41 ChannelBuffer(int samples_per_channel, int num_channels) in ChannelBuffer() argument 42 : data_(new T[samples_per_channel * num_channels]), in ChannelBuffer() 44 samples_per_channel_(samples_per_channel), in ChannelBuffer() 49 ChannelBuffer(const T* data, int samples_per_channel, int num_channels) in ChannelBuffer() argument 50 : data_(new T[samples_per_channel * num_channels]), in ChannelBuffer() 52 samples_per_channel_(samples_per_channel), in ChannelBuffer() 58 ChannelBuffer(const T* const* channels, int samples_per_channel, in ChannelBuffer() argument 60 : data_(new T[samples_per_channel * num_channels]), in ChannelBuffer() 62 samples_per_channel_(samples_per_channel), in ChannelBuffer() 92 int samples_per_channel() const { return samples_per_channel_; } in samples_per_channel() function
|
D | audio_processing_impl.cc | 174 render_audio_.reset(new AudioBuffer(rev_in_format_.samples_per_channel(), in InitializeLocked() 176 rev_proc_format_.samples_per_channel(), in InitializeLocked() 178 rev_proc_format_.samples_per_channel())); in InitializeLocked() 179 capture_audio_.reset(new AudioBuffer(fwd_in_format_.samples_per_channel(), in InitializeLocked() 181 fwd_proc_format_.samples_per_channel(), in InitializeLocked() 183 fwd_out_format_.samples_per_channel())); in InitializeLocked() 345 int samples_per_channel, in ProcessStream() argument 362 if (samples_per_channel != fwd_in_format_.samples_per_channel()) { in ProcessStream() 371 sizeof(float) * fwd_in_format_.samples_per_channel(); in ProcessStream() 377 capture_audio_->CopyFrom(src, samples_per_channel, input_layout); in ProcessStream() [all …]
|
D | audio_buffer.cc | 55 int samples_per_channel) { in StereoToMono() argument 56 for (int i = 0; i < samples_per_channel; ++i) { in StereoToMono() 62 int samples_per_channel) { in StereoToMono() argument 63 for (int i = 0; i < samples_per_channel; ++i) { in StereoToMono() 78 IFChannelBuffer(int samples_per_channel, int num_channels) in IFChannelBuffer() argument 80 ibuf_(samples_per_channel, num_channels), in IFChannelBuffer() 82 fbuf_(samples_per_channel, num_channels) {} in IFChannelBuffer() 200 int samples_per_channel, in CopyFrom() argument 202 assert(samples_per_channel == input_samples_per_channel_); in CopyFrom() 238 void AudioBuffer::CopyTo(int samples_per_channel, in CopyTo() argument [all …]
|
D | audio_buffer.h | 54 int samples_per_channel() const; 96 int samples_per_channel, 98 void CopyTo(int samples_per_channel,
|
D | audio_processing_impl.h | 56 int samples_per_channel() const { return samples_per_channel_; } in samples_per_channel() function 107 int samples_per_channel, 115 int samples_per_channel,
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/ |
D | neteq_unittest.cc | 826 int samples_per_channel; in TEST_F() local 829 &samples_per_channel, &num_channels, &type)); in TEST_F() 859 int samples_per_channel; in TEST_F() local 861 &samples_per_channel, in TEST_F() 913 int samples_per_channel = 0; in CheckBgn() local 924 samples_per_channel = 0; in CheckBgn() 931 &samples_per_channel, in CheckBgn() 935 ASSERT_EQ(expected_samples_per_channel, samples_per_channel); in CheckBgn() 945 samples_per_channel = 0; in CheckBgn() 953 &samples_per_channel, in CheckBgn() [all …]
|
D | neteq_external_decoder_unittest.cc | 141 int samples_per_channel; in GetOutputAudio() local 146 &samples_per_channel, in GetOutputAudio() 150 EXPECT_EQ(output_size_samples_, samples_per_channel); in GetOutputAudio() 155 &samples_per_channel, in GetOutputAudio() 159 EXPECT_EQ(output_size_samples_, samples_per_channel); in GetOutputAudio() 280 int samples_per_channel; in GetOutputAudio() local 286 &samples_per_channel, in GetOutputAudio() 290 EXPECT_EQ(output_size_samples_, samples_per_channel); in GetOutputAudio()
|
D | neteq_stereo_unittest.cc | 215 int samples_per_channel; in RunTest() local 219 &samples_per_channel, &num_channels, in RunTest() 222 EXPECT_EQ(output_size_samples_, samples_per_channel); in RunTest() 227 &samples_per_channel, &num_channels, in RunTest() 230 EXPECT_EQ(output_size_samples_, samples_per_channel); in RunTest()
|
D | neteq_impl_unittest.cc | 463 int samples_per_channel; in TEST_F() local 469 kMaxOutputSize, output, &samples_per_channel, &num_channels, &type)); in TEST_F() 470 ASSERT_EQ(kMaxOutputSize, samples_per_channel); in TEST_F() 482 EXPECT_EQ(rtp_header.header.timestamp + output[samples_per_channel - 1], in TEST_F() 494 EXPECT_EQ(kPayloadLengthSamples - output[samples_per_channel - 1], in TEST_F()
|
/external/chromium_org/third_party/webrtc/common_audio/include/ |
D | audio_util.h | 64 void Deinterleave(const T* interleaved, int samples_per_channel, in Deinterleave() argument 69 for (int j = 0; j < samples_per_channel; ++j) { in Deinterleave() 80 void Interleave(const T* const* deinterleaved, int samples_per_channel, in Interleave() argument 85 for (int j = 0; j < samples_per_channel; ++j) { in Interleave()
|
/external/chromium_org/third_party/webrtc/modules/utility/source/ |
D | audio_frame_operations.cc | 17 int samples_per_channel, in MonoToStereo() argument 19 for (int i = 0; i < samples_per_channel; i++) { in MonoToStereo() 44 int samples_per_channel, in StereoToMono() argument 46 for (int i = 0; i < samples_per_channel; i++) { in StereoToMono()
|
/external/chromium_org/third_party/webrtc/voice_engine/include/mock/ |
D | fake_voe_external_media.h | 53 int samples_per_channel, int sample_rate_hz, in CallProcess() argument 55 const int length = samples_per_channel * num_channels; in CallProcess() 66 it->second->Process(0, type, audio, samples_per_channel, sample_rate_hz, in CallProcess()
|
/external/webrtc/src/modules/audio_processing/ |
D | audio_buffer.cc | 25 int16_t* out, int samples_per_channel) { in StereoToMono() argument 27 for (int i = 0; i < samples_per_channel; i++) { in StereoToMono() 65 int samples_per_channel) in AudioBuffer() argument 71 samples_per_channel_(samples_per_channel), in AudioBuffer() 72 samples_per_split_channel_(samples_per_channel), in AudioBuffer() 181 int AudioBuffer::samples_per_channel() const { in samples_per_channel() function in webrtc::AudioBuffer
|
D | audio_buffer.h | 25 AudioBuffer(int max_num_channels, int samples_per_channel); 29 int samples_per_channel() const;
|
D | level_estimator_impl.cc | 100 level->ProcessMuted(audio->samples_per_channel()); in ProcessStream() 110 level->Process(mixed_data, audio->samples_per_channel()); in ProcessStream()
|
/external/chromium_org/third_party/webrtc/voice_engine/ |
D | utility.cc | 75 int samples_per_channel, in DownConvertToCodecFormat() argument 83 assert(samples_per_channel <= kMaxMonoDataSizeSamples); in DownConvertToCodecFormat() 95 AudioFrameOperations::StereoToMono(src_data, samples_per_channel, in DownConvertToCodecFormat() 111 const int in_length = samples_per_channel * num_channels; in DownConvertToCodecFormat()
|
D | utility.h | 45 int samples_per_channel,
|
D | transmit_mixer_unittest.cc | 23 int16_t audio[], int samples_per_channel, in Process() argument
|
/external/webrtc/src/modules/audio_processing/test/ |
D | process_test.cc | 162 int samples_per_channel = sample_rate_hz / 100; in void_main() local 199 samples_per_channel = sample_rate_hz / 100; in void_main() 548 samples_per_channel = msg.sample_rate() / 100; in void_main() 550 far_frame._payloadDataLengthInSamples = samples_per_channel; in void_main() 553 near_frame._payloadDataLengthInSamples = samples_per_channel; in void_main() 571 ASSERT_EQ(sizeof(int16_t) * samples_per_channel * in void_main() 603 ASSERT_EQ(sizeof(int16_t) * samples_per_channel * in void_main() 662 size_t size = samples_per_channel * near_frame._audioChannel; in void_main() 704 far_frame._payloadDataLengthInSamples = samples_per_channel; in void_main() 707 near_frame._payloadDataLengthInSamples = samples_per_channel; in void_main() [all …]
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/main/acm2/ |
D | acm_receiver.cc | 346 int samples_per_channel; in GetAudio() local 386 &samples_per_channel, in GetAudio() 406 current_sample_rate_hz_ = samples_per_channel * 100; in GetAudio() 415 samples_per_channel = in GetAudio() 422 if (samples_per_channel < 0) { in GetAudio() 428 memcpy(audio_frame->data_, audio_buffer_, samples_per_channel * in GetAudio() 435 samples_per_channel = in GetAudio() 442 if (samples_per_channel < 0) { in GetAudio() 446 memcpy(audio_frame->data_, audio_buffer_, samples_per_channel * in GetAudio() 452 audio_frame->samples_per_channel_ = samples_per_channel; in GetAudio() [all …]
|
/external/chromium_org/third_party/webrtc/modules/utility/interface/ |
D | audio_frame_operations.h | 29 static void MonoToStereo(const int16_t* src_audio, int samples_per_channel, 38 static void StereoToMono(const int16_t* src_audio, int samples_per_channel,
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/tools/ |
D | neteq_performance_test.cc | 111 int samples_per_channel; in Run() local 112 int error = neteq->GetAudio(kOutDataLen, out_data, &samples_per_channel, in Run() 117 assert(samples_per_channel == kSampRateHz * 10 / 1000); in Run()
|
/external/chromium_org/third_party/webrtc/modules/audio_processing/test/ |
D | process_test.cc | 165 int samples_per_channel = sample_rate_hz / 100; in void_main() local 203 samples_per_channel = sample_rate_hz / 100; in void_main() 612 samples_per_channel = msg.sample_rate() / 100; in void_main() 617 near_frame.samples_per_channel_ = samples_per_channel; in void_main() 622 primary_cb.reset(new ChannelBuffer<float>(samples_per_channel, in void_main() 699 ASSERT_EQ(sizeof(int16_t) * samples_per_channel * in void_main() 789 const size_t samples_per_channel = output_sample_rate / 100; in void_main() local 795 apm->num_output_channels() * samples_per_channel, in void_main() 803 samples_per_channel, in void_main() 845 far_frame.samples_per_channel_ = samples_per_channel; in void_main() [all …]
|
D | test_utils.h | 63 size_t samples_per_channel, in WriteFloatData() argument 67 size_t length = num_channels * samples_per_channel; in WriteFloatData() 69 Interleave(data, samples_per_channel, num_channels, buffer.get()); in WriteFloatData()
|
D | audio_processing_unittest.cc | 63 ChannelBuffer<int16_t> cb_int(cb->samples_per_channel(), in ConvertToFloat() 66 cb->samples_per_channel(), in ConvertToFloat() 70 cb->samples_per_channel() * cb->num_channels(), in ConvertToFloat() 98 int samples_per_channel) { in MixStereoToMono() argument 99 for (int i = 0; i < samples_per_channel; ++i) { in MixStereoToMono() 105 int samples_per_channel) { in MixStereoToMono() argument 106 for (int i = 0; i < samples_per_channel; i++) in MixStereoToMono() 110 void CopyLeftToRightChannel(int16_t* stereo, int samples_per_channel) { in CopyLeftToRightChannel() argument 111 for (int i = 0; i < samples_per_channel; i++) { in CopyLeftToRightChannel() 116 void VerifyChannelsAreEqual(int16_t* stereo, int samples_per_channel) { in VerifyChannelsAreEqual() argument [all …]
|