Home
last modified time | relevance | path

Searched refs:timestamp_ms (Results 1 – 25 of 57) sorted by relevance

123

/external/webrtc/modules/video_coding/utility/
Dframerate_controller.cc46 bool FramerateController::DropFrame(uint32_t timestamp_ms) const { in DropFrame()
47 if (timestamp_ms < last_timestamp_ms_) { in DropFrame()
53 if (Rate(timestamp_ms).value_or(*target_framerate_fps_) > in DropFrame()
60 static_cast<int64_t>(timestamp_ms) - *last_timestamp_ms_; in DropFrame()
69 void FramerateController::AddFrame(uint32_t timestamp_ms) { in AddFrame() argument
70 if (timestamp_ms < last_timestamp_ms_) { in AddFrame()
75 framerate_estimator_.Update(1, timestamp_ms); in AddFrame()
76 last_timestamp_ms_ = timestamp_ms; in AddFrame()
79 absl::optional<float> FramerateController::Rate(uint32_t timestamp_ms) const { in Rate()
80 return framerate_estimator_.Rate(timestamp_ms); in Rate()
Dframerate_controller_unittest.cc29 const uint32_t timestamp_ms = in TEST() local
31 if (framerate_controller.DropFrame(timestamp_ms)) { in TEST()
34 framerate_controller.AddFrame(timestamp_ms); in TEST()
53 const uint32_t timestamp_ms = in TEST() local
55 if (framerate_controller.DropFrame(timestamp_ms)) { in TEST()
58 framerate_controller.AddFrame(timestamp_ms); in TEST()
Dframerate_controller.h29 bool DropFrame(uint32_t timestamp_ms) const;
31 void AddFrame(uint32_t timestamp_ms);
36 absl::optional<float> Rate(uint32_t timestamp_ms) const;
/external/webrtc/modules/congestion_controller/goog_cc/
Dalr_detector_unittest.cc30 int64_t* timestamp_ms) in SimulateOutgoingTrafficIn() argument
31 : alr_detector_(alr_detector), timestamp_ms_(timestamp_ms) { in SimulateOutgoingTrafficIn()
75 int64_t timestamp_ms = 1000; in TEST() local
83 SimulateOutgoingTrafficIn(&alr_detector, &timestamp_ms) in TEST()
89 SimulateOutgoingTrafficIn(&alr_detector, &timestamp_ms) in TEST()
95 SimulateOutgoingTrafficIn(&alr_detector, &timestamp_ms) in TEST()
103 int64_t timestamp_ms = 1000; in TEST() local
110 SimulateOutgoingTrafficIn(&alr_detector, &timestamp_ms) in TEST()
116 SimulateOutgoingTrafficIn(&alr_detector, &timestamp_ms) in TEST()
122 SimulateOutgoingTrafficIn(&alr_detector, &timestamp_ms) in TEST()
[all …]
/external/webrtc/system_wrappers/source/
Drtp_to_ntp_estimator_unittest.cc74 int64_t timestamp_ms = -1; in TEST() local
75 EXPECT_TRUE(estimator.Estimate(0xFFFFFFFF, &timestamp_ms)); in TEST()
78 EXPECT_EQ(0, timestamp_ms); in TEST()
94 int64_t timestamp_ms = -1; in TEST() local
96 estimator.Estimate(0xFFFFFFFF - 2 * kTimestampTicksPerMs, &timestamp_ms)); in TEST()
99 EXPECT_EQ(0, timestamp_ms); in TEST()
102 EXPECT_TRUE(estimator.Estimate(timestamp, &timestamp_ms)); in TEST()
103 EXPECT_EQ(2, timestamp_ms); in TEST()
106 EXPECT_TRUE(estimator.Estimate(timestamp, &timestamp_ms)); in TEST()
107 EXPECT_EQ(3, timestamp_ms); in TEST()
[all …]
/external/webrtc/modules/remote_bitrate_estimator/test/
Dbwe_test_logging.cc38 Logging::Context::Context(uint32_t name, int64_t timestamp_ms, bool enabled) { in Context() argument
39 Logging::GetInstance()->PushState(ToString(name), timestamp_ms, enabled); in Context()
43 int64_t timestamp_ms, in Context() argument
45 Logging::GetInstance()->PushState(name, timestamp_ms, enabled); in Context()
49 int64_t timestamp_ms, in Context() argument
51 Logging::GetInstance()->PushState(name, timestamp_ms, enabled); in Context()
127 alg_name.c_str(), state.timestamp_ms * 0.001, value); in Plot()
212 Logging::State::State() : tag(""), timestamp_ms(0), enabled(true) {} in State()
215 int64_t timestamp_ms, in State() argument
217 : tag(tag), timestamp_ms(timestamp_ms), enabled(enabled) {} in State()
[all …]
Dbwe_test_logging.h263 Context(uint32_t name, int64_t timestamp_ms, bool enabled);
264 Context(const std::string& name, int64_t timestamp_ms, bool enabled);
265 Context(const char* name, int64_t timestamp_ms, bool enabled);
326 State(const std::string& new_tag, int64_t timestamp_ms, bool enabled);
330 int64_t timestamp_ms; member
344 int64_t timestamp_ms,
/external/webrtc/api/transport/rtp/
Drtp_source.h38 RtpSource(int64_t timestamp_ms, in RtpSource() argument
43 : RtpSource(timestamp_ms, in RtpSource()
49 RtpSource(int64_t timestamp_ms, in RtpSource() argument
54 : timestamp_ms_(timestamp_ms), in RtpSource()
64 int64_t timestamp_ms() const { return timestamp_ms_; } in timestamp_ms() function
65 void update_timestamp_ms(int64_t timestamp_ms) { in update_timestamp_ms() argument
66 RTC_DCHECK_LE(timestamp_ms_, timestamp_ms); in update_timestamp_ms()
67 timestamp_ms_ = timestamp_ms; in update_timestamp_ms()
91 return timestamp_ms_ == o.timestamp_ms() && source_id_ == o.source_id() &&
/external/perfetto/test/trace_processor/startup/
Dandroid_startup_powrails.out5 timestamp_ms: 5
9 timestamp_ms: 6
16 timestamp_ms: 5
20 timestamp_ms: 6
27 timestamp_ms: 5
31 timestamp_ms: 6
/external/webrtc/video/
Dvideo_stream_encoder_unittest.cc2417 int64_t timestamp_ms = kFrameIntervalMs; in TEST_F() local
2420 CreateFrame(timestamp_ms, kWidth, kHeight)); in TEST_F()
2421 WaitForEncodedFrame(timestamp_ms); in TEST_F()
2428 timestamp_ms += kFrameIntervalMs; in TEST_F()
2430 CreateFrame(timestamp_ms, kWidth, kHeight)); in TEST_F()
2431 WaitForEncodedFrame(timestamp_ms); in TEST_F()
2438 timestamp_ms += kFrameIntervalMs; in TEST_F()
2440 CreateFrame(timestamp_ms, kWidth, kHeight)); in TEST_F()
2441 WaitForEncodedFrame(timestamp_ms); in TEST_F()
2455 timestamp_ms += kFrameIntervalMs; in TEST_F()
[all …]
Dvideo_receive_stream.h146 void RequestKeyFrame(int64_t timestamp_ms) RTC_RUN_ON(decode_queue_);
149 bool IsReceivingKeyFrame(int64_t timestamp_ms) const
/external/webp/tests/fuzzer/
Danimencoder_fuzzer.cc30 int* const height, int timestamp_ms, const uint8_t data[], in AddFrame() argument
100 if (!WebPAnimEncoderAdd(*enc, &pic, timestamp_ms, &config)) { in AddFrame()
115 int width = 0, height = 0, timestamp_ms = 0; in LLVMFuzzerTestOneInput() local
139 if (!AddFrame(&enc, anim_config, &width, &height, timestamp_ms, data, size, in LLVMFuzzerTestOneInput()
144 timestamp_ms += (1 << (2 + Extract(15, data, size, &bit_pos))) + in LLVMFuzzerTestOneInput()
149 if (!WebPAnimEncoderAdd(enc, nullptr, timestamp_ms, nullptr)) { in LLVMFuzzerTestOneInput()
/external/webrtc/logging/rtc_event_log/
Drtc_event_log2.proto56 optional int64 timestamp_ms = 1; field
70 optional int64 timestamp_ms = 1; field
86 optional int64 timestamp_ms = 1; field
106 optional int64 timestamp_ms = 1; field
174 optional int64 timestamp_ms = 1; field
242 optional int64 timestamp_ms = 1; field
258 optional int64 timestamp_ms = 1; field
274 optional int64 timestamp_ms = 1; field
289 optional int64 timestamp_ms = 1; field
300 optional int64 timestamp_ms = 1; field
[all …]
Drtc_event_log_parser.cc398 proto.timestamp_ms() * 1000, header, proto.header_size(), in StoreRtpPackets()
411 ToUnsigned(proto.timestamp_ms()), number_of_deltas); in StoreRtpPackets()
543 int64_t timestamp_ms; in StoreRtpPackets() local
545 ToSigned(timestamp_ms_values[i].value(), &timestamp_ms)); in StoreRtpPackets()
600 1000 * timestamp_ms, header, header.headerLength, in StoreRtpPackets()
623 rtcp_packets->emplace_back(proto.timestamp_ms() * 1000, proto.raw_packet()); in StoreRtcpPackets()
635 ToUnsigned(proto.timestamp_ms()), number_of_deltas); in StoreRtcpPackets()
647 int64_t timestamp_ms; in StoreRtcpPackets() local
649 ToSigned(timestamp_ms_values[i].value(), &timestamp_ms)); in StoreRtcpPackets()
663 rtcp_packets->emplace_back(1000 * timestamp_ms, data, data_size); in StoreRtcpPackets()
[all …]
Drtc_event_log_unittest_helper.cc742 EXPECT_EQ(original_event.timestamp_ms(), logged_event.log_time_ms()); in VerifyLoggedAlrStateEvent()
749 EXPECT_EQ(original_event.timestamp_ms(), logged_event.log_time_ms()); in VerifyLoggedAudioPlayoutEvent()
756 EXPECT_EQ(original_event.timestamp_ms(), logged_event.log_time_ms()); in VerifyLoggedAudioNetworkAdaptationEvent()
783 EXPECT_EQ(original_event.timestamp_ms(), logged_event.log_time_ms()); in VerifyLoggedBweDelayBasedUpdate()
791 EXPECT_EQ(original_event.timestamp_ms(), logged_event.log_time_ms()); in VerifyLoggedBweLossBasedUpdate()
800 EXPECT_EQ(original_event.timestamp_ms(), logged_event.log_time_ms()); in VerifyLoggedBweProbeClusterCreatedEvent()
810 EXPECT_EQ(original_event.timestamp_ms(), logged_event.log_time_ms()); in VerifyLoggedBweProbeFailureEvent()
818 EXPECT_EQ(original_event.timestamp_ms(), logged_event.log_time_ms()); in VerifyLoggedBweProbeSuccessEvent()
826 EXPECT_EQ(original_event.timestamp_ms(), logged_event.log_time_ms()); in VerifyLoggedDtlsTransportState()
834 EXPECT_EQ(original_event.timestamp_ms(), logged_event.log_time_ms()); in VerifyLoggedDtlsWritableState()
[all …]
Dlogged_events.h229 LoggedRouteChangeEvent(int64_t timestamp_ms, in LoggedRouteChangeEvent()
232 : timestamp_ms(timestamp_ms), connected(connected), overhead(overhead) {} in LoggedRouteChangeEvent()
234 int64_t log_time_us() const { return timestamp_ms * 1000; } in log_time_us()
235 int64_t log_time_ms() const { return timestamp_ms; } in log_time_ms()
237 int64_t timestamp_ms; member
245 int64_t log_time_us() const { return timestamp_ms * 1000; } in log_time_us()
246 int64_t log_time_ms() const { return timestamp_ms; } in log_time_ms()
248 int64_t timestamp_ms; member
Drtc_event_processor_unittest.cc31 for (int64_t timestamp_ms : timestamp_list) { in CreateEventList() local
32 v.emplace_back(timestamp_ms * 1000); // Convert ms to us. in CreateEventList()
43 int64_t timestamp_ms = elem; in CreateRandomEventLists() local
44 lists[i].emplace_back(timestamp_ms * 1000); in CreateRandomEventLists()
/external/webrtc/logging/rtc_event_log/encoder/
Drtc_event_log_encoder_new_format.cc326 proto_batch->set_timestamp_ms(base_event->timestamp_ms()); in EncodeRtcpPacket()
346 values[i] = ToUnsigned(event->timestamp_ms()); in EncodeRtcpPacket()
348 encoded_deltas = EncodeDeltas(ToUnsigned(base_event->timestamp_ms()), values); in EncodeRtcpPacket()
377 proto_batch->set_timestamp_ms(base_event->timestamp_ms()); in EncodeRtpPacket()
458 values[i] = ToUnsigned(event->timestamp_ms()); in EncodeRtpPacket()
460 encoded_deltas = EncodeDeltas(ToUnsigned(base_event->timestamp_ms()), values); in EncodeRtpPacket()
901 proto_batch->set_timestamp_ms(base_event->timestamp_ms()); in EncodeAlrState()
917 proto_batch->set_timestamp_ms(base_event->timestamp_ms()); in EncodeAudioNetworkAdaptation()
952 values[i] = ToUnsigned(event->timestamp_ms()); in EncodeAudioNetworkAdaptation()
954 encoded_deltas = EncodeDeltas(ToUnsigned(base_event->timestamp_ms()), values); in EncodeAudioNetworkAdaptation()
[all …]
/external/perfetto/test/trace_processor/power/
Dpower_rails_well_known.textproto16 timestamp_ms: 3
32 timestamp_ms: 5
41 timestamp_ms: 3
Dpower_rails.textproto16 timestamp_ms: 3
32 timestamp_ms: 5
41 timestamp_ms: 3
Dpower_rails_custom_clock.textproto48 timestamp_ms: 106
53 timestamp_ms: 109
/external/webrtc/modules/rtp_rtcp/source/
Dsource_tracker.cc35 entry.timestamp_ms = now_ms; in OnFrameDelivered()
44 entry.timestamp_ms = now_ms; in OnFrameDelivered()
66 entry.timestamp_ms, key.source, key.source_type, entry.rtp_timestamp, in GetSources()
93 while (!list_.empty() && list_.back().second.timestamp_ms < prune_ms) { in PruneEntries()
Dsource_tracker_unittest.cc84 if (!seen.insert(key).second || it->timestamp_ms() < prune_ms) { in PruneEntries()
260 int64_t timestamp_ms = clock.TimeInMilliseconds(); in TEST() local
265 ElementsAre(RtpSource(timestamp_ms, kSsrc, RtpSourceType::SSRC, in TEST()
267 RtpSource(timestamp_ms, kCsrcs1, RtpSourceType::CSRC, in TEST()
269 RtpSource(timestamp_ms, kCsrcs0, RtpSourceType::CSRC, in TEST()
/external/webrtc/video/adaptation/
Dquality_scaler_resource.cc99 int64_t timestamp_ms = rtc::TimeMillis(); in OnEncodeCompleted() local
101 timestamp_ms - last_underuse_due_to_disabled_timestamp_ms_.value() >= in OnEncodeCompleted()
103 last_underuse_due_to_disabled_timestamp_ms_ = timestamp_ms; in OnEncodeCompleted()
/external/python/pybind11/tests/
Dtest_chrono.cpp29 time_point_ms timestamp_ms; member
81 .def_readwrite("timestamp_ms", &different_resolutions::timestamp_ms) in TEST_SUBMODULE()

123