Home
last modified time | relevance | path

Searched refs:NetEq (Results 1 – 25 of 41) sorted by relevance

12

/external/webrtc/modules/audio_coding/neteq/
Ddecision_logic.cc93 NetEq::Operation DecisionLogic::GetDecision(const NetEqStatus& status, in GetDecision()
98 if (status.last_mode == NetEq::Mode::kRfc3389Cng) { in GetDecision()
100 } else if (status.last_mode == NetEq::Mode::kCodecInternalCng) { in GetDecision()
109 (status.last_mode == NetEq::Mode::kAccelerateSuccess || in GetDecision()
110 status.last_mode == NetEq::Mode::kAccelerateLowEnergy || in GetDecision()
111 status.last_mode == NetEq::Mode::kPreemptiveExpandSuccess || in GetDecision()
112 status.last_mode == NetEq::Mode::kPreemptiveExpandLowEnergy); in GetDecision()
116 if (status.last_mode != NetEq::Mode::kRfc3389Cng && in GetDecision()
117 status.last_mode != NetEq::Mode::kCodecInternalCng && in GetDecision()
124 if (status.last_mode == NetEq::Mode::kError) { in GetDecision()
[all …]
Dneteq_impl_unittest.cc197 EXPECT_EQ(NetEq::kOK, neteq_->InsertPacket(rtp_header, payload)); in TestDtmfPacket()
204 EXPECT_EQ(NetEq::kOK, neteq_->GetAudio(&output, &muted)); in TestDtmfPacket()
228 NetEq::Config config_;
253 TEST(NetEq, CreateAndDestroy) { in TEST() argument
254 NetEq::Config config; in TEST()
257 std::unique_ptr<NetEq> neteq = in TEST()
277 EXPECT_EQ(NetEq::kOK, neteq_->RemovePayloadType(rtp_payload_type)); in TEST_F()
394 EXPECT_EQ(NetEq::kOK, neteq_->InsertPacket(rtp_header, payload)); in TEST_F()
402 EXPECT_EQ(NetEq::kOK, neteq_->InsertPacket(rtp_header, payload)); in TEST_F()
488 EXPECT_EQ(NetEq::kOK, neteq_->InsertPacket(rtp_header, payload)); in TEST_F()
[all …]
Ddecision_logic.h54 NetEq::Operation GetDecision(const NetEqController::NetEqStatus& status,
68 void ExpandDecision(NetEq::Operation operation) override;
128 virtual NetEq::Operation CngOperation(NetEq::Mode prev_mode,
135 virtual NetEq::Operation NoPacket(bool play_dtmf);
138 virtual NetEq::Operation ExpectedPacketAvailable(NetEq::Mode prev_mode,
143 virtual NetEq::Operation FuturePacketAvailable(
145 NetEq::Mode prev_mode,
Dneteq_stereo_unittest.cc69 NetEq::Config config; in NetEqStereoTest()
166 ASSERT_EQ(NetEq::kOK, in RunTest()
171 ASSERT_EQ(NetEq::kOK, neteq_->InsertPacket( in RunTest()
184 EXPECT_EQ(NetEq::kOK, neteq_mono_->GetAudio(&output_, &muted)); in RunTest()
189 ASSERT_EQ(NetEq::kOK, neteq_->GetAudio(&output_multi_channel_, &muted)); in RunTest()
212 std::unique_ptr<NetEq> neteq_mono_;
213 std::unique_ptr<NetEq> neteq_;
Dnormal_unittest.cc73 EXPECT_EQ(0, normal.Process(input, 0, NetEq::Mode::kExpand, &output)); in TEST()
86 NetEq::Mode::kExpand, &output)); in TEST()
109 EXPECT_EQ(0, normal.Process(input, input_len, NetEq::Mode::kExpand, &output)); in TEST()
137 normal.Process(input, kPacketsizeBytes, NetEq::Mode::kExpand, &output)); in TEST()
Dneteq_network_stats_unittest.cc30 std::unique_ptr<NetEq> CreateNetEq( in CreateNetEq()
31 const NetEq::Config& config, in CreateNetEq()
171 NetEq::Config config; in NetEqNetworkStatsTest()
244 ASSERT_EQ(NetEq::kOK, neteq_->InsertPacket(rtp_header_, payload)); in RunTest()
248 EXPECT_EQ(NetEq::kOK, neteq_->GetAudio(&output_frame_, &muted)); in RunTest()
317 std::unique_ptr<NetEq> neteq_;
Ddefault_neteq_factory.cc22 std::unique_ptr<NetEq> DefaultNetEqFactory::CreateNetEq( in CreateNetEq()
23 const NetEq::Config& config, in CreateNetEq()
Ddefault_neteq_factory.h31 std::unique_ptr<NetEq> CreateNetEq(
32 const NetEq::Config& config,
Dnormal.cc29 NetEq::Mode last_mode, in Process()
55 if (last_mode == NetEq::Mode::kExpand) { in Process()
147 } else if (last_mode == NetEq::Mode::kRfc3389Cng) { in Process()
/external/webrtc/api/neteq/
Dneteq.cc17 NetEq::Config::Config() = default;
18 NetEq::Config::Config(const Config&) = default;
19 NetEq::Config::Config(Config&&) = default;
20 NetEq::Config::~Config() = default;
21 NetEq::Config& NetEq::Config::operator=(const Config&) = default;
22 NetEq::Config& NetEq::Config::operator=(Config&&) = default;
24 std::string NetEq::Config::ToString() const { in ToString()
Dneteq_controller.h93 NetEq::Mode last_mode;
117 virtual NetEq::Operation GetDecision(const NetEqStatus& status,
149 virtual void ExpandDecision(NetEq::Operation operation) = 0;
Dneteq.h119 class NetEq {
191 static NetEq* Create(
192 const NetEq::Config& config,
196 virtual ~NetEq() {} in ~NetEq()
Dneteq_factory.h30 virtual std::unique_ptr<NetEq> CreateNetEq(
31 const NetEq::Config& config,
Dcustom_neteq_factory.cc25 std::unique_ptr<NetEq> CustomNetEqFactory::CreateNetEq( in CreateNetEq()
26 const NetEq::Config& config, in CreateNetEq()
Dcustom_neteq_factory.h34 std::unique_ptr<NetEq> CreateNetEq(
35 const NetEq::Config& config,
/external/webrtc/modules/audio_coding/neteq/tools/
Dneteq_test.h48 NetEq* neteq) = 0;
54 virtual void BeforeGetAudio(NetEq* neteq) = 0;
58 NetEq* neteq) = 0;
64 virtual void SimulationEnded(int64_t simulation_time_ms, NetEq* neteq) = 0;
83 NetEqTest(const NetEq::Config& config,
115 std::unique_ptr<NetEq> neteq_;
Dneteq_test.cc24 absl::optional<NetEq::Operation> ActionToOperations( in ActionToOperations()
31 return absl::make_optional(NetEq::Operation::kAccelerate); in ActionToOperations()
33 return absl::make_optional(NetEq::Operation::kExpand); in ActionToOperations()
35 return absl::make_optional(NetEq::Operation::kNormal); in ActionToOperations()
37 return absl::make_optional(NetEq::Operation::kPreemptiveExpand); in ActionToOperations()
41 std::unique_ptr<NetEq> CreateNetEq( in CreateNetEq()
42 const NetEq::Config& config, in CreateNetEq()
62 NetEqTest::NetEqTest(const NetEq::Config& config, in NetEqTest()
121 if (error != NetEq::kOK && callbacks_.error_callback) { in RunToNextGetAudio()
179 if (error != NetEq::kOK) { in RunToNextGetAudio()
Dneteq_performance_test.cc24 using webrtc::NetEq;
41 NetEq::Config config; in Run()
91 if (error != NetEq::kOK) in Run()
110 if (error != NetEq::kOK) in Run()
Dneteq_delay_analyzer.h30 NetEq* neteq) override;
32 void BeforeGetAudio(NetEq* neteq) override;
37 NetEq* neteq) override;
Dneteq_quality_test.cc93 std::unique_ptr<NetEq> CreateNetEq( in CreateNetEq()
94 const NetEq::Config& config, in CreateNetEq()
241 NetEq::Config config; in NetEqQualityTest()
411 if (ret != NetEq::kOK) in Transmit()
427 if (ret != NetEq::kOK) { in DecodeBlock()
Dneteq_stats_getter.h63 void BeforeGetAudio(NetEq* neteq) override;
68 NetEq* neteq) override;
/external/webrtc/modules/audio_coding/neteq/test/
Dneteq_decoding_test.h72 std::unique_ptr<NetEq> neteq_;
73 NetEq::Config config_;
90 std::unique_ptr<NetEq> neteq2_;
91 NetEq::Config config2_;
/external/webrtc/modules/audio_coding/neteq/mock/
Dmock_neteq_controller.h26 MOCK_METHOD(NetEq::Operation,
42 MOCK_METHOD(void, ExpandDecision, (NetEq::Operation operation), (override));
/external/webrtc/modules/audio_coding/acm2/
Dacm_receiver.h35 class NetEq; variable
220 const std::unique_ptr<NetEq> neteq_; // NetEq is thread-safe; no lock needed.
Dacm_receiver.cc38 std::unique_ptr<NetEq> CreateNetEq( in CreateNetEq()
40 const NetEq::Config& config, in CreateNetEq()
152 if (neteq_->GetAudio(audio_frame, muted) != NetEq::kOK) { in GetAudio()

12