2018-05-11 11:15:30 +02:00
|
|
|
# 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")
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("video_rtp_headers") {
|
2019-06-10 12:59:38 +02:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
2019-06-17 11:10:00 +02:00
|
|
|
"color_space.cc",
|
|
|
|
|
"color_space.h",
|
|
|
|
|
"hdr_metadata.cc",
|
|
|
|
|
"hdr_metadata.h",
|
|
|
|
|
"video_content_type.cc",
|
|
|
|
|
"video_content_type.h",
|
|
|
|
|
"video_frame_marking.h",
|
|
|
|
|
"video_rotation.h",
|
|
|
|
|
"video_timing.cc",
|
|
|
|
|
"video_timing.h",
|
2019-06-10 12:59:38 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"..:array_view",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
2019-09-23 14:54:28 +02:00
|
|
|
"../../rtc_base/system:rtc_export",
|
2019-06-10 12:59:38 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("video_frame") {
|
2018-05-11 11:15:30 +02:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
2018-11-20 11:06:58 +01:00
|
|
|
"video_codec_type.h",
|
2018-05-11 11:15:30 +02:00
|
|
|
"video_frame.cc",
|
|
|
|
|
"video_frame.h",
|
|
|
|
|
"video_frame_buffer.cc",
|
|
|
|
|
"video_frame_buffer.h",
|
|
|
|
|
"video_sink_interface.h",
|
2018-05-21 14:09:31 +02:00
|
|
|
"video_source_interface.cc",
|
|
|
|
|
"video_source_interface.h",
|
2018-05-11 11:15:30 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2019-06-10 12:59:38 +02:00
|
|
|
":video_rtp_headers",
|
2018-11-28 16:47:49 +01:00
|
|
|
"..:array_view",
|
2019-11-15 16:18:21 +01:00
|
|
|
"..:refcountedbase",
|
2019-06-17 11:10:00 +02:00
|
|
|
"..:rtp_packet_info",
|
2019-01-25 20:26:48 +01:00
|
|
|
"..:scoped_refptr",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
2018-10-22 17:08:37 +02:00
|
|
|
"../../rtc_base/system:rtc_export",
|
2018-06-21 13:32:56 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2018-05-11 11:15:30 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-21 15:43:58 +01:00
|
|
|
rtc_source_set("video_frame_type") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"video_frame_type.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("video_frame_i420") {
|
2018-05-11 11:15:30 +02:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"i420_buffer.cc",
|
|
|
|
|
"i420_buffer.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":video_frame",
|
2019-06-10 12:59:38 +02:00
|
|
|
":video_rtp_headers",
|
2019-01-25 20:26:48 +01:00
|
|
|
"..:scoped_refptr",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../rtc_base",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
"../../rtc_base/memory:aligned_malloc",
|
2018-10-24 16:22:04 +02:00
|
|
|
"../../rtc_base/system:rtc_export",
|
2018-05-11 11:15:30 +02:00
|
|
|
"//third_party/libyuv",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("video_frame_i010") {
|
2018-06-26 12:22:38 -07:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"i010_buffer.cc",
|
|
|
|
|
"i010_buffer.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":video_frame",
|
|
|
|
|
":video_frame_i420",
|
2019-06-10 12:59:38 +02:00
|
|
|
":video_rtp_headers",
|
2019-01-25 20:26:48 +01:00
|
|
|
"..:scoped_refptr",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../rtc_base",
|
2018-06-26 12:22:38 -07:00
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
"../../rtc_base/memory:aligned_malloc",
|
|
|
|
|
"//third_party/libyuv",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("encoded_image") {
|
2019-07-23 08:44:51 +02:00
|
|
|
visibility = [ "*" ]
|
2018-10-05 14:17:58 +02:00
|
|
|
sources = [
|
|
|
|
|
"encoded_image.cc",
|
|
|
|
|
"encoded_image.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2019-02-15 09:33:37 +01:00
|
|
|
":video_codec_constants",
|
2018-10-05 14:17:58 +02:00
|
|
|
":video_frame",
|
2019-03-21 15:43:58 +01:00
|
|
|
":video_frame_type",
|
2019-06-10 12:59:38 +02:00
|
|
|
":video_rtp_headers",
|
2019-06-18 15:56:56 +02:00
|
|
|
"..:refcountedbase",
|
2019-06-10 12:59:38 +02:00
|
|
|
"..:rtp_packet_info",
|
2019-06-18 15:56:56 +02:00
|
|
|
"..:scoped_refptr",
|
2018-10-05 14:17:58 +02:00
|
|
|
"../..:webrtc_common",
|
|
|
|
|
"../../rtc_base:checks",
|
2019-10-03 08:43:53 +02:00
|
|
|
"../../rtc_base:deprecation",
|
2018-10-05 14:17:58 +02:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2018-10-22 17:08:37 +02:00
|
|
|
"../../rtc_base/system:rtc_export",
|
2018-10-05 14:17:58 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("encoded_frame") {
|
2018-05-11 11:15:30 +02:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"encoded_frame.cc",
|
|
|
|
|
"encoded_frame.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"../../modules/video_coding:encoded_frame",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-16 17:10:57 +01:00
|
|
|
rtc_source_set("video_codec_constants") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"video_codec_constants.h",
|
|
|
|
|
]
|
|
|
|
|
deps = []
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("video_bitrate_allocation") {
|
2018-05-11 11:15:30 +02:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"video_bitrate_allocation.cc",
|
|
|
|
|
"video_bitrate_allocation.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2019-01-16 17:10:57 +01:00
|
|
|
":video_codec_constants",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
"../../rtc_base:safe_conversions",
|
|
|
|
|
"../../rtc_base:stringutils",
|
2019-04-02 11:33:59 +02:00
|
|
|
"../../rtc_base/system:rtc_export",
|
2018-06-21 13:32:56 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2018-05-11 11:15:30 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("video_bitrate_allocator") {
|
2018-07-20 15:49:43 -07:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
2019-08-02 15:16:28 +02:00
|
|
|
"video_bitrate_allocator.cc",
|
2018-07-20 15:49:43 -07:00
|
|
|
"video_bitrate_allocator.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":video_bitrate_allocation",
|
2019-08-02 15:16:28 +02:00
|
|
|
"../units:data_rate",
|
2018-07-20 15:49:43 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-08-13 10:21:21 -07:00
|
|
|
rtc_source_set("video_bitrate_allocator_factory") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"video_bitrate_allocator_factory.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":video_bitrate_allocator",
|
2019-04-17 07:38:40 +02:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2018-08-21 16:29:36 -07:00
|
|
|
"../video_codecs:video_codecs_api",
|
2018-08-13 10:21:21 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-11 11:15:30 +02:00
|
|
|
rtc_source_set("video_stream_decoder") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"video_stream_decoder.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":encoded_frame",
|
|
|
|
|
":video_frame",
|
2019-04-08 16:59:28 +02:00
|
|
|
"../task_queue",
|
2019-06-04 17:10:37 +02:00
|
|
|
"../units:time_delta",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../video_codecs:video_codecs_api",
|
2018-06-21 13:32:56 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2018-05-11 11:15:30 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("video_stream_decoder_create") {
|
2018-05-11 11:15:30 +02:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"video_stream_decoder_create.cc",
|
|
|
|
|
"video_stream_decoder_create.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":video_stream_decoder",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
"../../video:video_stream_decoder_impl",
|
2019-04-08 16:59:28 +02:00
|
|
|
"../task_queue",
|
|
|
|
|
"../video_codecs:video_codecs_api",
|
2018-05-11 11:15:30 +02:00
|
|
|
]
|
|
|
|
|
}
|
2018-05-21 14:09:31 +02:00
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("video_stream_encoder") {
|
2018-05-21 14:09:31 +02:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"video_stream_encoder_interface.h",
|
2018-08-28 16:30:18 +02:00
|
|
|
"video_stream_encoder_observer.cc",
|
2018-07-24 09:29:58 +02:00
|
|
|
"video_stream_encoder_observer.h",
|
|
|
|
|
"video_stream_encoder_settings.h",
|
2018-05-21 14:09:31 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2019-09-09 11:26:45 +02:00
|
|
|
":video_bitrate_allocation",
|
2019-01-22 10:35:42 +01:00
|
|
|
":video_bitrate_allocator",
|
2018-11-08 10:02:56 -08:00
|
|
|
":video_bitrate_allocator_factory",
|
2019-09-09 11:26:45 +02:00
|
|
|
":video_codec_constants",
|
2018-05-21 14:09:31 +02:00
|
|
|
":video_frame",
|
2019-08-29 12:16:56 +02:00
|
|
|
"..:rtp_parameters",
|
2019-06-28 15:19:43 +02:00
|
|
|
"../:fec_controller_api",
|
2019-08-26 10:45:28 +02:00
|
|
|
"../:rtp_parameters",
|
2019-03-06 15:37:33 +01:00
|
|
|
"../units:data_rate",
|
2018-05-21 14:09:31 +02:00
|
|
|
"../video_codecs:video_codecs_api",
|
2018-07-24 09:29:58 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("video_stream_encoder_create") {
|
2018-07-24 09:29:58 +02:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"video_stream_encoder_create.cc",
|
|
|
|
|
"video_stream_encoder_create.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2018-11-28 16:47:49 +01:00
|
|
|
":video_frame",
|
2018-07-24 09:29:58 +02:00
|
|
|
":video_stream_encoder",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../../api:scoped_refptr",
|
2018-07-24 09:29:58 +02:00
|
|
|
"../../video:video_stream_encoder_impl",
|
2019-03-01 11:50:20 +01:00
|
|
|
"../task_queue",
|
2018-07-24 09:29:58 +02:00
|
|
|
"../video_codecs:video_codecs_api",
|
2018-05-21 14:09:31 +02:00
|
|
|
]
|
|
|
|
|
}
|
2018-11-08 10:02:56 -08:00
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("builtin_video_bitrate_allocator_factory") {
|
2018-11-08 10:02:56 -08:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"builtin_video_bitrate_allocator_factory.cc",
|
|
|
|
|
"builtin_video_bitrate_allocator_factory.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":video_bitrate_allocation",
|
2018-11-28 16:47:49 +01:00
|
|
|
":video_bitrate_allocator",
|
2018-11-08 10:02:56 -08:00
|
|
|
":video_bitrate_allocator_factory",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../../:webrtc_common",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../../api:scoped_refptr",
|
2018-11-08 10:02:56 -08:00
|
|
|
"../../media:rtc_media_base",
|
|
|
|
|
"../../modules/video_coding:video_coding_utility",
|
|
|
|
|
"../../modules/video_coding:webrtc_vp9_helpers",
|
|
|
|
|
"../../rtc_base/system:fallthrough",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../video_codecs:video_codecs_api",
|
2018-11-08 10:02:56 -08:00
|
|
|
]
|
|
|
|
|
}
|
2019-04-08 16:59:28 +02:00
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("video_unittests") {
|
2019-04-08 16:59:28 +02:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"video_stream_decoder_create_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":video_stream_decoder_create",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
"../task_queue:default_task_queue_factory",
|
|
|
|
|
"../video_codecs:builtin_video_decoder_factory",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|