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.
|
|
|
|
|
|
2017-01-24 06:58:22 -08:00
|
|
|
import("../../webrtc.gni")
|
2014-06-23 19:21:07 +00:00
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("video_coding") {
|
2014-06-23 19:21:07 +00:00
|
|
|
sources = [
|
2015-11-18 22:00:21 +01:00
|
|
|
"codec_database.cc",
|
|
|
|
|
"codec_database.h",
|
|
|
|
|
"codec_timer.cc",
|
|
|
|
|
"codec_timer.h",
|
|
|
|
|
"decoding_state.cc",
|
|
|
|
|
"decoding_state.h",
|
|
|
|
|
"encoded_frame.cc",
|
|
|
|
|
"encoded_frame.h",
|
2017-01-12 06:16:24 -08:00
|
|
|
"fec_rate_table.h",
|
2015-11-18 22:00:21 +01:00
|
|
|
"frame_buffer.cc",
|
|
|
|
|
"frame_buffer.h",
|
2016-05-19 12:19:35 +02:00
|
|
|
"frame_buffer2.cc",
|
|
|
|
|
"frame_buffer2.h",
|
2016-04-01 02:01:54 -07:00
|
|
|
"frame_object.cc",
|
|
|
|
|
"frame_object.h",
|
2015-11-18 22:00:21 +01:00
|
|
|
"generic_decoder.cc",
|
|
|
|
|
"generic_decoder.h",
|
|
|
|
|
"generic_encoder.cc",
|
|
|
|
|
"generic_encoder.h",
|
2016-12-08 03:57:17 -08:00
|
|
|
"h264_sprop_parameter_sets.cc",
|
|
|
|
|
"h264_sprop_parameter_sets.h",
|
2016-11-03 04:03:01 -07:00
|
|
|
"h264_sps_pps_tracker.cc",
|
|
|
|
|
"h264_sps_pps_tracker.h",
|
2016-03-12 03:30:23 -08:00
|
|
|
"histogram.cc",
|
|
|
|
|
"histogram.h",
|
2016-11-16 16:41:30 +01:00
|
|
|
"include/video_codec_initializer.h",
|
2015-11-18 22:00:21 +01:00
|
|
|
"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",
|
2016-03-12 03:30:23 -08:00
|
|
|
"nack_module.cc",
|
|
|
|
|
"nack_module.h",
|
2015-11-18 22:00:21 +01:00
|
|
|
"packet.cc",
|
|
|
|
|
"packet.h",
|
2016-04-01 02:01:54 -07:00
|
|
|
"packet_buffer.cc",
|
|
|
|
|
"packet_buffer.h",
|
2016-06-02 15:45:42 +02:00
|
|
|
"protection_bitrate_calculator.cc",
|
|
|
|
|
"protection_bitrate_calculator.h",
|
2017-03-08 05:42:26 -08:00
|
|
|
"qp_parser.cc",
|
|
|
|
|
"qp_parser.h",
|
2015-11-18 22:00:21 +01:00
|
|
|
"receiver.cc",
|
|
|
|
|
"receiver.h",
|
2016-05-13 06:01:03 -07:00
|
|
|
"rtp_frame_reference_finder.cc",
|
|
|
|
|
"rtp_frame_reference_finder.h",
|
2015-11-18 22:00:21 +01:00
|
|
|
"rtt_filter.cc",
|
|
|
|
|
"rtt_filter.h",
|
|
|
|
|
"session_info.cc",
|
|
|
|
|
"session_info.h",
|
|
|
|
|
"timestamp_map.cc",
|
|
|
|
|
"timestamp_map.h",
|
|
|
|
|
"timing.cc",
|
|
|
|
|
"timing.h",
|
2016-11-16 16:41:30 +01:00
|
|
|
"video_codec_initializer.cc",
|
2015-11-18 22:00:21 +01:00
|
|
|
"video_coding_impl.cc",
|
|
|
|
|
"video_coding_impl.h",
|
|
|
|
|
"video_receiver.cc",
|
|
|
|
|
"video_sender.cc",
|
2014-06-23 19:21:07 +00:00
|
|
|
]
|
|
|
|
|
|
2016-06-02 02:09:52 -07:00
|
|
|
# TODO(jschuh): Bug 1348: fix this warning.
|
|
|
|
|
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
2015-01-08 21:22:01 +00:00
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2014-08-25 14:15:35 +00:00
|
|
|
}
|
|
|
|
|
|
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",
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2017-04-25 23:42:15 -07:00
|
|
|
"../..:video_stream_api",
|
2015-02-26 13:59:22 +00:00
|
|
|
"../..:webrtc_common",
|
2016-12-08 09:56:16 -08:00
|
|
|
"../../base:rtc_base",
|
|
|
|
|
"../../base:rtc_base_approved",
|
2017-01-13 09:14:33 -08:00
|
|
|
"../../base:rtc_numerics",
|
2016-12-08 09:56:16 -08:00
|
|
|
"../../base:rtc_task_queue",
|
2014-06-23 19:21:07 +00:00
|
|
|
"../../common_video",
|
|
|
|
|
"../../system_wrappers",
|
2016-12-08 09:56:16 -08:00
|
|
|
"../rtp_rtcp:rtp_rtcp",
|
|
|
|
|
"../utility:utility",
|
2014-06-23 19:21:07 +00:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("video_coding_utility") {
|
2014-07-07 11:46:43 +00:00
|
|
|
sources = [
|
2016-11-16 16:41:30 +01:00
|
|
|
"utility/default_video_bitrate_allocator.cc",
|
|
|
|
|
"utility/default_video_bitrate_allocator.h",
|
2014-07-07 11:46:43 +00:00
|
|
|
"utility/frame_dropper.cc",
|
2015-11-18 23:04:10 +01:00
|
|
|
"utility/frame_dropper.h",
|
2016-04-15 01:24:14 -07:00
|
|
|
"utility/ivf_file_writer.cc",
|
|
|
|
|
"utility/ivf_file_writer.h",
|
2016-09-14 02:14:58 -07:00
|
|
|
"utility/moving_average.cc",
|
2015-11-18 23:04:10 +01:00
|
|
|
"utility/moving_average.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",
|
2017-05-24 10:00:16 -07:00
|
|
|
"utility/vp9_uncompressed_header_parser.cc",
|
|
|
|
|
"utility/vp9_uncompressed_header_parser.h",
|
2014-07-07 11:46:43 +00:00
|
|
|
]
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2014-08-25 14:15:35 +00:00
|
|
|
}
|
|
|
|
|
|
2015-05-25 12:55:39 +02:00
|
|
|
deps = [
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2016-12-08 09:56:16 -08:00
|
|
|
"../..:webrtc_common",
|
2017-04-05 03:02:20 -07:00
|
|
|
"../../api/video_codecs:video_codecs_api",
|
2016-12-08 09:56:16 -08:00
|
|
|
"../../base:rtc_base_approved",
|
2017-01-13 09:14:33 -08:00
|
|
|
"../../base:rtc_numerics",
|
2017-03-08 05:42:26 -08:00
|
|
|
"../../base:rtc_task_queue",
|
2016-07-14 23:35:55 -07:00
|
|
|
"../../common_video",
|
2017-03-08 05:42:26 -08:00
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp",
|
2015-05-25 12:55:39 +02:00
|
|
|
"../../system_wrappers",
|
|
|
|
|
]
|
2014-06-23 19:21:07 +00:00
|
|
|
}
|
|
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("webrtc_h264") {
|
2015-06-29 14:34:58 -07:00
|
|
|
sources = [
|
|
|
|
|
"codecs/h264/h264.cc",
|
|
|
|
|
"codecs/h264/include/h264.h",
|
|
|
|
|
]
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2015-06-29 14:34:58 -07:00
|
|
|
}
|
|
|
|
|
|
2016-01-27 01:36:03 -08:00
|
|
|
defines = []
|
2015-06-29 14:34:58 -07:00
|
|
|
deps = [
|
2016-12-08 09:56:16 -08:00
|
|
|
":video_coding_utility",
|
|
|
|
|
"../../base:rtc_base_approved",
|
2017-02-28 00:28:04 -08:00
|
|
|
"../../media:rtc_media_base",
|
2015-06-29 14:34:58 -07:00
|
|
|
"../../system_wrappers",
|
|
|
|
|
]
|
2016-01-11 10:19:02 -08:00
|
|
|
|
2016-01-21 03:34:40 -08:00
|
|
|
if (rtc_use_h264) {
|
2016-02-03 05:09:37 -08:00
|
|
|
defines += [ "WEBRTC_USE_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 += [
|
2016-02-07 23:04:26 -08:00
|
|
|
"../../common_video",
|
2016-12-06 05:36:03 -08:00
|
|
|
"../../media:rtc_media_base",
|
2016-01-11 10:19:02 -08:00
|
|
|
"//third_party/ffmpeg:ffmpeg",
|
|
|
|
|
"//third_party/openh264:encoder",
|
|
|
|
|
]
|
|
|
|
|
}
|
2015-06-29 14:34:58 -07:00
|
|
|
}
|
|
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("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
|
|
|
]
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2014-08-25 14:15:35 +00:00
|
|
|
}
|
|
|
|
|
|
2015-05-25 12:55:39 +02:00
|
|
|
deps = [
|
2016-12-08 09:56:16 -08:00
|
|
|
"../..:webrtc_common",
|
|
|
|
|
"../../base:rtc_base_approved",
|
|
|
|
|
"../../common_video:common_video",
|
2015-05-25 12:55:39 +02:00
|
|
|
"../../system_wrappers",
|
|
|
|
|
]
|
2014-06-23 19:21:07 +00:00
|
|
|
}
|
|
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("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",
|
|
|
|
|
"codecs/vp8/screenshare_layers.cc",
|
|
|
|
|
"codecs/vp8/screenshare_layers.h",
|
|
|
|
|
"codecs/vp8/simulcast_encoder_adapter.cc",
|
|
|
|
|
"codecs/vp8/simulcast_encoder_adapter.h",
|
2017-03-08 05:42:26 -08:00
|
|
|
"codecs/vp8/simulcast_rate_allocator.cc",
|
|
|
|
|
"codecs/vp8/simulcast_rate_allocator.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
|
|
|
|
2016-06-02 02:09:52 -07:00
|
|
|
# TODO(jschuh): Bug 1348: fix this warning.
|
|
|
|
|
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2014-08-25 14:15:35 +00:00
|
|
|
}
|
|
|
|
|
|
2014-07-07 11:46:43 +00:00
|
|
|
deps = [
|
|
|
|
|
":video_coding_utility",
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2015-02-26 13:59:22 +00:00
|
|
|
"../..:webrtc_common",
|
2017-04-05 03:02:20 -07:00
|
|
|
"../../api/video_codecs:video_codecs_api",
|
2016-12-08 09:56:16 -08:00
|
|
|
"../../base:rtc_base_approved",
|
Reland of use allocated encoders in SimulcastEncoderAdapter. (patchset #1 id:1 of https://codereview.webrtc.org/2893003002/ )
Reason for reland:
Chrome encoder implementation fixed.
Original issue's description:
> Revert of Reuse allocated encoders in SimulcastEncoderAdapter. (patchset #15 id:320001 of https://codereview.webrtc.org/2830793005/ )
>
> Reason for revert:
> Breaks Chrome tests.
>
> Original issue's description:
> > Reuse allocated encoders in SimulcastEncoderAdapter.
> >
> > Prior to this change, the SimulcastEncoderAdapter would destroy and create
> > encoders whenever it is being reinitialized. After this change, the
> > SimulcastEncoderAdapter will cache the already allocated encoders, and reuse
> > them after reinitialization.
> >
> > This change will help in reducing the number of PictureID "jumps" that have
> > been seen around encoder reinitialization.
> >
> > TESTED=AppRTCMobile, Chrome desktop, and internal app, with forced encoder reinits every 30 frames and https://codereview.webrtc.org/2833493003/ applied.
> > BUG=webrtc:7475
> >
> > Review-Url: https://codereview.webrtc.org/2830793005
> > Cr-Commit-Position: refs/heads/master@{#18215}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/0b8bfb9d98b7a2011d80bcdf3f430bc040370dad
>
> TBR=stefan@webrtc.org,noahric@chromium.org,glaznev@webrtc.org,sprang@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:7475
>
> Review-Url: https://codereview.webrtc.org/2893003002
> Cr-Commit-Position: refs/heads/master@{#18216}
> Committed: https://chromium.googlesource.com/external/webrtc/+/56e119e2e8b30d2d41c55c3a7983b077a5262718
TBR=stefan@webrtc.org,noahric@chromium.org,glaznev@webrtc.org,sprang@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:7475
Review-Url: https://codereview.webrtc.org/2901493002
Cr-Commit-Position: refs/heads/master@{#18228}
2017-05-23 03:32:16 -07:00
|
|
|
"../../base:rtc_task_queue",
|
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
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("webrtc_vp9") {
|
2016-10-05 06:52:22 -07:00
|
|
|
if (rtc_libvpx_build_vp9) {
|
|
|
|
|
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",
|
|
|
|
|
]
|
|
|
|
|
} else {
|
|
|
|
|
sources = [
|
|
|
|
|
"codecs/vp9/vp9_noop.cc",
|
|
|
|
|
]
|
|
|
|
|
}
|
2014-11-01 06:10:48 +00:00
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2014-11-01 06:10:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":video_coding_utility",
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2016-12-08 09:56:16 -08:00
|
|
|
"../../base:rtc_base_approved",
|
2014-11-01 06:10:48 +00:00
|
|
|
"../../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
|
|
|
}
|
|
|
|
|
}
|
2016-06-13 00:19:48 -07:00
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
2017-01-26 02:25:21 -08:00
|
|
|
rtc_executable("video_quality_measurement") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"codecs/tools/video_quality_measurement.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":video_codecs_test_framework",
|
|
|
|
|
":video_coding",
|
|
|
|
|
":webrtc_vp8",
|
|
|
|
|
"../..:webrtc_common",
|
|
|
|
|
"../../base:rtc_base_approved",
|
|
|
|
|
"../../system_wrappers:field_trial_default",
|
|
|
|
|
"../../system_wrappers:metrics_default",
|
|
|
|
|
"../../system_wrappers:system_wrappers",
|
|
|
|
|
"../../test:test_support",
|
2017-02-06 02:21:11 -08:00
|
|
|
"../../test:video_test_common",
|
|
|
|
|
"../../test:video_test_support",
|
|
|
|
|
"../video_capture",
|
2017-01-26 02:25:21 -08:00
|
|
|
"//third_party/gflags",
|
|
|
|
|
]
|
|
|
|
|
} # video_quality_measurement
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("video_codecs_test_framework") {
|
2016-06-13 00:19:48 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"codecs/test/mock/mock_packet_manipulator.h",
|
|
|
|
|
"codecs/test/packet_manipulator.cc",
|
|
|
|
|
"codecs/test/packet_manipulator.h",
|
|
|
|
|
"codecs/test/predictive_packet_manipulator.cc",
|
|
|
|
|
"codecs/test/predictive_packet_manipulator.h",
|
|
|
|
|
"codecs/test/stats.cc",
|
|
|
|
|
"codecs/test/stats.h",
|
2017-03-06 03:52:55 -08:00
|
|
|
"codecs/test/video_codec_test.cc",
|
|
|
|
|
"codecs/test/video_codec_test.h",
|
2016-06-13 00:19:48 -07:00
|
|
|
"codecs/test/videoprocessor.cc",
|
|
|
|
|
"codecs/test/videoprocessor.h",
|
|
|
|
|
]
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-06-13 00:19:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
2016-12-08 09:56:16 -08:00
|
|
|
":video_coding",
|
|
|
|
|
":video_coding_utility",
|
2017-03-08 05:42:26 -08:00
|
|
|
":webrtc_vp8",
|
2016-12-08 09:56:16 -08:00
|
|
|
"../..:webrtc_common",
|
2017-04-05 03:02:20 -07:00
|
|
|
"../../api/video_codecs:video_codecs_api",
|
2016-12-08 09:56:16 -08:00
|
|
|
"../../base:rtc_base_approved",
|
|
|
|
|
"../../common_video:common_video",
|
|
|
|
|
"../../system_wrappers:system_wrappers",
|
2016-06-13 00:19:48 -07:00
|
|
|
"../../test:test_support",
|
2017-03-06 03:52:55 -08:00
|
|
|
"../../test:video_test_common",
|
2017-02-06 02:21:11 -08:00
|
|
|
"../../test:video_test_support",
|
2016-06-13 00:19:48 -07:00
|
|
|
]
|
|
|
|
|
}
|
2017-01-30 03:07:03 -08:00
|
|
|
|
2017-02-20 04:35:52 -08:00
|
|
|
rtc_source_set("video_coding_videoprocessor_integration_test") {
|
2017-01-30 03:07:03 -08:00
|
|
|
testonly = true
|
2017-02-20 04:35:52 -08:00
|
|
|
|
2017-01-30 03:07:03 -08:00
|
|
|
sources = [
|
2017-02-10 01:37:17 -08:00
|
|
|
"codecs/test/videoprocessor_integrationtest.h",
|
2017-01-30 03:07:03 -08:00
|
|
|
]
|
2017-02-20 04:35:52 -08:00
|
|
|
|
2017-01-30 03:07:03 -08:00
|
|
|
deps = [
|
|
|
|
|
":video_codecs_test_framework",
|
|
|
|
|
":video_coding",
|
2017-02-22 01:26:59 -08:00
|
|
|
":video_coding_utility",
|
2017-01-30 03:07:03 -08:00
|
|
|
":webrtc_h264",
|
|
|
|
|
":webrtc_vp8",
|
|
|
|
|
":webrtc_vp9",
|
|
|
|
|
"../..:webrtc_common",
|
2017-02-20 04:35:52 -08:00
|
|
|
"../../base:rtc_base_approved",
|
|
|
|
|
"../../media:rtc_media",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
"../../test:video_test_support",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
sources += [
|
|
|
|
|
"codecs/test/android_test_initializer.cc",
|
|
|
|
|
"codecs/test/android_test_initializer.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps += [
|
|
|
|
|
"../../base:rtc_base_approved",
|
|
|
|
|
"../../sdk/android:libjingle_peerconnection_jni",
|
|
|
|
|
"//base",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_ios || is_mac) {
|
|
|
|
|
deps += [
|
|
|
|
|
"../../media:rtc_media_base",
|
Revert of Split iOS sdk in to separate targets (patchset #3 id:320001 of https://codereview.webrtc.org/2893843003/ )
Reason for revert:
Breaks downstream project.
Original issue's description:
> Reland of Split iOS sdk in to separate targets (patchset #1 id:1 of https://codereview.webrtc.org/2893593002/ )
>
> Reason for revert:
> Take two of fixing downstream issues?
>
> Original issue's description:
> > Revert of Split iOS sdk in to separate targets (patchset #1 id:1 of https://codereview.webrtc.org/2890733003/ )
> >
> > Reason for revert:
> > Still problems with downstream projects
> >
> > Original issue's description:
> > > Reland of Split iOS sdk in to separate targets (patchset #1 id:1 of https://codereview.webrtc.org/2890513002/ )
> > >
> > > Reason for revert:
> > > Fixing downstream breakages
> > >
> > > Original issue's description:
> > > > Revert of Split iOS sdk in to separate targets (patchset #13 id:280001 of https://codereview.webrtc.org/2862543002/ )
> > > >
> > > > Reason for revert:
> > > > Breaking downstream projects.
> > > >
> > > > Original issue's description:
> > > > > Split iOS sdk in to separate targets
> > > > >
> > > > > This CL splits the iOS sdk into separate static libraries for video,
> > > > > audio, ui, common, and peerconnection-related code. This will in the
> > > > > future make it easier to compile WebRTC without unneeded components.
> > > > >
> > > > > BUG=webrtc:4867
> > > > >
> > > > > Review-Url: https://codereview.webrtc.org/2862543002
> > > > > Cr-Commit-Position: refs/heads/master@{#18166}
> > > > > Committed: https://chromium.googlesource.com/external/webrtc/+/52c83fe7102f566cf35a7533092873d58b38f426
> > > >
> > > > TBR=magjed@webrtc.org,denicija@webrtc.org,tkchin@webrtc.org,henrika@webrtc.org,kthelgason@webrtc.org
> > > > # Skipping CQ checks because original CL landed less than 1 days ago.
> > > > NOPRESUBMIT=true
> > > > NOTREECHECKS=true
> > > > NOTRY=true
> > > > BUG=webrtc:4867
> > > >
> > > > Review-Url: https://codereview.webrtc.org/2890513002
> > > > Cr-Commit-Position: refs/heads/master@{#18170}
> > > > Committed: https://chromium.googlesource.com/external/webrtc/+/9756238084707787f735e1294e896e462e459717
> > >
> > > TBR=magjed@webrtc.org,denicija@webrtc.org,tkchin@webrtc.org,henrika@webrtc.org,charujain@webrtc.org
> > > # Skipping CQ checks because original CL landed less than 1 days ago.
> > > NOPRESUBMIT=true
> > > NOTREECHECKS=true
> > > NOTRY=true
> > > BUG=webrtc:4867
> > >
> > > Review-Url: https://codereview.webrtc.org/2890733003
> > > Cr-Commit-Position: refs/heads/master@{#18174}
> > > Committed: https://chromium.googlesource.com/external/webrtc/+/d51e042492bedd057bc0cac7828979d5c7369cea
> >
> > TBR=magjed@webrtc.org,denicija@webrtc.org,tkchin@webrtc.org,henrika@webrtc.org,charujain@webrtc.org
> > # Skipping CQ checks because original CL landed less than 1 days ago.
> > NOPRESUBMIT=true
> > NOTREECHECKS=true
> > NOTRY=true
> > BUG=webrtc:4867
> >
> > Review-Url: https://codereview.webrtc.org/2893593002
> > Cr-Commit-Position: refs/heads/master@{#18182}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/37144b214e2baf62ecb262ab878dde8c59cdd6a3
>
> TBR=magjed@webrtc.org,denicija@webrtc.org,tkchin@webrtc.org,henrika@webrtc.org,charujain@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:4867
>
> Review-Url: https://codereview.webrtc.org/2893843003
> Cr-Commit-Position: refs/heads/master@{#18303}
> Committed: https://chromium.googlesource.com/external/webrtc/+/580c3522d294c877adfe555048c675bd8d166657
TBR=magjed@webrtc.org,denicija@webrtc.org,tkchin@webrtc.org,henrika@webrtc.org,charujain@webrtc.org,kthelgason@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:4867
Review-Url: https://codereview.webrtc.org/2911053002
Cr-Commit-Position: refs/heads/master@{#18309}
2017-05-29 09:57:37 -07:00
|
|
|
"../../sdk:webrtc_h264_video_toolbox",
|
2017-02-20 04:35:52 -08:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("video_coding_modules_tests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
2017-04-25 04:04:50 -07:00
|
|
|
# Skip restricting visibility on mobile platforms since the tests on those
|
|
|
|
|
# gets additional generated targets which would require many lines here to
|
|
|
|
|
# cover (which would be confusing to read and hard to maintain).
|
|
|
|
|
if (!is_android && !is_ios) {
|
|
|
|
|
visibility = [ "//webrtc/modules:modules_tests" ]
|
|
|
|
|
}
|
2017-02-20 04:35:52 -08:00
|
|
|
sources = [
|
2017-03-06 03:52:55 -08:00
|
|
|
"codecs/h264/test/h264_impl_unittest.cc",
|
2017-02-20 04:35:52 -08:00
|
|
|
"codecs/test/videoprocessor_integrationtest.cc",
|
|
|
|
|
"codecs/vp8/test/vp8_impl_unittest.cc",
|
2017-02-23 02:54:57 -08:00
|
|
|
"codecs/vp9/test/vp9_impl_unittest.cc",
|
2017-02-20 04:35:52 -08:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2017-03-06 03:52:55 -08:00
|
|
|
":video_codecs_test_framework",
|
2017-02-20 04:35:52 -08:00
|
|
|
":video_coding_videoprocessor_integration_test",
|
2017-03-06 03:52:55 -08:00
|
|
|
":webrtc_h264",
|
2017-02-20 04:35:52 -08:00
|
|
|
":webrtc_vp8",
|
2017-02-23 02:54:57 -08:00
|
|
|
":webrtc_vp9",
|
2017-01-30 03:07:03 -08:00
|
|
|
"../../api:video_frame_api",
|
|
|
|
|
"../../base:rtc_base_approved",
|
|
|
|
|
"../../common_video:common_video",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
"../../test:video_test_common",
|
2017-02-06 02:21:11 -08:00
|
|
|
"../video_capture",
|
2017-01-30 03:07:03 -08:00
|
|
|
]
|
2017-02-20 04:35:52 -08:00
|
|
|
|
2017-01-30 03:07:03 -08:00
|
|
|
if (rtc_use_h264) {
|
|
|
|
|
defines = [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ]
|
|
|
|
|
}
|
2017-02-20 04:35:52 -08:00
|
|
|
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
plot_videoprocessor_integrationtest_resources = [
|
|
|
|
|
"//resources/foreman_128x96.yuv",
|
|
|
|
|
"//resources/foreman_160x120.yuv",
|
|
|
|
|
"//resources/foreman_176x144.yuv",
|
|
|
|
|
"//resources/foreman_320x240.yuv",
|
|
|
|
|
"//resources/foreman_cif.yuv",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (is_ios || is_mac) {
|
|
|
|
|
bundle_data("plot_videoprocessor_integrationtest_bundle_data") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = plot_videoprocessor_integrationtest_resources
|
|
|
|
|
outputs = [
|
|
|
|
|
"{{bundle_resources_dir}}/{{source_file_part}}",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This executable is meant for local codec perf testing and should not be run
|
|
|
|
|
# on the trybots/buildbots, hence the existence of this special build target.
|
|
|
|
|
rtc_test("plot_videoprocessor_integrationtest") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"codecs/test/plot_videoprocessor_integrationtest.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":video_coding_videoprocessor_integration_test",
|
|
|
|
|
"../../test:test_main",
|
|
|
|
|
"../../test:video_test_common",
|
|
|
|
|
"../video_capture",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
data = plot_videoprocessor_integrationtest_resources
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [
|
|
|
|
|
"../../base:rtc_base_approved",
|
|
|
|
|
|
|
|
|
|
# TODO(brandtr): Figure out if the java dep below could be moved into
|
|
|
|
|
# :video_coding_videoprocessor_integration_test, where it belongs.
|
|
|
|
|
# When that is done, support for Android HW codecs can be added to the
|
|
|
|
|
# modules_tests target as well.
|
|
|
|
|
"../../sdk/android:libjingle_peerconnection_java",
|
|
|
|
|
"../../sdk/android:libjingle_peerconnection_jni",
|
|
|
|
|
"//base",
|
|
|
|
|
"//testing/android/native_test:native_test_support",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
shard_timeout = 900
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_ios || is_mac) {
|
|
|
|
|
deps += [ ":plot_videoprocessor_integrationtest_bundle_data" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# TODO(brandtr): Remove this define when the modules_tests target properly
|
|
|
|
|
# loads the Java classes mentioned above.
|
|
|
|
|
defines = [ "WEBRTC_VIDEOPROCESSOR_INTEGRATIONTEST_HW_CODECS_ENABLED" ]
|
|
|
|
|
|
2017-01-30 03:07:03 -08:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-19 08:27:11 -08:00
|
|
|
rtc_source_set("video_coding_unittests") {
|
|
|
|
|
testonly = true
|
2017-04-25 04:04:50 -07:00
|
|
|
|
|
|
|
|
# Skip restricting visibility on mobile platforms since the tests on those
|
|
|
|
|
# gets additional generated targets which would require many lines here to
|
|
|
|
|
# cover (which would be confusing to read and hard to maintain).
|
|
|
|
|
if (!is_android && !is_ios) {
|
|
|
|
|
visibility = [ "//webrtc/modules:modules_unittests" ]
|
|
|
|
|
}
|
2017-01-19 08:27:11 -08:00
|
|
|
sources = [
|
|
|
|
|
"codecs/test/packet_manipulator_unittest.cc",
|
|
|
|
|
"codecs/test/stats_unittest.cc",
|
|
|
|
|
"codecs/test/videoprocessor_unittest.cc",
|
|
|
|
|
"codecs/vp8/default_temporal_layers_unittest.cc",
|
|
|
|
|
"codecs/vp8/screenshare_layers_unittest.cc",
|
|
|
|
|
"codecs/vp8/simulcast_encoder_adapter_unittest.cc",
|
|
|
|
|
"codecs/vp8/simulcast_unittest.cc",
|
|
|
|
|
"codecs/vp8/simulcast_unittest.h",
|
|
|
|
|
"decoding_state_unittest.cc",
|
|
|
|
|
"frame_buffer2_unittest.cc",
|
|
|
|
|
"h264_sprop_parameter_sets_unittest.cc",
|
|
|
|
|
"h264_sps_pps_tracker_unittest.cc",
|
|
|
|
|
"histogram_unittest.cc",
|
|
|
|
|
"include/mock/mock_vcm_callbacks.h",
|
|
|
|
|
"jitter_buffer_unittest.cc",
|
|
|
|
|
"jitter_estimator_tests.cc",
|
|
|
|
|
"nack_module_unittest.cc",
|
|
|
|
|
"protection_bitrate_calculator_unittest.cc",
|
|
|
|
|
"receiver_unittest.cc",
|
|
|
|
|
"rtp_frame_reference_finder_unittest.cc",
|
|
|
|
|
"sequence_number_util_unittest.cc",
|
|
|
|
|
"session_info_unittest.cc",
|
|
|
|
|
"test/stream_generator.cc",
|
|
|
|
|
"test/stream_generator.h",
|
|
|
|
|
"timing_unittest.cc",
|
|
|
|
|
"utility/default_video_bitrate_allocator_unittest.cc",
|
|
|
|
|
"utility/frame_dropper_unittest.cc",
|
|
|
|
|
"utility/ivf_file_writer_unittest.cc",
|
|
|
|
|
"utility/moving_average_unittest.cc",
|
|
|
|
|
"utility/quality_scaler_unittest.cc",
|
|
|
|
|
"utility/simulcast_rate_allocator_unittest.cc",
|
2017-01-26 06:12:26 -08:00
|
|
|
"video_codec_initializer_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"video_packet_buffer_unittest.cc",
|
|
|
|
|
"video_receiver_unittest.cc",
|
|
|
|
|
"video_sender_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
if (rtc_libvpx_build_vp9) {
|
|
|
|
|
sources += [ "codecs/vp9/vp9_screenshare_layers_unittest.cc" ]
|
|
|
|
|
}
|
|
|
|
|
if (rtc_use_h264) {
|
|
|
|
|
sources += [ "codecs/h264/h264_encoder_impl_unittest.cc" ]
|
|
|
|
|
}
|
|
|
|
|
deps = [
|
|
|
|
|
":video_codecs_test_framework",
|
|
|
|
|
":video_coding",
|
|
|
|
|
":video_coding_utility",
|
|
|
|
|
":webrtc_h264",
|
|
|
|
|
":webrtc_vp8",
|
|
|
|
|
":webrtc_vp9",
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../..:webrtc_common",
|
|
|
|
|
"../../api:video_frame_api",
|
2017-04-05 03:02:20 -07:00
|
|
|
"../../api/video_codecs:video_codecs_api",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../../base:rtc_base",
|
|
|
|
|
"../../base:rtc_base_approved",
|
|
|
|
|
"../../base:rtc_task_queue",
|
|
|
|
|
"../../common_video:common_video",
|
|
|
|
|
"../../system_wrappers:metrics_default",
|
|
|
|
|
"../../system_wrappers:system_wrappers",
|
|
|
|
|
"../../test:field_trial",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
"../../test:video_test_common",
|
2017-02-06 02:21:11 -08:00
|
|
|
"../../test:video_test_support",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../rtp_rtcp:rtp_rtcp",
|
|
|
|
|
"//testing/gmock",
|
|
|
|
|
]
|
|
|
|
|
if (rtc_build_libvpx) {
|
|
|
|
|
deps += [ rtc_libvpx_dir ]
|
|
|
|
|
}
|
|
|
|
|
if (is_win) {
|
|
|
|
|
cflags = [
|
|
|
|
|
# TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
|
|
|
|
|
"/wd4373", # virtual function override.
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# TODO(jschuh): bugs.webrtc.org/1348: fix this warning.
|
|
|
|
|
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-06-13 00:19:48 -07:00
|
|
|
}
|