blob: d767048cc07dc771e16007a38e7767b0a399bb5d [file] [log] [blame]
Niels Möllerc6ce9c52018-05-11 11:15:30 +02001# Copyright (c) 2018 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_source_set("video_frame") {
12 visibility = [ "*" ]
13 sources = [
Emircan Uysaler800787f2018-07-16 10:01:49 -070014 "color_space.cc",
15 "color_space.h",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020016 "video_content_type.cc",
17 "video_content_type.h",
18 "video_frame.cc",
19 "video_frame.h",
20 "video_frame_buffer.cc",
21 "video_frame_buffer.h",
22 "video_rotation.h",
23 "video_sink_interface.h",
Niels Möller0327c2d2018-05-21 14:09:31 +020024 "video_source_interface.cc",
25 "video_source_interface.h",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020026 "video_timing.cc",
27 "video_timing.h",
28 ]
29
30 deps = [
31 "../../rtc_base:checks",
32 "../../rtc_base:rtc_base_approved",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +020033 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020034 ]
35}
36
37rtc_source_set("video_frame_i420") {
38 visibility = [ "*" ]
39 sources = [
40 "i420_buffer.cc",
41 "i420_buffer.h",
42 ]
43 deps = [
44 ":video_frame",
45 "../../rtc_base:checks",
46 "../../rtc_base:rtc_base",
47 "../../rtc_base/memory:aligned_malloc",
48 "//third_party/libyuv",
49 ]
50}
51
Emircan Uysaler901e0ff2018-06-26 12:22:38 -070052rtc_source_set("video_frame_i010") {
53 visibility = [ "*" ]
54 sources = [
55 "i010_buffer.cc",
56 "i010_buffer.h",
57 ]
58 deps = [
59 ":video_frame",
60 ":video_frame_i420",
61 "../../rtc_base:checks",
62 "../../rtc_base:rtc_base",
63 "../../rtc_base/memory:aligned_malloc",
64 "//third_party/libyuv",
65 ]
66}
67
Niels Möllerc6ce9c52018-05-11 11:15:30 +020068rtc_source_set("encoded_frame") {
69 visibility = [ "*" ]
70 sources = [
71 "encoded_frame.cc",
72 "encoded_frame.h",
73 ]
74
75 deps = [
76 "../../modules/video_coding:encoded_frame",
77 ]
78}
79
80rtc_source_set("video_bitrate_allocation") {
81 visibility = [ "*" ]
82 sources = [
83 "video_bitrate_allocation.cc",
84 "video_bitrate_allocation.h",
85 ]
86 deps = [
Niels Möllerc6ce9c52018-05-11 11:15:30 +020087 "../..:typedefs",
88 "../../rtc_base:checks",
89 "../../rtc_base:safe_conversions",
90 "../../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +020091 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020092 ]
93}
94
95rtc_source_set("video_stream_decoder") {
96 visibility = [ "*" ]
97 sources = [
98 "video_stream_decoder.h",
99 ]
100
101 deps = [
102 ":encoded_frame",
103 ":video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200104 "../video_codecs:video_codecs_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200105 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200106 ]
107}
108
109rtc_source_set("video_stream_decoder_create") {
110 visibility = [ "*" ]
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200111 sources = [
112 "video_stream_decoder_create.cc",
113 "video_stream_decoder_create.h",
114 ]
115
116 deps = [
117 ":video_stream_decoder",
118 "../../rtc_base:rtc_base_approved",
119 "../../video:video_stream_decoder_impl",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200120 "//third_party/abseil-cpp/absl/memory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200121 ]
122}
Niels Möller0327c2d2018-05-21 14:09:31 +0200123
124rtc_source_set("video_stream_encoder") {
125 visibility = [ "*" ]
126 sources = [
127 "video_stream_encoder_interface.h",
128 ]
129
130 deps = [
131 ":video_frame",
132
133 # For rtpparameters.h
134 "..:libjingle_peerconnection_api",
135 "../video_codecs:video_codecs_api",
136 ]
137}