blob: 90d3742382c2c40b8ff402c1a5ebaaa86255f11c [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
Mirko Bonadei86d053c2019-10-17 21:32:04 +020015rtc_library("video_codecs_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000016 visibility = [ "*" ]
ilnikd60d06a2017-04-05 03:02:20 -070017 sources = [
Johannes Kronc3fcee72021-04-19 09:09:26 +020018 "h264_profile_level_id.cc",
19 "h264_profile_level_id.h",
Niels Möllerbe682d42018-03-27 08:31:45 +020020 "sdp_video_format.cc",
andersc063f0c02017-09-11 11:50:51 -070021 "sdp_video_format.h",
Niels Möller5b69aa62020-08-14 15:32:14 +020022 "spatial_layer.cc",
23 "spatial_layer.h",
Niels Möllera46bd4b2018-06-08 14:03:44 +020024 "video_codec.cc",
Niels Möller802506c2018-05-31 10:44:51 +020025 "video_codec.h",
Niels Möllerbe682d42018-03-27 08:31:45 +020026 "video_decoder.cc",
ilnikd60d06a2017-04-05 03:02:20 -070027 "video_decoder.h",
Philip Eliasson49c293f2020-07-27 13:54:46 +000028 "video_decoder_factory.cc",
Magnus Jedvertd4b0c052017-09-14 10:24:54 +020029 "video_decoder_factory.h",
mflodman351424e2017-08-10 02:43:14 -070030 "video_encoder.cc",
ilnikd60d06a2017-04-05 03:02:20 -070031 "video_encoder.h",
Niels Möller0a8f4352018-05-18 11:37:23 +020032 "video_encoder_config.cc",
33 "video_encoder_config.h",
Magnus Jedvertd4b0c052017-09-14 10:24:54 +020034 "video_encoder_factory.h",
Elad Alonde3360e2019-03-06 21:14:54 +010035 "vp8_frame_buffer_controller.h",
Elad Alon411b49b2019-01-29 14:05:55 +010036 "vp8_frame_config.cc",
37 "vp8_frame_config.h",
Elad Aloncde8ab22019-03-20 11:56:20 +010038 "vp8_temporal_layers.cc",
Erik Språng4529fbc2018-10-12 10:30:31 +020039 "vp8_temporal_layers.h",
Johannes Kronc3fcee72021-04-19 09:09:26 +020040 "vp9_profile.cc",
41 "vp9_profile.h",
ilnikd60d06a2017-04-05 03:02:20 -070042 ]
43
44 deps = [
Elad Alon8f01c4e2019-06-28 15:19:43 +020045 "..:fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +010046 "..:scoped_refptr",
Johannes Kron20ee02c2021-04-20 15:53:52 +020047 "../../api:array_view",
Elad Alon411b49b2019-01-29 14:05:55 +010048 "../../modules/video_coding:codec_globals_headers",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010049 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070050 "../../rtc_base:rtc_base_approved",
Mirko Bonadei276827c2018-10-16 14:13:50 +020051 "../../rtc_base/system:rtc_export",
Erik Språng4d9df382019-03-27 15:00:43 +010052 "../units:data_rate",
Niels Möller4dc66c52018-10-05 14:17:58 +020053 "../video:encoded_image",
Erik Språngec475652018-05-15 15:12:55 +020054 "../video:video_bitrate_allocation",
Erik Språngf93eda12019-01-16 17:10:57 +010055 "../video:video_codec_constants",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020056 "../video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +020057 "../video:video_rtp_headers",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +020058 ]
59 absl_deps = [
Steve Antona59dcc32019-03-25 13:53:07 -070060 "//third_party/abseil-cpp/absl/algorithm:container",
Erik Språngdbdd8392019-01-17 15:27:50 +010061 "//third_party/abseil-cpp/absl/container:inlined_vector",
Niels Möller3c7d5992018-10-19 15:29:54 +020062 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +020063 "//third_party/abseil-cpp/absl/types:optional",
ilnikd60d06a2017-04-05 03:02:20 -070064 ]
65}
Anders Carlsson67537952018-05-03 11:28:29 +020066
Kári Tristan Helgasonb1633592019-03-22 11:19:08 +010067rtc_source_set("bitstream_parser_api") {
68 visibility = [ "*" ]
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +010069 sources = [ "bitstream_parser.h" ]
70 deps = [ "..:array_view" ]
Kári Tristan Helgasonb1633592019-03-22 11:19:08 +010071}
72
Mirko Bonadei86d053c2019-10-17 21:32:04 +020073rtc_library("builtin_video_decoder_factory") {
Anders Carlsson67537952018-05-03 11:28:29 +020074 visibility = [ "*" ]
75 allow_poison = [
76 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
77 "software_video_codecs",
78 ]
79 sources = [
80 "builtin_video_decoder_factory.cc",
81 "builtin_video_decoder_factory.h",
82 ]
83
84 deps = [
85 ":video_codecs_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +010086 "../../api:scoped_refptr",
Anders Carlsson67537952018-05-03 11:28:29 +020087 "../../media:rtc_internal_video_codecs",
Mirko Bonadeiac194142018-10-22 17:08:37 +020088 "../../rtc_base/system:rtc_export",
Anders Carlsson67537952018-05-03 11:28:29 +020089 ]
90}
91
Mirko Bonadei86d053c2019-10-17 21:32:04 +020092rtc_library("builtin_video_encoder_factory") {
Anders Carlsson67537952018-05-03 11:28:29 +020093 visibility = [ "*" ]
94 allow_poison = [
95 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
96 "software_video_codecs",
97 ]
98 sources = [
99 "builtin_video_encoder_factory.cc",
100 "builtin_video_encoder_factory.h",
101 ]
102
103 deps = [
104 ":video_codecs_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100105 "../../api:scoped_refptr",
Florent Castellie7862cc2018-12-06 13:38:24 +0100106 "../../media:rtc_encoder_simulcast_proxy",
Anders Carlsson67537952018-05-03 11:28:29 +0200107 "../../media:rtc_internal_video_codecs",
108 "../../media:rtc_media_base",
Yves Gerey3e707812018-11-28 16:47:49 +0100109 "../../rtc_base:checks",
Mirko Bonadeiac194142018-10-22 17:08:37 +0200110 "../../rtc_base/system:rtc_export",
Anders Carlsson67537952018-05-03 11:28:29 +0200111 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200112 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Anders Carlsson67537952018-05-03 11:28:29 +0200113}
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200114
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200115rtc_library("vp8_temporal_layers_factory") {
Erik Språng4529fbc2018-10-12 10:30:31 +0200116 visibility = [ "*" ]
117 allow_poison = [ "software_video_codecs" ]
118 sources = [
Elad Aloncde8ab22019-03-20 11:56:20 +0100119 "vp8_temporal_layers_factory.cc",
120 "vp8_temporal_layers_factory.h",
Erik Språng4529fbc2018-10-12 10:30:31 +0200121 ]
122
123 deps = [
124 ":video_codecs_api",
Elad Alon45befc52019-07-02 11:20:09 +0200125 "../:fec_controller_api",
Elad Aloncde8ab22019-03-20 11:56:20 +0100126 "../../modules/video_coding:video_coding_utility",
Erik Språng4529fbc2018-10-12 10:30:31 +0200127 "../../modules/video_coding:webrtc_vp8_temporal_layers",
Elad Aloncde8ab22019-03-20 11:56:20 +0100128 "../../rtc_base:checks",
Erik Språng4529fbc2018-10-12 10:30:31 +0200129 ]
130}
131
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200132rtc_library("rtc_software_fallback_wrappers") {
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200133 visibility = [ "*" ]
134
135 sources = [
136 "video_decoder_software_fallback_wrapper.cc",
137 "video_decoder_software_fallback_wrapper.h",
138 "video_encoder_software_fallback_wrapper.cc",
139 "video_encoder_software_fallback_wrapper.h",
140 ]
141
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200142 deps = [
143 ":video_codecs_api",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200144 "..:fec_controller_api",
Ilya Nikolaevskiy38e9b062020-10-08 14:36:33 +0000145 "../../api/video:video_frame",
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200146 "../../media:rtc_media_base",
147 "../../modules/video_coding:video_codec_interface",
Erik Språng261f7922020-01-31 13:51:12 +0100148 "../../modules/video_coding:video_coding_utility",
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200149 "../../rtc_base:checks",
150 "../../rtc_base:rtc_base_approved",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200151 "../../rtc_base/system:rtc_export",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200152 "../../system_wrappers:field_trial",
Johannes Kron57033032020-03-17 10:01:43 +0100153 "../../system_wrappers:metrics",
Yves Gerey3e707812018-11-28 16:47:49 +0100154 "../video:encoded_image",
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200155 "../video:video_bitrate_allocation",
Yves Gerey3e707812018-11-28 16:47:49 +0100156 "../video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200157 "../video:video_rtp_headers",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200158 ]
159 absl_deps = [
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +0100160 "//third_party/abseil-cpp/absl/base:core_headers",
Mirko Bonadei06d35592020-04-01 13:43:08 +0200161 "//third_party/abseil-cpp/absl/strings",
Yves Gerey3e707812018-11-28 16:47:49 +0100162 "//third_party/abseil-cpp/absl/types:optional",
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200163 ]
164}