Home
last modified time | relevance | path

Searched refs:AudioFrame (Results 1 – 25 of 88) sorted by relevance

1234

/external/webrtc/webrtc/modules/utility/source/
Daudio_frame_operations_unittest.cc27 AudioFrame frame_;
30 void SetFrameData(AudioFrame* frame, int16_t left, int16_t right) { in SetFrameData()
37 void SetFrameData(AudioFrame* frame, int16_t data) { in SetFrameData()
43 void VerifyFramesAreEqual(const AudioFrame& frame1, const AudioFrame& frame2) { in VerifyFramesAreEqual()
57 frame_.samples_per_channel_ = AudioFrame::kMaxDataSizeSamples; in TEST_F()
65 AudioFrame temp_frame; in TEST_F()
69 AudioFrame stereo_frame; in TEST_F()
90 AudioFrame temp_frame; in TEST_F()
94 AudioFrame mono_frame; in TEST_F()
112 AudioFrame mono_frame; in TEST_F()
[all …]
Daudio_frame_operations.cc25 int AudioFrameOperations::MonoToStereo(AudioFrame* frame) { in MonoToStereo()
29 if ((frame->samples_per_channel_ * 2) >= AudioFrame::kMaxDataSizeSamples) { in MonoToStereo()
34 int16_t data_copy[AudioFrame::kMaxDataSizeSamples]; in MonoToStereo()
51 int AudioFrameOperations::StereoToMono(AudioFrame* frame) { in StereoToMono()
62 void AudioFrameOperations::SwapStereoChannels(AudioFrame* frame) { in SwapStereoChannels()
72 void AudioFrameOperations::Mute(AudioFrame& frame) { in Mute()
77 int AudioFrameOperations::Scale(float left, float right, AudioFrame& frame) { in Scale()
91 int AudioFrameOperations::ScaleWithSat(float scale, AudioFrame& frame) { in ScaleWithSat()
Dcoder.cc51 int32_t AudioCoder::Decode(AudioFrame& decodedAudio, in Decode()
71 int32_t AudioCoder::PlayoutData(AudioFrame& decodedAudio, in PlayoutData()
77 int32_t AudioCoder::Encode(const AudioFrame& audio, in Encode()
83 AudioFrame audioFrame; in Encode()
91 if(_acm->Add10MsData((AudioFrame&)audioFrame) == -1) in Encode()
Dcoder.h20 class AudioFrame; variable
32 int32_t Decode(AudioFrame& decodedAudio, uint32_t sampFreqHz,
35 int32_t PlayoutData(AudioFrame& decodedAudio, uint16_t& sampFreqHz);
37 int32_t Encode(const AudioFrame& audio, int8_t* encodedData,
/external/webrtc/webrtc/modules/audio_coding/acm2/
Dacm_receiver.cc42 AudioFrame* audio_frame) { in SetAudioFrameActivityAndType()
46 audio_frame->vad_activity_ = AudioFrame::kVadActive; in SetAudioFrameActivityAndType()
47 audio_frame->speech_type_ = AudioFrame::kNormalSpeech; in SetAudioFrameActivityAndType()
51 audio_frame->vad_activity_ = AudioFrame::kVadPassive; in SetAudioFrameActivityAndType()
52 audio_frame->speech_type_ = AudioFrame::kNormalSpeech; in SetAudioFrameActivityAndType()
56 audio_frame->vad_activity_ = AudioFrame::kVadPassive; in SetAudioFrameActivityAndType()
57 audio_frame->speech_type_ = AudioFrame::kCNG; in SetAudioFrameActivityAndType()
63 audio_frame->speech_type_ = AudioFrame::kPLC; in SetAudioFrameActivityAndType()
67 audio_frame->vad_activity_ = AudioFrame::kVadPassive; in SetAudioFrameActivityAndType()
68 audio_frame->speech_type_ = AudioFrame::kPLCCNG; in SetAudioFrameActivityAndType()
[all …]
Dcall_statistics.cc19 void CallStatistics::DecodedByNetEq(AudioFrame::SpeechType speech_type) { in DecodedByNetEq()
22 case AudioFrame::kNormalSpeech: { in DecodedByNetEq()
26 case AudioFrame::kPLC: { in DecodedByNetEq()
30 case AudioFrame::kCNG: { in DecodedByNetEq()
34 case AudioFrame::kPLCCNG: { in DecodedByNetEq()
38 case AudioFrame::kUndefined: { in DecodedByNetEq()
Dcall_statistics_unittest.cc36 call_stats.DecodedByNetEq(AudioFrame::kNormalSpeech); in TEST()
37 call_stats.DecodedByNetEq(AudioFrame::kPLC); in TEST()
38 call_stats.DecodedByNetEq(AudioFrame::kPLCCNG); in TEST()
39 call_stats.DecodedByNetEq(AudioFrame::kCNG); in TEST()
Daudio_coding_module_impl.h66 int Add10MsData(const AudioFrame& audio_frame) override;
159 int PlayoutData10Ms(int desired_freq_hz, AudioFrame* audio_frame) override;
214 int Add10MsDataInternal(const AudioFrame& audio_frame, InputData* input_data)
235 int PreprocessToAddData(const AudioFrame& in_frame,
236 const AudioFrame** ptr_out)
267 AudioFrame preprocess_frame_ GUARDED_BY(acm_crit_sect_);
/external/webrtc/webrtc/modules/utility/include/
Daudio_frame_operations.h18 class AudioFrame; variable
33 static int MonoToStereo(AudioFrame* frame);
42 static int StereoToMono(AudioFrame* frame);
46 static void SwapStereoChannels(AudioFrame* frame);
49 static void Mute(AudioFrame& frame);
51 static int Scale(float left, float right, AudioFrame& frame);
53 static int ScaleWithSat(float scale, AudioFrame& frame);
/external/webrtc/webrtc/modules/include/
Dmodule_common_types.h482 class AudioFrame {
500 AudioFrame();
501 virtual ~AudioFrame() {} in ~AudioFrame()
513 AudioFrame& Append(const AudioFrame& rhs);
515 void CopyFrom(const AudioFrame& src);
519 AudioFrame& operator>>=(const int rhs);
520 AudioFrame& operator+=(const AudioFrame& rhs);
521 AudioFrame& operator-=(const AudioFrame& rhs);
546 RTC_DISALLOW_COPY_AND_ASSIGN(AudioFrame);
549 inline AudioFrame::AudioFrame() in AudioFrame() function
[all …]
/external/webrtc/webrtc/voice_engine/
Dutility_unittest.cc40 AudioFrame src_frame_;
41 AudioFrame dst_frame_;
42 AudioFrame golden_frame_;
48 void SetMonoFrame(AudioFrame* frame, float data, int sample_rate_hz) { in SetMonoFrame()
59 void SetMonoFrame(AudioFrame* frame, float data) { in SetMonoFrame()
65 void SetStereoFrame(AudioFrame* frame, float left, float right, in SetStereoFrame()
78 void SetStereoFrame(AudioFrame* frame, float left, float right) { in SetStereoFrame()
82 void VerifyParams(const AudioFrame& ref_frame, const AudioFrame& test_frame) { in VerifyParams()
91 float ComputeSNR(const AudioFrame& ref_frame, const AudioFrame& test_frame, in ComputeSNR()
117 void VerifyFramesAreEqual(const AudioFrame& ref_frame, in VerifyFramesAreEqual()
[all …]
Dutility.h23 class AudioFrame; variable
34 void RemixAndResample(const AudioFrame& src_frame,
36 AudioFrame* dst_frame);
46 AudioFrame* dst_frame);
Dutility.cc24 void RemixAndResample(const AudioFrame& src_frame, in RemixAndResample()
26 AudioFrame* dst_frame) { in RemixAndResample()
40 AudioFrame* dst_frame) { in RemixAndResample()
43 int16_t mono_audio[AudioFrame::kMaxDataSizeSamples]; in RemixAndResample()
64 AudioFrame::kMaxDataSizeSamples); in RemixAndResample()
Doutput_mixer.h67 AudioFrame* audioFrame);
91 const AudioFrame& generalAudioFrame,
92 const AudioFrame** uniqueAudioFrames,
116 AudioFrame _audioFrame;
/external/webrtc/webrtc/tools/agc/
Dtest_utils.h15 class AudioFrame; variable
19 void ApplyGainLinear(float gain, float last_gain, AudioFrame* frame);
20 void ApplyGain(float gain_db, float last_gain_db, AudioFrame* frame);
22 AudioFrame* frame);
24 AudioFrame* frame);
Dtest_utils.cc29 void ApplyGainLinear(float gain, float last_gain, AudioFrame* frame) { in ApplyGainLinear()
43 void ApplyGain(float gain_db, float last_gain_db, AudioFrame* frame) { in ApplyGain()
48 AudioFrame* frame) { in SimulateMic()
57 AudioFrame* frame) { in SimulateMic()
/external/webrtc/webrtc/modules/audio_conference_mixer/test/
Daudio_conference_mixer_unittest.cc26 const AudioFrame& general_audio_frame,
27 const AudioFrame** unique_audio_frames,
38 int32_t(const int32_t id, AudioFrame* audio_frame));
40 AudioFrame* fake_frame() { return &fake_frame_; } in fake_frame()
43 AudioFrame fake_frame_;
44 int32_t FakeAudioFrame(const int32_t id, AudioFrame* audio_frame) { in FakeAudioFrame()
122 participants[i].fake_frame()->speech_type_ = AudioFrame::kNormalSpeech; in TEST()
123 participants[i].fake_frame()->vad_activity_ = AudioFrame::kVadActive; in TEST()
143 AudioFrame::kVadPassive; in TEST()
/external/webrtc/webrtc/modules/audio_conference_mixer/source/
Daudio_frame_manipulator.h15 class AudioFrame; variable
18 void CalculateEnergy(AudioFrame& audioFrame);
21 void RampIn(AudioFrame& audioFrame);
22 void RampOut(AudioFrame& audioFrame);
Daudio_conference_mixer_impl.cc24 AudioFrame* audioFrame;
35 void MixFrames(AudioFrame* mixed_frame, AudioFrame* frame, bool use_limiter) { in MixFrames()
142 MemoryPool<AudioFrame>::CreateMemoryPool(_audioFramePool, in Init()
174 MemoryPool<AudioFrame>::DeleteMemoryPool(_audioFramePool); in ~AudioConferenceMixerImpl()
265 AudioFrame* mixedAudio = NULL; in Process()
286 AudioFrame::kNormalSpeech, in Process()
287 AudioFrame::kVadPassive, num_mixed_channels); in Process()
315 const AudioFrame** dummy = NULL; in Process()
548 AudioFrame* audioFrame = NULL; in UpdateToMix()
572 if (audioFrame->vad_activity_ == AudioFrame::kVadUnknown) { in UpdateToMix()
[all …]
Daudio_conference_mixer_impl.h28 typedef std::list<AudioFrame*> AudioFrameList;
138 int32_t MixFromList(AudioFrame* mixedAudio,
144 int32_t MixAnonomouslyFromList(AudioFrame* mixedAudio,
147 bool LimitMixedAudio(AudioFrame* mixedAudio) const;
164 MemoryPool<AudioFrame>* _audioFramePool;
Daudio_frame_manipulator.cc42 void CalculateEnergy(AudioFrame& audioFrame) in CalculateEnergy()
54 void RampIn(AudioFrame& audioFrame) in RampIn()
64 void RampOut(AudioFrame& audioFrame) in RampOut()
/external/webrtc/webrtc/modules/audio_processing/
Daudio_buffer.h105 void set_activity(AudioFrame::VADActivity activity);
106 AudioFrame::VADActivity activity() const;
109 void DeinterleaveFrom(AudioFrame* audioFrame);
112 void InterleaveTo(AudioFrame* frame, bool data_changed);
146 AudioFrame::VADActivity activity_;
/external/webrtc/talk/media/base/
Daudioframe.h33 class AudioFrame {
35 AudioFrame() in AudioFrame() function
41 AudioFrame(int16_t* audio, size_t audio_length, int sample_freq, bool stereo) in AudioFrame() function
/external/webrtc/webrtc/modules/audio_conference_mixer/include/
Daudio_conference_mixer_defines.h29 AudioFrame* audioFrame) = 0;
51 const AudioFrame& generalAudioFrame,
52 const AudioFrame** uniqueAudioFrames,
/external/webrtc/webrtc/voice_engine/test/auto_test/standard/
Dexternal_media_test.cc59 webrtc::AudioFrame frame; in TEST_F()
80 webrtc::AudioFrame frame; in TEST_F()
95 webrtc::AudioFrame frame; in TEST_F()
114 webrtc::AudioFrame frame; in TEST_F()

1234