Home
last modified time | relevance | path

Searched refs:samples_per_channel (Results 1 – 25 of 37) sorted by relevance

12

/external/webrtc/webrtc/modules/audio_coding/neteq/
Dneteq_impl_unittest.cc468 size_t samples_per_channel; in TEST_F() local
474 kMaxOutputSize, output, &samples_per_channel, &num_channels, &type)); in TEST_F()
475 ASSERT_EQ(kMaxOutputSize, samples_per_channel); in TEST_F()
488 EXPECT_EQ(rtp_header.header.timestamp + output[samples_per_channel - 1], in TEST_F()
500 EXPECT_EQ(kPayloadLengthSamples - output[samples_per_channel - 1], in TEST_F()
547 size_t samples_per_channel; in TEST_F() local
553 kMaxOutputSize, output, &samples_per_channel, &num_channels, &type)); in TEST_F()
554 ASSERT_EQ(kMaxOutputSize, samples_per_channel); in TEST_F()
584 kMaxOutputSize, output, &samples_per_channel, &num_channels, &type)); in TEST_F()
585 ASSERT_EQ(kMaxOutputSize, samples_per_channel); in TEST_F()
[all …]
Dneteq_unittest.cc952 size_t samples_per_channel; in TEST_F() local
955 &samples_per_channel, &num_channels, &type)); in TEST_F()
986 size_t samples_per_channel; in TEST_F() local
988 &samples_per_channel, in TEST_F()
1042 size_t samples_per_channel = 0; in CheckBgn() local
1053 samples_per_channel = 0; in CheckBgn()
1060 &samples_per_channel, in CheckBgn()
1064 ASSERT_EQ(expected_samples_per_channel, samples_per_channel); in CheckBgn()
1074 samples_per_channel = 0; in CheckBgn()
1082 &samples_per_channel, in CheckBgn()
[all …]
Dneteq_stereo_unittest.cc216 size_t samples_per_channel; in RunTest() local
220 &samples_per_channel, &num_channels, in RunTest()
223 EXPECT_EQ(output_size_samples_, samples_per_channel); in RunTest()
228 &samples_per_channel, &num_channels, in RunTest()
231 EXPECT_EQ(output_size_samples_, samples_per_channel); in RunTest()
Dneteq_external_decoder_unittest.cc190 size_t samples_per_channel; in GetAndVerifyOutput() local
196 &samples_per_channel, in GetAndVerifyOutput()
201 samples_per_channel); in GetAndVerifyOutput()
204 samples_per_channel = GetOutputAudio(kMaxBlockSize, output_, &output_type); in GetAndVerifyOutput()
206 for (size_t i = 0; i < samples_per_channel; ++i) { in GetAndVerifyOutput()
Dneteq_impl.h109 size_t* samples_per_channel,
222 size_t* samples_per_channel,
/external/webrtc/webrtc/modules/audio_coding/codecs/g722/
Daudio_encoder_g722.cc49 const size_t samples_per_channel = in AudioEncoderG722() local
52 encoders_[i].speech_buffer.reset(new int16_t[samples_per_channel]); in AudioEncoderG722()
53 encoders_[i].encoded_buffer.SetSize(samples_per_channel / 2); in AudioEncoderG722()
118 const size_t samples_per_channel = SamplesPerChannel(); in EncodeInternal() local
122 samples_per_channel, encoders_[i].encoded_buffer.data()); in EncodeInternal()
123 RTC_CHECK_EQ(encoded, samples_per_channel / 2); in EncodeInternal()
129 for (size_t i = 0; i < samples_per_channel / 2; ++i) { in EncodeInternal()
140 info.encoded_bytes = samples_per_channel / 2 * num_channels_; in EncodeInternal()
/external/webrtc/webrtc/audio/
Daudio_sink.h31 size_t samples_per_channel, in Data()
36 samples_per_channel(samples_per_channel), in Data()
42 size_t samples_per_channel; // Number of frames in the buffer. member
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/
Dneteq_external_decoder_test.cc50 size_t samples_per_channel; in GetOutputAudio() local
55 &samples_per_channel, in GetOutputAudio()
60 samples_per_channel); in GetOutputAudio()
62 return samples_per_channel; in GetOutputAudio()
Dneteq_performance_test.cc113 size_t samples_per_channel; in Run() local
114 int error = neteq->GetAudio(kOutDataLen, out_data, &samples_per_channel, in Run()
119 assert(samples_per_channel == static_cast<size_t>(kSampRateHz * 10 / 1000)); in Run()
Dneteq_rtpplay.cc613 size_t samples_per_channel; in main() local
614 int error = neteq->GetAudio(kOutDataLen, out_data, &samples_per_channel, in main()
622 1000 * samples_per_channel / kOutputBlockSizeMs); in main()
627 size_t write_len = samples_per_channel * num_channels; in main()
/external/webrtc/webrtc/modules/utility/source/
Daudio_frame_operations.cc17 size_t samples_per_channel, in MonoToStereo() argument
19 for (size_t i = 0; i < samples_per_channel; i++) { in MonoToStereo()
44 size_t samples_per_channel, in StereoToMono() argument
46 for (size_t i = 0; i < samples_per_channel; i++) { in StereoToMono()
/external/webrtc/webrtc/common_audio/include/
Daudio_util.h89 size_t samples_per_channel, in Deinterleave() argument
95 for (size_t j = 0; j < samples_per_channel; ++j) { in Deinterleave()
107 size_t samples_per_channel, in Interleave() argument
113 for (size_t j = 0; j < samples_per_channel; ++j) { in Interleave()
/external/webrtc/webrtc/modules/utility/include/
Daudio_frame_operations.h29 static void MonoToStereo(const int16_t* src_audio, size_t samples_per_channel,
38 static void StereoToMono(const int16_t* src_audio, size_t samples_per_channel,
/external/webrtc/webrtc/voice_engine/
Dutility.cc36 size_t samples_per_channel, in RemixAndResample() argument
47 AudioFrameOperations::StereoToMono(src_data, samples_per_channel, in RemixAndResample()
62 const size_t src_length = samples_per_channel * audio_ptr_num_channels; in RemixAndResample()
Dutility.h42 size_t samples_per_channel,
Dtransmit_mixer_unittest.cc23 int16_t audio[], size_t samples_per_channel, in Process() argument
/external/webrtc/webrtc/modules/audio_processing/test/
Dprocess_test.cc167 int samples_per_channel = sample_rate_hz / 100; in void_main() local
206 samples_per_channel = sample_rate_hz / 100; in void_main()
618 samples_per_channel = msg.sample_rate() / 100; in void_main()
623 near_frame.samples_per_channel_ = samples_per_channel; in void_main()
628 primary_cb.reset(new ChannelBuffer<float>(samples_per_channel, in void_main()
708 ASSERT_EQ(sizeof(int16_t) * samples_per_channel * in void_main()
801 const size_t samples_per_channel = output_sample_rate / 100; in void_main() local
807 apm->num_output_channels() * samples_per_channel, in void_main()
815 samples_per_channel, in void_main()
857 far_frame.samples_per_channel_ = samples_per_channel; in void_main()
[all …]
Dtest_utils.cc78 size_t samples_per_channel, in WriteFloatData() argument
82 size_t length = num_channels * samples_per_channel; in WriteFloatData()
84 Interleave(data, samples_per_channel, num_channels, buffer.get()); in WriteFloatData()
Daudio_processing_unittest.cc106 size_t samples_per_channel) { in MixStereoToMono() argument
107 for (size_t i = 0; i < samples_per_channel; ++i) in MixStereoToMono()
112 size_t samples_per_channel) { in MixStereoToMono() argument
113 for (size_t i = 0; i < samples_per_channel; ++i) in MixStereoToMono()
117 void CopyLeftToRightChannel(int16_t* stereo, size_t samples_per_channel) { in CopyLeftToRightChannel() argument
118 for (size_t i = 0; i < samples_per_channel; i++) { in CopyLeftToRightChannel()
123 void VerifyChannelsAreEqual(int16_t* stereo, size_t samples_per_channel) { in VerifyChannelsAreEqual() argument
124 for (size_t i = 0; i < samples_per_channel; i++) { in VerifyChannelsAreEqual()
1945 const size_t samples_per_channel = static_cast<size_t>( in TEST_F() local
1952 ChannelBuffer<int16_t> output_cb(samples_per_channel, num_input_channels); in TEST_F()
[all …]
/external/webrtc/webrtc/modules/audio_coding/acm2/
Dacm_receiver.cc215 size_t samples_per_channel; in GetAudio() local
224 &samples_per_channel, in GetAudio()
248 samples_per_channel = static_cast<size_t>(samples_per_channel_int); in GetAudio()
263 samples_per_channel = static_cast<size_t>(samples_per_channel_int); in GetAudio()
270 samples_per_channel * num_channels * sizeof(int16_t)); in GetAudio()
278 audio_frame->samples_per_channel_ = samples_per_channel; in GetAudio()
279 audio_frame->sample_rate_hz_ = static_cast<int>(samples_per_channel * 100); in GetAudio()
/external/webrtc/webrtc/modules/audio_processing/agc/
Dagc_manager_direct.h59 size_t samples_per_channel);
Dagc_manager_direct.cc191 size_t samples_per_channel) { in AnalyzePreProcess() argument
192 size_t length = num_channels * samples_per_channel; in AnalyzePreProcess()
/external/webrtc/webrtc/modules/include/
Dmodule_common_types.h509 size_t samples_per_channel, int sample_rate_hz,
573 size_t samples_per_channel, in UpdateFrame() argument
581 samples_per_channel_ = samples_per_channel; in UpdateFrame()
588 const size_t length = samples_per_channel * num_channels; in UpdateFrame()
/external/webrtc/webrtc/modules/audio_processing/
Daudio_processing_impl.h69 size_t samples_per_channel,
91 size_t samples_per_channel,
/external/webrtc/webrtc/modules/audio_coding/neteq/include/
Dneteq.h174 size_t* samples_per_channel, size_t* num_channels,

12