blob: 857d27ce2d8c563796e9aa1dc0b7beaca7c5c579 [file] [log] [blame]
Rasmus Brandt23772262022-05-23 09:53:15 +02001# Copyright (c) 2022 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9import("../../../webrtc.gni")
10
11rtc_library("codec_timer") {
12 sources = [
13 "codec_timer.cc",
14 "codec_timer.h",
15 ]
16 deps = [ "../../../rtc_base:rtc_numerics" ]
17}
18
19rtc_library("inter_frame_delay") {
20 sources = [
21 "inter_frame_delay.cc",
22 "inter_frame_delay.h",
23 ]
24 deps = [
25 "../..:module_api_public",
26 "../../../api/units:frequency",
27 "../../../api/units:time_delta",
28 "../../../api/units:timestamp",
29 ]
30 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
31}
32
Rasmus Brandt39ae6962022-08-09 14:40:05 +020033rtc_library("frame_delay_delta_kalman_filter") {
34 sources = [
35 "frame_delay_delta_kalman_filter.cc",
36 "frame_delay_delta_kalman_filter.h",
37 ]
38 deps = [
39 "../../../api/units:data_size",
40 "../../../api/units:time_delta",
41 ]
42 visibility = [
43 ":jitter_estimator",
44 ":timing_unittests",
45 ]
46}
47
Rasmus Brandt10944e62022-05-25 10:12:42 +020048rtc_library("jitter_estimator") {
49 sources = [
50 "jitter_estimator.cc",
51 "jitter_estimator.h",
52 ]
53 deps = [
Rasmus Brandt39ae6962022-08-09 14:40:05 +020054 ":frame_delay_delta_kalman_filter",
Rasmus Brandt10944e62022-05-25 10:12:42 +020055 ":rtt_filter",
56 "../../../api:field_trials_view",
57 "../../../api/units:data_size",
58 "../../../api/units:frequency",
59 "../../../api/units:time_delta",
60 "../../../api/units:timestamp",
61 "../../../rtc_base",
62 "../../../rtc_base:safe_conversions",
Rasmus Brandt10944e62022-05-25 10:12:42 +020063 "../../../system_wrappers",
64 ]
65 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
66}
67
Rasmus Brandt23772262022-05-23 09:53:15 +020068rtc_library("rtt_filter") {
69 sources = [
70 "rtt_filter.cc",
71 "rtt_filter.h",
72 ]
73 deps = [ "../../../api/units:time_delta" ]
74 absl_deps = [
75 "//third_party/abseil-cpp/absl/algorithm:container",
76 "//third_party/abseil-cpp/absl/container:inlined_vector",
77 ]
78}
79
Rasmus Brandtc4d253c2022-05-25 12:03:35 +020080rtc_library("timing_module") {
81 sources = [
82 "timing.cc",
83 "timing.h",
84 ]
85 deps = [
86 ":codec_timer",
87 "../../../api:field_trials_view",
88 "../../../api/units:time_delta",
Johannes Kronbbf639e2022-06-15 12:27:23 +020089 "../../../api/video:video_frame",
Rasmus Brandtc4d253c2022-05-25 12:03:35 +020090 "../../../api/video:video_rtp_headers",
91 "../../../rtc_base:logging",
92 "../../../rtc_base:macromagic",
93 "../../../rtc_base:rtc_numerics",
94 "../../../rtc_base/experiments:field_trial_parser",
95 "../../../rtc_base/synchronization:mutex",
96 "../../../rtc_base/time:timestamp_extrapolator",
97 "../../../system_wrappers",
98 ]
99 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
100}
101
Rasmus Brandt23772262022-05-23 09:53:15 +0200102rtc_library("timing_unittests") {
103 testonly = true
104 sources = [
Rasmus Brandt39ae6962022-08-09 14:40:05 +0200105 "frame_delay_delta_kalman_filter_unittest.cc",
Rasmus Brandt23772262022-05-23 09:53:15 +0200106 "inter_frame_delay_unittest.cc",
Rasmus Brandt10944e62022-05-25 10:12:42 +0200107 "jitter_estimator_unittest.cc",
Rasmus Brandt23772262022-05-23 09:53:15 +0200108 "rtt_filter_unittest.cc",
Rasmus Brandtc4d253c2022-05-25 12:03:35 +0200109 "timing_unittest.cc",
Rasmus Brandt23772262022-05-23 09:53:15 +0200110 ]
111 deps = [
Rasmus Brandt39ae6962022-08-09 14:40:05 +0200112 ":frame_delay_delta_kalman_filter",
Rasmus Brandt23772262022-05-23 09:53:15 +0200113 ":inter_frame_delay",
Rasmus Brandt10944e62022-05-25 10:12:42 +0200114 ":jitter_estimator",
Rasmus Brandt23772262022-05-23 09:53:15 +0200115 ":rtt_filter",
Rasmus Brandtc4d253c2022-05-25 12:03:35 +0200116 ":timing_module",
Rasmus Brandt10944e62022-05-25 10:12:42 +0200117 "../../../api:array_view",
118 "../../../api/units:data_size",
Rasmus Brandt23772262022-05-23 09:53:15 +0200119 "../../../api/units:frequency",
120 "../../../api/units:time_delta",
121 "../../../api/units:timestamp",
Rasmus Brandt10944e62022-05-25 10:12:42 +0200122 "../../../rtc_base:histogram_percentile_counter",
123 "../../../rtc_base:stringutils",
124 "../../../rtc_base:timeutils",
Rasmus Brandt23772262022-05-23 09:53:15 +0200125 "../../../system_wrappers:system_wrappers",
Rasmus Brandt10944e62022-05-25 10:12:42 +0200126 "../../../test:scoped_key_value_config",
Rasmus Brandt23772262022-05-23 09:53:15 +0200127 "../../../test:test_support",
128 ]
129 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
130}