blob: 129336be585cfccd057b2fce81a274f3072d0106 [file] [log] [blame]
ilnikd60d06a2017-04-05 03:02:20 -07001# Copyright (c) 2017 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")
10if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
13}
14
15rtc_source_set("video_codecs_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000016 visibility = [ "*" ]
ilnikd60d06a2017-04-05 03:02:20 -070017 sources = [
Niels Möllerbe682d42018-03-27 08:31:45 +020018 "sdp_video_format.cc",
andersc063f0c02017-09-11 11:50:51 -070019 "sdp_video_format.h",
Niels Möllera46bd4b2018-06-08 14:03:44 +020020 "video_codec.cc",
Niels Möller802506c2018-05-31 10:44:51 +020021 "video_codec.h",
Niels Möllerbe682d42018-03-27 08:31:45 +020022 "video_decoder.cc",
ilnikd60d06a2017-04-05 03:02:20 -070023 "video_decoder.h",
Magnus Jedvert59ab3532018-09-03 18:07:56 +020024 "video_decoder_factory.cc",
Magnus Jedvertd4b0c052017-09-14 10:24:54 +020025 "video_decoder_factory.h",
mflodman351424e2017-08-10 02:43:14 -070026 "video_encoder.cc",
ilnikd60d06a2017-04-05 03:02:20 -070027 "video_encoder.h",
Niels Möller0a8f4352018-05-18 11:37:23 +020028 "video_encoder_config.cc",
29 "video_encoder_config.h",
Magnus Jedvertd4b0c052017-09-14 10:24:54 +020030 "video_encoder_factory.h",
Erik Språng4529fbc2018-10-12 10:30:31 +020031 "vp8_temporal_layers.h",
ilnikd60d06a2017-04-05 03:02:20 -070032 ]
33
34 deps = [
ilnikd60d06a2017-04-05 03:02:20 -070035 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010036 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070037 "../../rtc_base:rtc_base_approved",
Mirko Bonadei276827c2018-10-16 14:13:50 +020038 "../../rtc_base/system:rtc_export",
Niels Möller4dc66c52018-10-05 14:17:58 +020039 "../video:encoded_image",
Erik Språngec475652018-05-15 15:12:55 +020040 "../video:video_bitrate_allocation",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020041 "../video:video_frame",
Niels Möller3c7d5992018-10-19 15:29:54 +020042 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +020043 "//third_party/abseil-cpp/absl/types:optional",
ilnikd60d06a2017-04-05 03:02:20 -070044 ]
45}
Anders Carlsson67537952018-05-03 11:28:29 +020046
47rtc_static_library("builtin_video_decoder_factory") {
48 visibility = [ "*" ]
49 allow_poison = [
50 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
51 "software_video_codecs",
52 ]
53 sources = [
54 "builtin_video_decoder_factory.cc",
55 "builtin_video_decoder_factory.h",
56 ]
57
58 deps = [
59 ":video_codecs_api",
60 "../../media:rtc_internal_video_codecs",
61 "../../rtc_base:ptr_util",
Mirko Bonadeiac194142018-10-22 17:08:37 +020062 "../../rtc_base/system:rtc_export",
Karl Wiberg918f50c2018-07-05 11:40:33 +020063 "//third_party/abseil-cpp/absl/memory",
Anders Carlsson67537952018-05-03 11:28:29 +020064 ]
65}
66
67rtc_static_library("builtin_video_encoder_factory") {
68 visibility = [ "*" ]
69 allow_poison = [
70 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
71 "software_video_codecs",
72 ]
73 sources = [
74 "builtin_video_encoder_factory.cc",
75 "builtin_video_encoder_factory.h",
76 ]
77
78 deps = [
79 ":video_codecs_api",
80 "../../media:rtc_internal_video_codecs",
81 "../../media:rtc_media_base",
82 "../../rtc_base:ptr_util",
Mirko Bonadeiac194142018-10-22 17:08:37 +020083 "../../rtc_base/system:rtc_export",
Karl Wiberg918f50c2018-07-05 11:40:33 +020084 "//third_party/abseil-cpp/absl/memory",
Anders Carlsson67537952018-05-03 11:28:29 +020085 ]
86}
Anders Carlssondd3e0ab2018-06-12 11:15:56 +020087
Erik Språng4529fbc2018-10-12 10:30:31 +020088rtc_static_library("create_vp8_temporal_layers") {
89 visibility = [ "*" ]
90 allow_poison = [ "software_video_codecs" ]
91 sources = [
92 "create_vp8_temporal_layers.cc",
93 "create_vp8_temporal_layers.h",
94 ]
95
96 deps = [
97 ":video_codecs_api",
98 "../..:webrtc_common",
99 "../../modules/video_coding:video_codec_interface",
100 "../../modules/video_coding:webrtc_vp8_temporal_layers",
101 "../../system_wrappers:system_wrappers",
102 "//third_party/abseil-cpp/absl/memory:memory",
103 ]
104}
105
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200106rtc_static_library("rtc_software_fallback_wrappers") {
107 visibility = [ "*" ]
108
109 sources = [
110 "video_decoder_software_fallback_wrapper.cc",
111 "video_decoder_software_fallback_wrapper.h",
112 "video_encoder_software_fallback_wrapper.cc",
113 "video_encoder_software_fallback_wrapper.h",
114 ]
115
116 if (!build_with_chromium && is_clang) {
117 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
118 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
119 }
120
121 deps = [
122 ":video_codecs_api",
123 "../../media:rtc_h264_profile_id",
124 "../../media:rtc_media_base",
125 "../../modules/video_coding:video_codec_interface",
126 "../../rtc_base:checks",
127 "../../rtc_base:rtc_base_approved",
128 "../../rtc_base/system:fallthrough",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200129 "../../system_wrappers:field_trial",
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200130 "../video:video_bitrate_allocation",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200131 "//third_party/abseil-cpp/absl/memory",
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200132 ]
133}