Home
last modified time | relevance | path

Searched refs:frame_length_ms (Results 1 – 25 of 27) sorted by relevance

12

/external/webrtc/modules/audio_coding/audio_network_adaptor/
Dbitrate_controller_unittest.cc42 const absl::optional<int>& frame_length_ms, in CheckDecision() argument
45 config.frame_length_ms = frame_length_ms; in CheckDecision()
202 int frame_length_ms = 20; in TEST() local
204 overall_bitrate - overhead_bytes_per_packet * 8 * 1000 / frame_length_ms); in TEST()
207 CheckDecision(&controller, frame_length_ms, current_bitrate); in TEST()
213 CheckDecision(&controller, frame_length_ms, current_bitrate); in TEST()
216 frame_length_ms = 60; in TEST()
221 CheckDecision(&controller, frame_length_ms, current_bitrate); in TEST()
225 current_bitrate += 30 * 8 * 1000 / frame_length_ms; in TEST()
227 CheckDecision(&controller, frame_length_ms, current_bitrate); in TEST()
[all …]
Dframe_length_controller_v2.cc21 int OverheadBps(int overhead_bytes_per_packet, int frame_length_ms) { in OverheadBps() argument
22 return overhead_bytes_per_packet * 8 * 1000 / frame_length_ms; in OverheadBps()
59 absl::c_find_if(encoder_frame_lengths_ms_, [&](int frame_length_ms) { in MakeDecision() argument
63 OverheadBps(*overhead_bytes_per_packet_, frame_length_ms) > in MakeDecision()
68 config->frame_length_ms = it != encoder_frame_lengths_ms_.end() in MakeDecision()
Dframe_length_controller_v2_unittest.cc58 EXPECT_EQ(*config.frame_length_ms, expected_frame_length_ms); in ExpectFrameLengthDecision()
74 EXPECT_FALSE(config.frame_length_ms); in TEST_F()
78 EXPECT_FALSE(config.frame_length_ms); in TEST_F()
82 EXPECT_FALSE(config.frame_length_ms); in TEST_F()
86 EXPECT_TRUE(config.frame_length_ms); in TEST_F()
Daudio_network_adaptor_impl.cc123 if (config.frame_length_ms && prev_config_->frame_length_ms) { in GetEncoderRuntimeConfig()
124 if (*config.frame_length_ms > *prev_config_->frame_length_ms) { in GetEncoderRuntimeConfig()
126 } else if (*config.frame_length_ms < *prev_config_->frame_length_ms) { in GetEncoderRuntimeConfig()
Dframe_length_controller.cc24 int OverheadRateBps(size_t overhead_bytes_per_packet, int frame_length_ms) { in OverheadRateBps() argument
26 frame_length_ms); in OverheadRateBps()
75 RTC_DCHECK(!config->frame_length_ms); in MakeDecision()
83 config->frame_length_ms = *frame_length_ms_; in MakeDecision()
Daudio_network_adaptor_config.cc28 frame_length_ms == other.frame_length_ms && in operator ==()
Dbitrate_controller.cc61 if (config->frame_length_ms) in MakeDecision()
62 frame_length_ms_ = *config->frame_length_ms; in MakeDecision()
Devent_log_writer.cc49 if (last_logged_config_.frame_length_ms != config.frame_length_ms) in MaybeLogEncoderConfig()
Daudio_network_adaptor_impl_unittest.cc57 arg.frame_length_ms == config.frame_length_ms &&
276 config1.frame_length_ms = 120; in TEST()
282 config2.frame_length_ms = 60; in TEST()
Ddebug_dump_writer.cc124 if (config.frame_length_ms) in DumpEncoderRuntimeConfig()
125 dump_config->set_frame_length_ms(*config.frame_length_ms); in DumpEncoderRuntimeConfig()
Devent_log_writer_unittest.cc57 state.runtime_config.frame_length_ms = kFrameLengthMs; in CreateEventLogWriter()
132 state.runtime_config.frame_length_ms = 20; in TEST()
217 state.runtime_config.frame_length_ms = 20; in TEST()
Dframe_length_controller_unittest.cc44 int VeryLowBitrate(int frame_length_ms) { in VeryLowBitrate() argument
46 (kOverheadBytesPerPacket * 8 * 1000 / frame_length_ms); in VeryLowBitrate()
154 EXPECT_EQ(expected_frame_length_ms, config.frame_length_ms); in CheckDecision()
Ddebug_dump.proto17 optional int32 frame_length_ms = 2; field
Dcontroller_manager_unittest.cc323 EXPECT_EQ(kInitialFrameLengthMs, encoder_config.frame_length_ms); in CheckControllersOrder()
/external/webrtc/modules/audio_coding/codecs/opus/
Daudio_encoder_opus.cc153 [&](int frame_length_ms) { in FindSupportedFrameLengths() argument
154 return frame_length_ms >= min_frame_length_ms && in FindSupportedFrameLengths()
155 frame_length_ms <= max_frame_length_ms; in FindSupportedFrameLengths()
708 void AudioEncoderOpusImpl::SetFrameLength(int frame_length_ms) { in SetFrameLength() argument
709 next_frame_length_ms_ = frame_length_ms; in SetFrameLength()
761 if (config.frame_length_ms) in ApplyAudioNetworkAdaptor()
762 SetFrameLength(*config.frame_length_ms); in ApplyAudioNetworkAdaptor()
Daudio_encoder_multi_channel_opus_impl.h71 void SetFrameLength(int frame_length_ms);
Daudio_encoder_opus.h132 void SetFrameLength(int frame_length_ms);
Daudio_encoder_opus_unittest.cc100 config.frame_length_ms = kFrameLength; in CreateEncoderRuntimeConfig()
109 EXPECT_EQ(*config.frame_length_ms, encoder->next_frame_length_ms()); in CheckEncoderRuntimeConfig()
/external/webrtc/modules/audio_coding/audio_network_adaptor/include/
Daudio_network_adaptor_config.h27 absl::optional<int> frame_length_ms; member
/external/webrtc/rtc_tools/rtc_event_log_visualizer/
Danalyze_audio.cc60 if (ana_event.config.frame_length_ms) in CreateAudioEncoderFrameLengthGraph()
62 static_cast<float>(*ana_event.config.frame_length_ms)); in CreateAudioEncoderFrameLengthGraph()
/external/webrtc/logging/rtc_event_log/encoder/
Drtc_event_log_encoder_new_format.cc920 if (base_event->config().frame_length_ms.has_value()) { in EncodeAudioNetworkAdaptation()
922 base_event->config().frame_length_ms.value()); in EncodeAudioNetworkAdaptation()
980 if (event->config().frame_length_ms.has_value()) { in EncodeAudioNetworkAdaptation()
981 values[i] = ToUnsigned(event->config().frame_length_ms.value()); in EncodeAudioNetworkAdaptation()
987 base_event->config().frame_length_ms.has_value() in EncodeAudioNetworkAdaptation()
988 ? ToUnsigned(base_event->config().frame_length_ms.value()) in EncodeAudioNetworkAdaptation()
Drtc_event_log_encoder_unittest.cc288 const int frame_length_ms = prng_.Rand(1, 1000); in TEST_P() local
289 runtime_config->frame_length_ms = frame_length_ms; in TEST_P()
373 runtime_config->frame_length_ms = prng_.Rand(1, 1000); in TEST_P()
Drtc_event_log_encoder_legacy.cc400 if (event.config().frame_length_ms) in EncodeAudioNetworkAdaptation()
402 *event.config().frame_length_ms); in EncodeAudioNetworkAdaptation()
/external/webrtc/logging/rtc_event_log/
Drtc_event_log_unittest_helper.cc108 config->frame_length_ms = prng_.Rand(10, 120); in NewAudioNetworkAdaptation()
762 EXPECT_EQ(original_event.config().frame_length_ms, in VerifyLoggedAudioNetworkAdaptationEvent()
763 logged_event.config.frame_length_ms); in VerifyLoggedAudioNetworkAdaptationEvent()
Drtc_event_log_parser.cc1877 res.config.frame_length_ms = ana_event.frame_length_ms(); in GetAudioNetworkAdaptation()
2977 runtime_config.frame_length_ms = proto.frame_length_ms(); in StoreAudioNetworkAdaptationEvent()
3023 ? absl::optional<uint64_t>(ToUnsigned(proto.frame_length_ms())) in StoreAudioNetworkAdaptationEvent()
3095 runtime_config.frame_length_ms = signed_frame_length_ms; in StoreAudioNetworkAdaptationEvent()

12