Home
last modified time | relevance | path

Searched refs:samples_per_channel_ (Results 1 – 25 of 44) sorted by relevance

12

/external/webrtc/webrtc/modules/utility/source/
Daudio_frame_operations_unittest.cc23 frame_.samples_per_channel_ = 320; in AudioFrameOperationsTest()
31 for (size_t i = 0; i < frame->samples_per_channel_ * 2; i += 2) { in SetFrameData()
38 for (size_t i = 0; i < frame->samples_per_channel_; i++) { in SetFrameData()
45 EXPECT_EQ(frame1.samples_per_channel_, in VerifyFramesAreEqual()
46 frame2.samples_per_channel_); in VerifyFramesAreEqual()
48 for (size_t i = 0; i < frame1.samples_per_channel_ * frame1.num_channels_; in VerifyFramesAreEqual()
57 frame_.samples_per_channel_ = AudioFrame::kMaxDataSizeSamples; in TEST_F()
70 stereo_frame.samples_per_channel_ = 320; in TEST_F()
77 frame_.samples_per_channel_, in TEST_F()
95 mono_frame.samples_per_channel_ = 320; in TEST_F()
[all …]
Daudio_frame_operations.cc29 if ((frame->samples_per_channel_ * 2) >= AudioFrame::kMaxDataSizeSamples) { in MonoToStereo()
36 sizeof(int16_t) * frame->samples_per_channel_); in MonoToStereo()
37 MonoToStereo(data_copy, frame->samples_per_channel_, frame->data_); in MonoToStereo()
56 StereoToMono(frame->data_, frame->samples_per_channel_, frame->data_); in StereoToMono()
65 for (size_t i = 0; i < frame->samples_per_channel_ * 2; i += 2) { in SwapStereoChannels()
74 frame.samples_per_channel_ * frame.num_channels_); in Mute()
82 for (size_t i = 0; i < frame.samples_per_channel_; i++) { in Scale()
95 for (size_t i = 0; i < frame.samples_per_channel_ * frame.num_channels_; in ScaleWithSat()
Dfile_recorder_impl.cc143 tempAudioFrame.samples_per_channel_ = 0; in RecordAudioToFile()
150 tempAudioFrame.samples_per_channel_ = in RecordAudioToFile()
151 incomingAudioFrame.samples_per_channel_; in RecordAudioToFile()
153 i < (incomingAudioFrame.samples_per_channel_); i++) in RecordAudioToFile()
168 tempAudioFrame.samples_per_channel_ = in RecordAudioToFile()
169 incomingAudioFrame.samples_per_channel_; in RecordAudioToFile()
171 i < (incomingAudioFrame.samples_per_channel_); i++) in RecordAudioToFile()
182 if(tempAudioFrame.samples_per_channel_ != 0) in RecordAudioToFile()
211 ptrAudioFrame->samples_per_channel_ * in RecordAudioToFile()
Dfile_player_impl.cc130 unresampledAudioFrame.samples_per_channel_ = lengthInBytes >> 1; in Get10msAudioFromFile()
170 unresampledAudioFrame.samples_per_channel_, in Get10msAudioFromFile()
Dcoder.cc86 _encodeTimestamp += static_cast<uint32_t>(audioFrame.samples_per_channel_); in Encode()
/external/webrtc/webrtc/modules/include/
Dmodule_common_types.h533 size_t samples_per_channel_; variable
561 samples_per_channel_ = 0; in Reset()
581 samples_per_channel_ = samples_per_channel; in UpdateFrame()
604 samples_per_channel_ = src.samples_per_channel_; in CopyFrom()
612 const size_t length = samples_per_channel_ * num_channels_; in CopyFrom()
618 memset(data_, 0, samples_per_channel_ * num_channels_ * sizeof(int16_t)); in Mute()
625 for (size_t i = 0; i < samples_per_channel_ * num_channels_; i++) {
647 size_t offset = samples_per_channel_ * num_channels_; in Append()
648 for (size_t i = 0; i < rhs.samples_per_channel_ * rhs.num_channels_; i++) { in Append()
651 samples_per_channel_ += rhs.samples_per_channel_; in Append()
[all …]
/external/webrtc/webrtc/modules/audio_coding/test/
DPCMFile.cc135 audio_frame.samples_per_channel_ = samples_10ms_; in Read10MsData()
150 audio_frame.samples_per_channel_, pcm_file_) != in Write10MsData()
151 static_cast<size_t>(audio_frame.samples_per_channel_)) { in Write10MsData()
155 int16_t* stereo_audio = new int16_t[2 * audio_frame.samples_per_channel_]; in Write10MsData()
156 for (size_t k = 0; k < audio_frame.samples_per_channel_; k++) { in Write10MsData()
161 2 * audio_frame.samples_per_channel_, pcm_file_) != in Write10MsData()
162 static_cast<size_t>(2 * audio_frame.samples_per_channel_)) { in Write10MsData()
169 audio_frame.num_channels_ * audio_frame.samples_per_channel_, in Write10MsData()
172 audio_frame.samples_per_channel_)) { in Write10MsData()
DSpatialAudio.cc162 for (size_t n = 0; n < audioFrame.samples_per_channel_; n++) { in EncodeDecode()
168 for (size_t n = 0; n < audioFrame.samples_per_channel_; n++) { in EncodeDecode()
/external/webrtc/webrtc/voice_engine/
Dutility_unittest.cc28 src_frame_.samples_per_channel_ = src_frame_.sample_rate_hz_ / 100; in UtilityTest()
52 frame->samples_per_channel_ = sample_rate_hz / 100; in SetMonoFrame()
53 for (size_t i = 0; i < frame->samples_per_channel_; i++) { in SetMonoFrame()
70 frame->samples_per_channel_ = sample_rate_hz / 100; in SetStereoFrame()
71 for (size_t i = 0; i < frame->samples_per_channel_; i++) { in SetStereoFrame()
84 EXPECT_EQ(ref_frame.samples_per_channel_, test_frame.samples_per_channel_); in VerifyParams()
99 for (size_t i = 0; i < ref_frame.samples_per_channel_ * in ComputeSNR()
121 i < ref_frame.samples_per_channel_ * ref_frame.num_channels_; i++) { in VerifyFramesAreEqual()
Dutility.cc27 RemixAndResample(src_frame.data_, src_frame.samples_per_channel_, in RemixAndResample()
71 dst_frame->samples_per_channel_ = out_length / audio_ptr_num_channels; in RemixAndResample()
Dlevel_indicator.cc55 audioFrame.samples_per_channel_*audioFrame.num_channels_); in ComputeLevel()
Doutput_mixer.cc549 _audioFrame.samples_per_channel_, in DoOperationsOnCombinedSignal()
599 for (size_t i = 0; i < _audioFrame.samples_per_channel_; i++) in InsertInbandDtmfTone()
605 assert(_audioFrame.samples_per_channel_ == toneSamples); in InsertInbandDtmfTone()
Dchannel.cc573 audioFrame->samples_per_channel_, audioFrame->sample_rate_hz_, in GetAudioFrame()
629 audioFrame->samples_per_channel_, audioFrame->sample_rate_hz_, in GetAudioFrame()
1184 _timeStamp += static_cast<uint32_t>(_audioFrame.samples_per_channel_); in UpdateLocalTimeStamp()
3376 if (_audioFrame.samples_per_channel_ == 0) in PrepareEncodeAndSend()
3403 _audioFrame.samples_per_channel_, in PrepareEncodeAndSend()
3413 _audioFrame.samples_per_channel_ * _audioFrame.num_channels_; in PrepareEncodeAndSend()
3431 if (_audioFrame.samples_per_channel_ == 0) in EncodeAndSend()
3454 _timeStamp += static_cast<uint32_t>(_audioFrame.samples_per_channel_); in EncodeAndSend()
3705 assert(_audioFrame.samples_per_channel_ == fileSamples); in MixOrReplaceAudioWithFile()
3767 if (audioFrame.samples_per_channel_ == fileSamples) in MixAudioWithFile()
[all …]
/external/webrtc/webrtc/modules/audio_conference_mixer/source/
Daudio_frame_manipulator.cc45 for(size_t position = 0; position < audioFrame.samples_per_channel_; in CalculateEnergy()
56 assert(rampSize <= audioFrame.samples_per_channel_); in RampIn()
66 assert(rampSize <= audioFrame.samples_per_channel_); in RampOut()
74 (audioFrame.samples_per_channel_ - rampSize) * in RampOut()
Daudio_conference_mixer_impl.cc301 if(mixedAudio->samples_per_channel_ == 0) { in Process()
303 mixedAudio->samples_per_channel_ = _sampleSize; in Process()
739 if(audioFrame->samples_per_channel_ == 0) { in GetAdditionalAudio()
/external/webrtc/webrtc/tools/agc/
Dactivity_metric.cc62 frame->samples_per_channel_; in DitherSilence()
64 for (size_t n = 0; n < frame->samples_per_channel_; n++) in DitherSilence()
67 for (size_t n = 0; n < frame->samples_per_channel_; n++) in DitherSilence()
99 frame.samples_per_channel_ != in AddAudio()
106 frame.data_, frame.samples_per_channel_, &features); in AddAudio()
109 frame.samples_per_channel_); in AddAudio()
229 frame.samples_per_channel_ = frame.sample_rate_hz_ / 100; in void_main()
231 frame.samples_per_channel_; in void_main()
Dtest_utils.cc31 frame->samples_per_channel_ * frame->num_channels_; in ApplyGainLinear()
/external/webrtc/webrtc/modules/audio_coding/acm2/
Daudio_coding_module_impl.cc51 if (length_out_buff < frame.samples_per_channel_) { in DownMix()
54 for (size_t n = 0; n < frame.samples_per_channel_; ++n) in DownMix()
61 if (length_out_buff < frame.samples_per_channel_) { in UpMix()
64 for (size_t n = frame.samples_per_channel_; n != 0; --n) { in UpMix()
283 if (audio_frame.samples_per_channel_ == 0) { in Add10MsDataInternal()
299 audio_frame.samples_per_channel_) { in Add10MsDataInternal()
352 input_data->length_per_channel = ptr_frame->samples_per_channel_; in Add10MsDataInternal()
390 expected_in_ts_ += static_cast<uint32_t>(in_frame.samples_per_channel_); in PreprocessToAddData()
391 expected_codec_ts_ += static_cast<uint32_t>(in_frame.samples_per_channel_); in PreprocessToAddData()
414 preprocess_frame_.samples_per_channel_ = in_frame.samples_per_channel_; in PreprocessToAddData()
[all …]
Dacm_receiver_unittest_oldapi.cc102 frame.samples_per_channel_ = codec.plfreq / 100; // 10 ms. in InsertOnePacketOfSilence()
104 memset(frame.data_, 0, frame.samples_per_channel_ * frame.num_channels_ * in InsertOnePacketOfSilence()
110 timestamp_ += frame.samples_per_channel_; in InsertOnePacketOfSilence()
Dacm_send_test_oldapi.cc44 input_frame_.samples_per_channel_ = input_block_size_samples_; in AcmSendTestOldApi()
/external/webrtc/webrtc/modules/audio_processing/test/
Dprocess_test.cc128 int num_samples = frame->samples_per_channel_ * frame->num_channels_; in SimulateMic()
620 far_frame.samples_per_channel_ = reverse_sample_rate / 100; in void_main()
623 near_frame.samples_per_channel_ = samples_per_channel; in void_main()
626 far_frame.samples_per_channel_, in void_main()
658 ASSERT_EQ(sizeof(int16_t) * far_frame.samples_per_channel_ * in void_main()
681 far_frame.samples_per_channel_, in void_main()
758 near_frame.samples_per_channel_, in void_main()
857 far_frame.samples_per_channel_ = samples_per_channel; in void_main()
860 near_frame.samples_per_channel_ = samples_per_channel; in void_main()
883 far_frame.samples_per_channel_ = samples_per_channel; in void_main()
[all …]
Daudio_processing_unittest.cc130 for (size_t i = 0; i < frame->samples_per_channel_ * frame->num_channels_; in SetFrameTo()
138 for (size_t i = 0; i < frame->samples_per_channel_ * 2; i += 2) { in SetFrameTo()
145 for (size_t i = 0; i < frame->samples_per_channel_ * frame->num_channels_; in ScaleFrame()
152 if (frame1.samples_per_channel_ != frame2.samples_per_channel_) { in FrameDataAreEqual()
159 frame1.samples_per_channel_ * frame1.num_channels_ * in FrameDataAreEqual()
197 const size_t length = frame.samples_per_channel_ * frame.num_channels_; in MaxAudioFrame()
534 size_t frame_size = frame->samples_per_channel_ * 2; in ReadFrame()
547 frame->samples_per_channel_); in ReadFrame()
587 frame_->samples_per_channel_, in ProcessStreamChooser()
601 revframe_->samples_per_channel_, in AnalyzeReverseStreamChooser()
[all …]
/external/webrtc/webrtc/voice_engine/test/auto_test/standard/
Dexternal_media_test.cc86 EXPECT_GT(frame.samples_per_channel_, 0U); in TEST_F()
104 EXPECT_EQ(static_cast<size_t>(f / 100), frame.samples_per_channel_); in TEST_F()
/external/webrtc/webrtc/modules/audio_processing/agc/
Dagc_unittest.cc61 frame.samples_per_channel_ = frame.sample_rate_hz_ / 100; in RunAgc()
62 const size_t length = frame.samples_per_channel_ * frame.num_channels_; in RunAgc()
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/
Daudio_sink.h37 audio_frame.samples_per_channel_ * audio_frame.num_channels_); in WriteAudioFrame()

12