diff --git a/BUILD.gn b/BUILD.gn index 4146db8a5b..fd5b799c7a 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -585,7 +585,6 @@ if (rtc_include_tests && !build_with_chromium) { "rtc_base/experiments:experiments_unittests", "rtc_base/system:file_wrapper_unittests", "rtc_base/task_utils:repeating_task_unittests", - "rtc_base/time:timestamp_extrapolator_unittests", "rtc_base/units:units_unittests", "sdk:sdk_tests", "test:rtp_test_utils", diff --git a/modules/rtp_rtcp/BUILD.gn b/modules/rtp_rtcp/BUILD.gn index 01076069ee..c72a2fc9bc 100644 --- a/modules/rtp_rtcp/BUILD.gn +++ b/modules/rtp_rtcp/BUILD.gn @@ -319,7 +319,6 @@ rtc_library("rtp_rtcp") { "../../rtc_base/synchronization:mutex", "../../rtc_base/system:no_unique_address", "../../rtc_base/task_utils:repeating_task", - "../../rtc_base/time:timestamp_extrapolator", "../../system_wrappers", "../../system_wrappers:metrics", "../remote_bitrate_estimator", diff --git a/modules/video_coding/BUILD.gn b/modules/video_coding/BUILD.gn index c73e011fab..0a3af1b8f2 100644 --- a/modules/video_coding/BUILD.gn +++ b/modules/video_coding/BUILD.gn @@ -292,7 +292,6 @@ rtc_library("video_coding") { "../../rtc_base/system:no_unique_address", "../../rtc_base/task_utils:repeating_task", "../../rtc_base/third_party/base64", - "../../rtc_base/time:timestamp_extrapolator", "../../system_wrappers", "../../system_wrappers:field_trial", "../../system_wrappers:metrics", diff --git a/modules/video_coding/timing/BUILD.gn b/modules/video_coding/timing/BUILD.gn index d2479aec8d..ee0522379b 100644 --- a/modules/video_coding/timing/BUILD.gn +++ b/modules/video_coding/timing/BUILD.gn @@ -84,6 +84,18 @@ rtc_library("rtt_filter") { ] } +rtc_library("timestamp_extrapolator") { + sources = [ + "timestamp_extrapolator.cc", + "timestamp_extrapolator.h", + ] + deps = [ + "../../../api/units:timestamp", + "../../../modules:module_api_public", + ] + absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] +} + rtc_library("timing_module") { sources = [ "timing.cc", @@ -91,6 +103,7 @@ rtc_library("timing_module") { ] deps = [ ":codec_timer", + ":timestamp_extrapolator", "../../../api:field_trials_view", "../../../api/units:time_delta", "../../../api/video:video_frame", @@ -100,7 +113,6 @@ rtc_library("timing_module") { "../../../rtc_base:rtc_numerics", "../../../rtc_base/experiments:field_trial_parser", "../../../rtc_base/synchronization:mutex", - "../../../rtc_base/time:timestamp_extrapolator", "../../../system_wrappers", ] absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] @@ -113,6 +125,7 @@ rtc_library("timing_unittests") { "inter_frame_delay_unittest.cc", "jitter_estimator_unittest.cc", "rtt_filter_unittest.cc", + "timestamp_extrapolator_unittest.cc", "timing_unittest.cc", ] deps = [ @@ -120,6 +133,7 @@ rtc_library("timing_unittests") { ":inter_frame_delay", ":jitter_estimator", ":rtt_filter", + ":timestamp_extrapolator", ":timing_module", "../../../api:array_view", "../../../api:field_trials", diff --git a/rtc_base/time/timestamp_extrapolator.cc b/modules/video_coding/timing/timestamp_extrapolator.cc similarity index 98% rename from rtc_base/time/timestamp_extrapolator.cc rename to modules/video_coding/timing/timestamp_extrapolator.cc index 4f8fe0a914..d13fa7dd8c 100644 --- a/rtc_base/time/timestamp_extrapolator.cc +++ b/modules/video_coding/timing/timestamp_extrapolator.cc @@ -8,7 +8,7 @@ * be found in the AUTHORS file in the root of the source tree. */ -#include "rtc_base/time/timestamp_extrapolator.h" +#include "modules/video_coding/timing/timestamp_extrapolator.h" #include diff --git a/rtc_base/time/timestamp_extrapolator.h b/modules/video_coding/timing/timestamp_extrapolator.h similarity index 87% rename from rtc_base/time/timestamp_extrapolator.h rename to modules/video_coding/timing/timestamp_extrapolator.h index 23e7975453..b7162ed281 100644 --- a/rtc_base/time/timestamp_extrapolator.h +++ b/modules/video_coding/timing/timestamp_extrapolator.h @@ -8,8 +8,8 @@ * be found in the AUTHORS file in the root of the source tree. */ -#ifndef RTC_BASE_TIME_TIMESTAMP_EXTRAPOLATOR_H_ -#define RTC_BASE_TIME_TIMESTAMP_EXTRAPOLATOR_H_ +#ifndef MODULES_VIDEO_CODING_TIMING_TIMESTAMP_EXTRAPOLATOR_H_ +#define MODULES_VIDEO_CODING_TIMING_TIMESTAMP_EXTRAPOLATOR_H_ #include @@ -45,4 +45,4 @@ class TimestampExtrapolator { } // namespace webrtc -#endif // RTC_BASE_TIME_TIMESTAMP_EXTRAPOLATOR_H_ +#endif // MODULES_VIDEO_CODING_TIMING_TIMESTAMP_EXTRAPOLATOR_H_ diff --git a/rtc_base/time/timestamp_extrapolator_unittest.cc b/modules/video_coding/timing/timestamp_extrapolator_unittest.cc similarity index 99% rename from rtc_base/time/timestamp_extrapolator_unittest.cc rename to modules/video_coding/timing/timestamp_extrapolator_unittest.cc index b153d7ae15..bb24f92abd 100644 --- a/rtc_base/time/timestamp_extrapolator_unittest.cc +++ b/modules/video_coding/timing/timestamp_extrapolator_unittest.cc @@ -8,7 +8,7 @@ * be found in the AUTHORS file in the root of the source tree. */ -#include "rtc_base/time/timestamp_extrapolator.h" +#include "modules/video_coding/timing/timestamp_extrapolator.h" #include diff --git a/modules/video_coding/timing/timing.cc b/modules/video_coding/timing/timing.cc index 37dc825bed..0b61d5a35e 100644 --- a/modules/video_coding/timing/timing.cc +++ b/modules/video_coding/timing/timing.cc @@ -13,9 +13,9 @@ #include #include "api/units/time_delta.h" +#include "modules/video_coding/timing/timestamp_extrapolator.h" #include "rtc_base/experiments/field_trial_parser.h" #include "rtc_base/logging.h" -#include "rtc_base/time/timestamp_extrapolator.h" #include "system_wrappers/include/clock.h" namespace webrtc { diff --git a/modules/video_coding/timing/timing.h b/modules/video_coding/timing/timing.h index 6ee1cf4d6f..7a8183d908 100644 --- a/modules/video_coding/timing/timing.h +++ b/modules/video_coding/timing/timing.h @@ -19,10 +19,10 @@ #include "api/video/video_frame.h" #include "api/video/video_timing.h" #include "modules/video_coding/timing/codec_timer.h" +#include "modules/video_coding/timing/timestamp_extrapolator.h" #include "rtc_base/experiments/field_trial_parser.h" #include "rtc_base/synchronization/mutex.h" #include "rtc_base/thread_annotations.h" -#include "rtc_base/time/timestamp_extrapolator.h" namespace webrtc { diff --git a/rtc_base/time/BUILD.gn b/rtc_base/time/BUILD.gn deleted file mode 100644 index bac649e1d7..0000000000 --- a/rtc_base/time/BUILD.gn +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. -# -# Use of this source code is governed by a BSD-style license -# that can be found in the LICENSE file in the root of the source -# tree. An additional intellectual property rights grant can be found -# in the file PATENTS. All contributing project authors may -# be found in the AUTHORS file in the root of the source tree. - -import("../../webrtc.gni") -if (is_android) { - import("//build/config/android/config.gni") - import("//build/config/android/rules.gni") -} - -rtc_library("timestamp_extrapolator") { - sources = [ - "timestamp_extrapolator.cc", - "timestamp_extrapolator.h", - ] - deps = [ - "../../api/units:timestamp", - "../../modules:module_api_public", - ] - absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] -} - -if (rtc_include_tests) { - rtc_library("timestamp_extrapolator_unittests") { - testonly = true - sources = [ "timestamp_extrapolator_unittest.cc" ] - deps = [ - ":timestamp_extrapolator", - "../../api/units:frequency", - "../../api/units:time_delta", - "../../api/units:timestamp", - "../../system_wrappers", - "../../test:test_support", - ] - absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] - } -}