/external/webrtc/webrtc/modules/utility/source/ |
D | audio_frame_operations_unittest.cc | 23 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 …]
|
D | audio_frame_operations.cc | 29 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()
|
D | file_recorder_impl.cc | 143 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()
|
D | file_player_impl.cc | 130 unresampledAudioFrame.samples_per_channel_ = lengthInBytes >> 1; in Get10msAudioFromFile() 170 unresampledAudioFrame.samples_per_channel_, in Get10msAudioFromFile()
|
D | coder.cc | 86 _encodeTimestamp += static_cast<uint32_t>(audioFrame.samples_per_channel_); in Encode()
|
/external/webrtc/webrtc/modules/include/ |
D | module_common_types.h | 533 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/ |
D | PCMFile.cc | 135 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()
|
D | SpatialAudio.cc | 162 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/ |
D | utility_unittest.cc | 28 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()
|
D | utility.cc | 27 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()
|
D | output_mixer.cc | 549 _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()
|
D | level_indicator.cc | 55 audioFrame.samples_per_channel_*audioFrame.num_channels_); in ComputeLevel()
|
D | channel.cc | 573 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/ |
D | audio_frame_manipulator.cc | 45 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()
|
D | audio_conference_mixer_impl.cc | 301 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/ |
D | activity_metric.cc | 62 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()
|
D | test_utils.cc | 31 frame->samples_per_channel_ * frame->num_channels_; in ApplyGainLinear()
|
/external/webrtc/webrtc/modules/audio_coding/acm2/ |
D | audio_coding_module_impl.cc | 51 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 …]
|
D | acm_receiver_unittest_oldapi.cc | 102 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()
|
D | acm_send_test_oldapi.cc | 44 input_frame_.samples_per_channel_ = input_block_size_samples_; in AcmSendTestOldApi()
|
/external/webrtc/webrtc/modules/audio_processing/test/ |
D | process_test.cc | 128 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 …]
|
D | audio_processing_unittest.cc | 130 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/ |
D | external_media_test.cc | 86 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/ |
D | agc_unittest.cc | 61 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/ |
D | audio_sink.h | 37 audio_frame.samples_per_channel_ * audio_frame.num_channels_); in WriteAudioFrame()
|