2014-06-23 19:21:07 +00:00
|
|
|
# Copyright (c) 2014 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("../../build/webrtc.gni")
|
|
|
|
|
|
|
|
|
|
source_set("video_coding") {
|
|
|
|
|
sources = [
|
2015-11-18 22:00:21 +01:00
|
|
|
"codec_database.cc",
|
|
|
|
|
"codec_database.h",
|
|
|
|
|
"codec_timer.cc",
|
|
|
|
|
"codec_timer.h",
|
|
|
|
|
"content_metrics_processing.cc",
|
|
|
|
|
"content_metrics_processing.h",
|
|
|
|
|
"decoding_state.cc",
|
|
|
|
|
"decoding_state.h",
|
|
|
|
|
"encoded_frame.cc",
|
|
|
|
|
"encoded_frame.h",
|
|
|
|
|
"fec_tables_xor.h",
|
|
|
|
|
"frame_buffer.cc",
|
|
|
|
|
"frame_buffer.h",
|
|
|
|
|
"generic_decoder.cc",
|
|
|
|
|
"generic_decoder.h",
|
|
|
|
|
"generic_encoder.cc",
|
|
|
|
|
"generic_encoder.h",
|
|
|
|
|
"include/video_coding.h",
|
|
|
|
|
"include/video_coding_defines.h",
|
|
|
|
|
"inter_frame_delay.cc",
|
|
|
|
|
"inter_frame_delay.h",
|
|
|
|
|
"internal_defines.h",
|
|
|
|
|
"jitter_buffer.cc",
|
|
|
|
|
"jitter_buffer.h",
|
|
|
|
|
"jitter_buffer_common.h",
|
|
|
|
|
"jitter_estimator.cc",
|
|
|
|
|
"jitter_estimator.h",
|
|
|
|
|
"media_opt_util.cc",
|
|
|
|
|
"media_opt_util.h",
|
|
|
|
|
"media_optimization.cc",
|
|
|
|
|
"media_optimization.h",
|
|
|
|
|
"nack_fec_tables.h",
|
|
|
|
|
"packet.cc",
|
|
|
|
|
"packet.h",
|
|
|
|
|
"qm_select.cc",
|
|
|
|
|
"qm_select.h",
|
|
|
|
|
"qm_select_data.h",
|
|
|
|
|
"receiver.cc",
|
|
|
|
|
"receiver.h",
|
|
|
|
|
"rtt_filter.cc",
|
|
|
|
|
"rtt_filter.h",
|
|
|
|
|
"session_info.cc",
|
|
|
|
|
"session_info.h",
|
|
|
|
|
"timestamp_map.cc",
|
|
|
|
|
"timestamp_map.h",
|
|
|
|
|
"timing.cc",
|
|
|
|
|
"timing.h",
|
|
|
|
|
"video_coding_impl.cc",
|
|
|
|
|
"video_coding_impl.h",
|
|
|
|
|
"video_receiver.cc",
|
|
|
|
|
"video_sender.cc",
|
2014-06-23 19:21:07 +00:00
|
|
|
]
|
|
|
|
|
|
2014-09-28 17:37:22 +00:00
|
|
|
configs += [ "../..:common_config" ]
|
|
|
|
|
public_configs = [ "../..:common_inherited_config" ]
|
|
|
|
|
|
2015-01-08 21:22:01 +00:00
|
|
|
if (is_win) {
|
|
|
|
|
cflags = [
|
|
|
|
|
# TODO(jschuh): Bug 1348: fix this warning.
|
|
|
|
|
"/wd4267", # size_t to int truncation.
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2014-08-25 14:15:35 +00:00
|
|
|
if (is_clang) {
|
|
|
|
|
# Suppress warnings from Chrome's Clang plugins.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
|
|
|
|
configs -= [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-23 19:21:07 +00:00
|
|
|
deps = [
|
|
|
|
|
":video_coding_utility",
|
2015-06-29 14:34:58 -07:00
|
|
|
":webrtc_h264",
|
2014-06-23 19:21:07 +00:00
|
|
|
":webrtc_i420",
|
|
|
|
|
":webrtc_vp8",
|
2014-11-01 06:10:48 +00:00
|
|
|
":webrtc_vp9",
|
2015-02-26 13:59:22 +00:00
|
|
|
"../..:webrtc_common",
|
2014-06-23 19:21:07 +00:00
|
|
|
"../../common_video",
|
|
|
|
|
"../../system_wrappers",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
source_set("video_coding_utility") {
|
2014-07-07 11:46:43 +00:00
|
|
|
sources = [
|
|
|
|
|
"utility/frame_dropper.cc",
|
2015-11-18 23:04:10 +01:00
|
|
|
"utility/frame_dropper.h",
|
|
|
|
|
"utility/moving_average.h",
|
2015-10-20 23:55:26 -07:00
|
|
|
"utility/qp_parser.cc",
|
2015-11-18 23:04:10 +01:00
|
|
|
"utility/qp_parser.h",
|
2014-09-30 18:05:02 +00:00
|
|
|
"utility/quality_scaler.cc",
|
2015-11-18 23:04:10 +01:00
|
|
|
"utility/quality_scaler.h",
|
2015-05-21 11:12:02 -07:00
|
|
|
"utility/vp8_header_parser.cc",
|
2015-11-18 23:04:10 +01:00
|
|
|
"utility/vp8_header_parser.h",
|
2014-07-07 11:46:43 +00:00
|
|
|
]
|
|
|
|
|
|
2014-09-28 17:37:22 +00:00
|
|
|
configs += [ "../..:common_config" ]
|
|
|
|
|
public_configs = [ "../..:common_inherited_config" ]
|
|
|
|
|
|
2014-08-25 14:15:35 +00:00
|
|
|
if (is_clang) {
|
|
|
|
|
# Suppress warnings from Chrome's Clang plugins.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
|
|
|
|
configs -= [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
|
2015-05-25 12:55:39 +02:00
|
|
|
deps = [
|
|
|
|
|
"../../system_wrappers",
|
|
|
|
|
]
|
2014-06-23 19:21:07 +00:00
|
|
|
}
|
|
|
|
|
|
2015-06-29 14:34:58 -07:00
|
|
|
source_set("webrtc_h264") {
|
|
|
|
|
sources = [
|
|
|
|
|
"codecs/h264/h264.cc",
|
|
|
|
|
"codecs/h264/include/h264.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
configs += [ "../..:common_config" ]
|
|
|
|
|
public_configs = [ "../..:common_inherited_config" ]
|
|
|
|
|
|
|
|
|
|
if (is_clang) {
|
|
|
|
|
# Suppress warnings from Chrome's Clang plugins.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
|
|
|
|
configs -= [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-27 01:36:03 -08:00
|
|
|
defines = []
|
2015-06-29 14:34:58 -07:00
|
|
|
deps = [
|
|
|
|
|
"../../system_wrappers",
|
|
|
|
|
]
|
2016-01-11 10:19:02 -08:00
|
|
|
|
2016-01-21 03:34:40 -08:00
|
|
|
if (rtc_use_h264) {
|
2016-01-27 01:36:03 -08:00
|
|
|
defines += [ "WEBRTC_THIRD_PARTY_H264" ]
|
2016-02-02 02:26:05 -08:00
|
|
|
if (rtc_initialize_ffmpeg) {
|
|
|
|
|
defines += [ "WEBRTC_INITIALIZE_FFMPEG" ]
|
|
|
|
|
}
|
2016-01-27 01:36:03 -08:00
|
|
|
sources += [
|
|
|
|
|
"codecs/h264/h264_decoder_impl.cc",
|
|
|
|
|
"codecs/h264/h264_decoder_impl.h",
|
|
|
|
|
"codecs/h264/h264_encoder_impl.cc",
|
|
|
|
|
"codecs/h264/h264_encoder_impl.h",
|
|
|
|
|
]
|
2016-01-11 10:19:02 -08:00
|
|
|
deps += [
|
|
|
|
|
"//third_party/ffmpeg:ffmpeg",
|
|
|
|
|
"//third_party/openh264:encoder",
|
|
|
|
|
]
|
|
|
|
|
}
|
2015-06-29 14:34:58 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# TODO(tkchin): Source set for webrtc_h264_video_toolbox. Currently not
|
|
|
|
|
# possible to add, see https://crbug.com/297668.
|
|
|
|
|
|
2014-06-23 19:21:07 +00:00
|
|
|
source_set("webrtc_i420") {
|
2014-07-07 11:46:43 +00:00
|
|
|
sources = [
|
2015-10-22 12:23:11 +02:00
|
|
|
"codecs/i420/i420.cc",
|
|
|
|
|
"codecs/i420/include/i420.h",
|
2014-07-07 11:46:43 +00:00
|
|
|
]
|
|
|
|
|
|
2014-09-28 17:37:22 +00:00
|
|
|
configs += [ "../..:common_config" ]
|
|
|
|
|
public_configs = [ "../..:common_inherited_config" ]
|
|
|
|
|
|
2014-08-25 14:15:35 +00:00
|
|
|
if (is_clang) {
|
|
|
|
|
# Suppress warnings from Chrome's Clang plugins.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
|
|
|
|
configs -= [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
|
2015-05-25 12:55:39 +02:00
|
|
|
deps = [
|
|
|
|
|
"../../system_wrappers",
|
|
|
|
|
]
|
2014-06-23 19:21:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
source_set("webrtc_vp8") {
|
2014-07-07 11:46:43 +00:00
|
|
|
sources = [
|
2014-09-30 18:05:02 +00:00
|
|
|
"codecs/vp8/default_temporal_layers.cc",
|
|
|
|
|
"codecs/vp8/default_temporal_layers.h",
|
2014-12-09 10:36:40 +00:00
|
|
|
"codecs/vp8/include/vp8.h",
|
|
|
|
|
"codecs/vp8/include/vp8_common_types.h",
|
2014-09-30 18:05:02 +00:00
|
|
|
"codecs/vp8/realtime_temporal_layers.cc",
|
|
|
|
|
"codecs/vp8/reference_picture_selection.cc",
|
|
|
|
|
"codecs/vp8/reference_picture_selection.h",
|
2014-12-09 10:36:40 +00:00
|
|
|
"codecs/vp8/screenshare_layers.cc",
|
|
|
|
|
"codecs/vp8/screenshare_layers.h",
|
|
|
|
|
"codecs/vp8/simulcast_encoder_adapter.cc",
|
|
|
|
|
"codecs/vp8/simulcast_encoder_adapter.h",
|
2014-07-07 11:46:43 +00:00
|
|
|
"codecs/vp8/temporal_layers.h",
|
2014-09-30 18:05:02 +00:00
|
|
|
"codecs/vp8/vp8_impl.cc",
|
|
|
|
|
"codecs/vp8/vp8_impl.h",
|
2014-07-07 11:46:43 +00:00
|
|
|
]
|
2014-08-25 14:15:35 +00:00
|
|
|
|
2014-09-28 17:37:22 +00:00
|
|
|
configs += [ "../..:common_config" ]
|
|
|
|
|
public_configs = [ "../..:common_inherited_config" ]
|
|
|
|
|
|
2014-08-25 14:15:35 +00:00
|
|
|
if (is_clang) {
|
|
|
|
|
# Suppress warnings from Chrome's Clang plugins.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
|
|
|
|
configs -= [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-08 21:22:01 +00:00
|
|
|
if (is_win) {
|
|
|
|
|
cflags = [
|
|
|
|
|
# TODO(jschuh): Bug 1348: fix this warning.
|
|
|
|
|
"/wd4267", # size_t to int truncation.
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2014-07-07 11:46:43 +00:00
|
|
|
deps = [
|
|
|
|
|
":video_coding_utility",
|
2015-02-26 13:59:22 +00:00
|
|
|
"../..:webrtc_common",
|
2014-07-07 11:46:43 +00:00
|
|
|
"../../common_video",
|
|
|
|
|
"../../system_wrappers",
|
|
|
|
|
]
|
2014-09-30 18:05:02 +00:00
|
|
|
if (rtc_build_libvpx) {
|
2015-05-25 12:55:39 +02:00
|
|
|
deps += [ rtc_libvpx_dir ]
|
2014-09-30 18:05:02 +00:00
|
|
|
}
|
2014-06-23 19:21:07 +00:00
|
|
|
}
|
2014-11-01 06:10:48 +00:00
|
|
|
|
|
|
|
|
source_set("webrtc_vp9") {
|
2015-11-17 15:27:32 +01:00
|
|
|
sources = [
|
|
|
|
|
"codecs/vp9/include/vp9.h",
|
|
|
|
|
"codecs/vp9/screenshare_layers.cc",
|
|
|
|
|
"codecs/vp9/screenshare_layers.h",
|
|
|
|
|
"codecs/vp9/vp9_frame_buffer_pool.cc",
|
|
|
|
|
"codecs/vp9/vp9_frame_buffer_pool.h",
|
|
|
|
|
"codecs/vp9/vp9_impl.cc",
|
|
|
|
|
"codecs/vp9/vp9_impl.h",
|
|
|
|
|
]
|
2014-11-01 06:10:48 +00:00
|
|
|
|
|
|
|
|
configs += [ "../..:common_config" ]
|
|
|
|
|
public_configs = [ "../..:common_inherited_config" ]
|
|
|
|
|
|
|
|
|
|
if (is_clang) {
|
|
|
|
|
# Suppress warnings from Chrome's Clang plugins.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
|
|
|
|
configs -= [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":video_coding_utility",
|
|
|
|
|
"../../common_video",
|
|
|
|
|
"../../system_wrappers",
|
|
|
|
|
]
|
|
|
|
|
if (rtc_build_libvpx) {
|
2015-05-25 12:55:39 +02:00
|
|
|
deps += [ rtc_libvpx_dir ]
|
2014-11-01 06:10:48 +00:00
|
|
|
}
|
|
|
|
|
}
|