blob: 2e6b1c32421b0b4f907ab27acb405b7b0625c256 [file] [log] [blame]
# 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/config/linux/pkg_config.gni")
import("//third_party/libaom/options.gni")
import("../../webrtc.gni")
rtc_library("encoded_frame") {
visibility = [ "*" ]
sources = [
"encoded_frame.cc",
"encoded_frame.h",
]
deps = [
":codec_globals_headers",
":video_codec_interface",
"../../api/video:encoded_image",
"../../api/video:video_frame",
"../../api/video:video_rtp_headers",
"../../modules:module_api_public",
"../../modules/rtp_rtcp:rtp_video_header",
"../../rtc_base:checks",
"../../rtc_base/experiments:alr_experiment",
"../../rtc_base/system:rtc_export",
"../../system_wrappers",
"//third_party/abseil-cpp/absl/types:variant",
]
}
rtc_library("chain_diff_calculator") {
sources = [
"chain_diff_calculator.cc",
"chain_diff_calculator.h",
]
deps = [
"../../rtc_base:checks",
"../../rtc_base:logging",
"//third_party/abseil-cpp/absl/container:inlined_vector",
"//third_party/abseil-cpp/absl/types:optional",
]
}
rtc_library("frame_dependencies_calculator") {
sources = [
"frame_dependencies_calculator.cc",
"frame_dependencies_calculator.h",
]
deps = [
"../../api:array_view",
"../../common_video/generic_frame_descriptor",
"../../rtc_base:checks",
"../../rtc_base:logging",
"//third_party/abseil-cpp/absl/algorithm:container",
"//third_party/abseil-cpp/absl/container:inlined_vector",
"//third_party/abseil-cpp/absl/types:optional",
]
}
rtc_library("nack_requester") {
sources = [
"histogram.cc",
"histogram.h",
"nack_requester.cc",
"nack_requester.h",
]
deps = [
"..:module_api",
"../../api:field_trials_view",
"../../api:sequence_checker",
"../../api/task_queue",
"../../api/task_queue:pending_task_safety_flag",
"../../api/units:time_delta",
"../../api/units:timestamp",
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:rtc_numerics",
"../../rtc_base/experiments:field_trial_parser",
"../../rtc_base/task_utils:repeating_task",
"../../system_wrappers",
]
}
rtc_library("packet_buffer") {
sources = [
"packet_buffer.cc",
"packet_buffer.h",
]
deps = [
":codec_globals_headers",
"../../api:array_view",
"../../api:rtp_packet_info",
"../../api/units:timestamp",
"../../api/video:encoded_image",
"../../api/video:video_frame_type",
"../../common_video",
"../../rtc_base:checks",
"../../rtc_base:copy_on_write_buffer",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:mod_ops",
"../../rtc_base:rtc_numerics",
"../rtp_rtcp:rtp_rtcp_format",
"../rtp_rtcp:rtp_video_header",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/types:variant",
]
}
rtc_library("h26x_packet_buffer") {
sources = [
"h26x_packet_buffer.cc",
"h26x_packet_buffer.h",
]
deps = [
":codec_globals_headers",
":h264_sprop_parameter_sets",
":packet_buffer",
"../../api:array_view",
"../../api:rtp_packet_info",
"../../api/units:timestamp",
"../../api/video:encoded_image",
"../../api/video:video_frame_type",
"../../common_video",
"../../rtc_base:checks",
"../../rtc_base:copy_on_write_buffer",
"../../rtc_base:logging",
"../../rtc_base:rtc_numerics",
"../rtp_rtcp:rtp_rtcp_format",
"../rtp_rtcp:rtp_video_header",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/types:optional",
]
}
rtc_library("frame_helpers") {
sources = [
"frame_helpers.cc",
"frame_helpers.h",
]
deps = [
"../../api/video:encoded_frame",
"../../rtc_base:logging",
"//third_party/abseil-cpp/absl/container:inlined_vector",
]
}
rtc_library("h264_sprop_parameter_sets") {
sources = [
"h264_sprop_parameter_sets.cc",
"h264_sprop_parameter_sets.h",
]
deps = [
"../../rtc_base:logging",
"../../rtc_base/third_party/base64",
]
}
rtc_library("video_coding") {
visibility = [ "*" ]
sources = [
"decoder_database.cc",
"decoder_database.h",
"fec_controller_default.cc",
"fec_controller_default.h",
"fec_rate_table.h",
"generic_decoder.cc",
"generic_decoder.h",
"h264_sps_pps_tracker.cc",
"h264_sps_pps_tracker.h",
"include/video_codec_initializer.h",
"internal_defines.h",
"loss_notification_controller.cc",
"loss_notification_controller.h",
"media_opt_util.cc",
"media_opt_util.h",
"rtp_frame_id_only_ref_finder.cc",
"rtp_frame_id_only_ref_finder.h",
"rtp_frame_reference_finder.cc",
"rtp_frame_reference_finder.h",
"rtp_generic_ref_finder.cc",
"rtp_generic_ref_finder.h",
"rtp_seq_num_only_ref_finder.cc",
"rtp_seq_num_only_ref_finder.h",
"rtp_vp8_ref_finder.cc",
"rtp_vp8_ref_finder.h",
"rtp_vp9_ref_finder.cc",
"rtp_vp9_ref_finder.h",
"video_codec_initializer.cc",
"video_receiver2.cc",
"video_receiver2.h",
]
deps = [
":codec_globals_headers",
":encoded_frame",
":frame_helpers",
":h264_sprop_parameter_sets",
":video_codec_interface",
":video_coding_utility",
":webrtc_vp8_scalability",
":webrtc_vp9_helpers",
"..:module_api",
"..:module_api_public",
"..:module_fec_api",
"../../api:array_view",
"../../api:fec_controller_api",
"../../api:field_trials_view",
"../../api:rtp_headers",
"../../api:rtp_packet_info",
"../../api:scoped_refptr",
"../../api:sequence_checker",
"../../api/environment",
"../../api/task_queue",
"../../api/units:data_rate",
"../../api/units:data_size",
"../../api/units:frequency",
"../../api/units:time_delta",
"../../api/units:timestamp",
"../../api/video:builtin_video_bitrate_allocator_factory",
"../../api/video:encoded_frame",
"../../api/video:encoded_image",
"../../api/video:video_adaptation",
"../../api/video:video_adaptation",
"../../api/video:video_bitrate_allocation",
"../../api/video:video_bitrate_allocator",
"../../api/video:video_bitrate_allocator_factory",
"../../api/video:video_codec_constants",
"../../api/video:video_frame",
"../../api/video:video_frame_type",
"../../api/video:video_rtp_headers",
"../../api/video_codecs:video_codecs_api",
"../../common_video",
"../../rtc_base:checks",
"../../rtc_base:copy_on_write_buffer",
"../../rtc_base:event_tracer",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:rtc_event",
"../../rtc_base:rtc_numerics",
"../../rtc_base:safe_conversions",
"../../rtc_base:stringutils",
"../../rtc_base:threading",
"../../rtc_base:timeutils",
"../../rtc_base/experiments:alr_experiment",
"../../rtc_base/experiments:field_trial_parser",
"../../rtc_base/experiments:min_video_bitrate_experiment",
"../../rtc_base/experiments:rate_control_settings",
"../../rtc_base/synchronization:mutex",
"../../rtc_base/system:no_unique_address",
"../../rtc_base/task_utils:repeating_task",
"../../rtc_base/third_party/base64",
"../../system_wrappers",
"../../system_wrappers:metrics",
"../../video/config:encoder_config",
"../rtp_rtcp",
"../rtp_rtcp:rtp_rtcp_format",
"../rtp_rtcp:rtp_video_header",
"codecs/av1:av1_svc_config",
"svc:scalability_mode_util",
"timing:inter_frame_delay_variation_calculator",
"timing:jitter_estimator",
"timing:rtt_filter",
"timing:timing_module",
"//third_party/abseil-cpp/absl/algorithm:container",
"//third_party/abseil-cpp/absl/container:inlined_vector",
"//third_party/abseil-cpp/absl/types:optional",
"//third_party/abseil-cpp/absl/types:variant",
]
}
rtc_library("video_codec_interface") {
visibility = [ "*" ]
sources = [
"include/video_codec_interface.cc",
"include/video_codec_interface.h",
"include/video_coding_defines.h",
"include/video_error_codes.h",
"include/video_error_codes_utils.cc",
"include/video_error_codes_utils.h",
"video_coding_defines.cc",
]
deps = [
":codec_globals_headers",
"../../api/video:video_frame",
"../../api/video:video_rtp_headers",
"../../api/video_codecs:scalability_mode",
"../../api/video_codecs:video_codecs_api",
"../../common_video",
"../../common_video/generic_frame_descriptor",
"../../rtc_base/system:rtc_export",
"//third_party/abseil-cpp/absl/types:optional",
]
}
rtc_library("video_coding_legacy") {
visibility = [ ":video_coding_unittests" ]
sources = [
"include/video_coding.h",
"video_coding_impl.cc",
"video_coding_impl.h",
"video_receiver.cc",
]
deps = [
":codec_globals_headers",
":encoded_frame",
":video_codec_interface",
":video_coding",
"..:module_api",
"..:module_api_public",
"../../api:field_trials_view",
"../../api:rtp_headers",
"../../api:rtp_packet_info",
"../../api:sequence_checker",
"../../api/environment",
"../../api/units:timestamp",
"../../api/video:encoded_image",
"../../api/video:video_frame",
"../../api/video:video_frame_type",
"../../api/video:video_rtp_headers",
"../../api/video_codecs:video_codecs_api",
"../../common_video",
"../../modules/rtp_rtcp:rtp_video_header",
"../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:one_time_event",
"../../rtc_base:rtc_event",
"../../rtc_base:safe_conversions",
"../../rtc_base/synchronization:mutex",
"../../system_wrappers",
"../rtp_rtcp:rtp_rtcp_format",
"../rtp_rtcp:rtp_video_header",
"deprecated:deprecated_decoding_state",
"deprecated:deprecated_event_wrapper",
"deprecated:deprecated_frame_buffer",
"deprecated:deprecated_jitter_buffer",
"deprecated:deprecated_jitter_buffer_common",
"deprecated:deprecated_packet",
"deprecated:deprecated_receiver",
"deprecated:deprecated_session_info",
"timing:inter_frame_delay_variation_calculator",
"timing:jitter_estimator",
"timing:timing_module",
"//third_party/abseil-cpp/absl/types:optional",
]
}
rtc_source_set("codec_globals_headers") {
visibility = [ "*" ]
sources = [
"codecs/h264/include/h264_globals.h",
"codecs/interface/common_constants.h",
"codecs/vp8/include/vp8_globals.h",
"codecs/vp9/include/vp9_globals.h",
]
deps = [ "../../rtc_base:checks" ]
}
if (rtc_use_h264 && rtc_system_openh264) {
pkg_config("openh264") {
packages = [ "openh264" ]
}
}
rtc_library("video_coding_utility") {
visibility = [ "*" ]
sources = [
"utility/bandwidth_quality_scaler.cc",
"utility/bandwidth_quality_scaler.h",
"utility/decoded_frames_history.cc",
"utility/decoded_frames_history.h",
"utility/frame_dropper.cc",
"utility/frame_dropper.h",
"utility/framerate_controller_deprecated.cc",
"utility/framerate_controller_deprecated.h",
"utility/ivf_defines.h",
"utility/ivf_file_reader.cc",
"utility/ivf_file_reader.h",
"utility/ivf_file_writer.cc",
"utility/ivf_file_writer.h",
"utility/qp_parser.cc",
"utility/qp_parser.h",
"utility/quality_scaler.cc",
"utility/quality_scaler.h",
"utility/simulcast_rate_allocator.cc",
"utility/simulcast_rate_allocator.h",
"utility/simulcast_utility.cc",
"utility/simulcast_utility.h",
"utility/vp8_constants.h",
"utility/vp8_header_parser.cc",
"utility/vp8_header_parser.h",
"utility/vp9_constants.h",
"utility/vp9_uncompressed_header_parser.cc",
"utility/vp9_uncompressed_header_parser.h",
]
deps = [
":video_codec_interface",
"../../api:array_view",
"../../api:field_trials_view",
"../../api:scoped_refptr",
"../../api:sequence_checker",
"../../api/environment",
"../../api/units:time_delta",
"../../api/video:encoded_frame",
"../../api/video:encoded_image",
"../../api/video:video_adaptation",
"../../api/video:video_bitrate_allocation",
"../../api/video:video_bitrate_allocator",
"../../api/video:video_codec_constants",
"../../api/video:video_frame",
"../../api/video_codecs:video_codecs_api",
"../../common_video",
"../../modules/rtp_rtcp",
"../../rtc_base:bitstream_reader",
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:rate_statistics",
"../../rtc_base:refcount",
"../../rtc_base:rtc_numerics",
"../../rtc_base:stringutils",
"../../rtc_base:timeutils",
"../../rtc_base:weak_ptr",
"../../rtc_base/experiments:encoder_info_settings",
"../../rtc_base/experiments:quality_scaler_settings",
"../../rtc_base/experiments:quality_scaling_experiment",
"../../rtc_base/experiments:rate_control_settings",
"../../rtc_base/experiments:stable_target_rate_experiment",
"../../rtc_base/synchronization:mutex",
"../../rtc_base/system:arch",
"../../rtc_base/system:file_wrapper",
"../../rtc_base/system:no_unique_address",
"../../rtc_base/task_utils:repeating_task",
"../../video/config:encoder_config",
"../rtp_rtcp:rtp_rtcp_format",
"svc:scalability_mode_util",
"//third_party/abseil-cpp/absl/numeric:bits",
"//third_party/abseil-cpp/absl/strings:string_view",
"//third_party/abseil-cpp/absl/types:optional",
]
}
rtc_library("webrtc_h264") {
visibility = [ "*" ]
sources = [
"codecs/h264/h264.cc",
"codecs/h264/h264_color_space.cc",
"codecs/h264/h264_color_space.h",
"codecs/h264/h264_decoder_impl.cc",
"codecs/h264/h264_decoder_impl.h",
"codecs/h264/h264_encoder_impl.cc",
"codecs/h264/h264_encoder_impl.h",
"codecs/h264/include/h264.h",
]
defines = []
deps = [
":codec_globals_headers",
":video_codec_interface",
":video_coding_utility",
"../../api/environment",
"../../api/transport/rtp:dependency_descriptor",
"../../api/video:video_codec_constants",
"../../api/video:video_frame",
"../../api/video:video_frame_i010",
"../../api/video:video_rtp_headers",
"../../api/video_codecs:scalability_mode",
"../../api/video_codecs:video_codecs_api",
"../../common_video",
"../../media:media_constants",
"../../media:rtc_media_base",
"../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:logging",
"../../rtc_base:timeutils",
"../../rtc_base/system:rtc_export",
"../../system_wrappers:metrics",
"svc:scalability_structures",
"svc:scalable_video_controller",
"//third_party/abseil-cpp/absl/base:nullability",
"//third_party/abseil-cpp/absl/container:inlined_vector",
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional",
"//third_party/libyuv",
]
if (rtc_use_h264) {
deps += [ "//third_party/ffmpeg" ]
if (rtc_system_openh264) {
configs += [ ":openh264" ]
} else {
deps += [ "//third_party/openh264:encoder" ]
}
if (!build_with_mozilla) {
deps += [ "../../media:rtc_media_base" ]
}
}
}
# This target defines a bare-bones interface towards libvpx, used by the
# VP8 and VP9 wrappers below.
rtc_library("webrtc_libvpx_interface") {
visibility = [ "*" ]
sources = [
"codecs/interface/libvpx_interface.cc",
"codecs/interface/libvpx_interface.h",
]
deps = [ "../../rtc_base:checks" ]
if (rtc_build_libvpx) {
deps += [ rtc_libvpx_dir ]
}
}
rtc_library("mock_libvpx_interface") {
testonly = true
sources = [ "codecs/interface/mock_libvpx_interface.h" ]
deps = [
":webrtc_libvpx_interface",
"../../test:test_support",
]
}
# This target includes the internal SW codec.
rtc_library("webrtc_vp8") {
visibility = [ "*" ]
poisonous = [ "software_video_codecs" ]
sources = [
"codecs/vp8/include/vp8.h",
"codecs/vp8/libvpx_vp8_decoder.cc",
"codecs/vp8/libvpx_vp8_decoder.h",
"codecs/vp8/libvpx_vp8_encoder.cc",
"codecs/vp8/libvpx_vp8_encoder.h",
]
deps = [
":codec_globals_headers",
":video_codec_interface",
":video_coding_utility",
":webrtc_libvpx_interface",
":webrtc_vp8_scalability",
":webrtc_vp8_temporal_layers",
"../../api:fec_controller_api",
"../../api:field_trials_view",
"../../api:scoped_refptr",
"../../api/environment",
"../../api/units:time_delta",
"../../api/units:timestamp",
"../../api/video:encoded_image",
"../../api/video:video_frame",
"../../api/video:video_rtp_headers",
"../../api/video_codecs:scalability_mode",
"../../api/video_codecs:video_codecs_api",
"../../api/video_codecs:vp8_temporal_layers_factory",
"../../common_video",
"../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:logging",
"../../rtc_base:rtc_numerics",
"../../rtc_base:timeutils",
"../../rtc_base/experiments:encoder_info_settings",
"../../rtc_base/experiments:field_trial_parser",
"../../rtc_base/experiments:rate_control_settings",
"../../system_wrappers:metrics",
"svc:scalability_mode_util",
"//third_party/abseil-cpp/absl/algorithm:container",
"//third_party/abseil-cpp/absl/base:nullability",
"//third_party/abseil-cpp/absl/strings:string_view",
"//third_party/abseil-cpp/absl/types:optional",
"//third_party/libyuv",
]
if (rtc_build_libvpx) {
deps += [ rtc_libvpx_dir ]
}
}
rtc_source_set("webrtc_vp8_scalability") {
sources = [
"codecs/vp8/vp8_scalability.cc",
"codecs/vp8/vp8_scalability.h",
]
deps = [ "../../api/video_codecs:scalability_mode" ]
}
rtc_library("webrtc_vp8_temporal_layers") {
visibility = [ "*" ]
sources = [
"codecs/vp8/default_temporal_layers.cc",
"codecs/vp8/default_temporal_layers.h",
"codecs/vp8/include/temporal_layers_checker.h",
"codecs/vp8/screenshare_layers.cc",
"codecs/vp8/screenshare_layers.h",
"codecs/vp8/temporal_layers.h",
"codecs/vp8/temporal_layers_checker.cc",
]
deps = [
":codec_globals_headers",
":video_codec_interface",
":video_coding_utility",
"../../api:fec_controller_api",
"../../api/video_codecs:video_codecs_api",
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:rate_statistics",
"../../rtc_base:rtc_numerics",
"../../rtc_base:timeutils",
"../../system_wrappers:metrics",
"//third_party/abseil-cpp/absl/types:optional",
]
}
# This target includes VP9 files that may be used for any VP9 codec, internal SW or external HW.
rtc_library("webrtc_vp9_helpers") {
sources = [
"codecs/vp9/svc_config.cc",
"codecs/vp9/svc_config.h",
]
deps = [
":codec_globals_headers",
":video_codec_interface",
"../../api/video:video_bitrate_allocation",
"../../api/video:video_bitrate_allocator",
"../../api/video:video_codec_constants",
"../../api/video_codecs:video_codecs_api",
"../../common_video",
"../../media:video_common",
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base/experiments:stable_target_rate_experiment",
"svc:scalability_mode_util",
"svc:scalability_structures",
"svc:scalable_video_controller",
]
}
rtc_library("webrtc_vp9") {
visibility = [ "*" ]
poisonous = [ "software_video_codecs" ]
sources = [
"codecs/vp9/include/vp9.h",
"codecs/vp9/libvpx_vp9_decoder.cc",
"codecs/vp9/libvpx_vp9_decoder.h",
"codecs/vp9/libvpx_vp9_encoder.cc",
"codecs/vp9/libvpx_vp9_encoder.h",
"codecs/vp9/vp9.cc",
"codecs/vp9/vp9_frame_buffer_pool.cc",
"codecs/vp9/vp9_frame_buffer_pool.h",
]
deps = [
":video_codec_interface",
":video_coding_utility",
":webrtc_libvpx_interface",
":webrtc_vp9_helpers",
"../../api:fec_controller_api",
"../../api:field_trials_view",
"../../api:refcountedbase",
"../../api:scoped_refptr",
"../../api/environment",
"../../api/video:video_frame",
"../../api/video:video_frame_i010",
"../../api/video:video_rtp_headers",
"../../api/video_codecs:scalability_mode",
"../../api/video_codecs:video_codecs_api",
"../../common_video",
"../../rtc_base:buffer",
"../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:logging",
"../../rtc_base:stringutils",
"../../rtc_base:timeutils",
"../../rtc_base/containers:flat_map",
"../../rtc_base/experiments:encoder_info_settings",
"../../rtc_base/experiments:field_trial_parser",
"../../rtc_base/experiments:rate_control_settings",
"../../rtc_base/synchronization:mutex",
"../rtp_rtcp:rtp_rtcp_format",
"svc:scalability_mode_util",
"svc:scalability_structures",
"svc:scalable_video_controller",
"svc:svc_rate_allocator",
"//third_party/abseil-cpp/absl/algorithm:container",
"//third_party/abseil-cpp/absl/base:nullability",
"//third_party/abseil-cpp/absl/container:inlined_vector",
"//third_party/abseil-cpp/absl/memory",
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional",
"//third_party/libyuv",
]
if (rtc_build_libvpx) {
deps += [ rtc_libvpx_dir ]
}
}
if (rtc_include_tests) {
if (is_android) {
rtc_library("android_codec_factory_helper") {
sources = [
"codecs/test/android_codec_factory_helper.cc",
"codecs/test/android_codec_factory_helper.h",
]
deps = [
"../../api/video_codecs:video_codecs_api",
"../../modules/utility:utility",
"../../rtc_base:checks",
"../../sdk/android:internal_jni",
"../../sdk/android:native_api_base",
"../../sdk/android:native_api_codecs",
"../../sdk/android:native_api_jni",
]
}
}
if (is_ios || is_mac) {
rtc_library("objc_codec_factory_helper") {
sources = [
"codecs/test/objc_codec_factory_helper.h",
"codecs/test/objc_codec_factory_helper.mm",
]
deps = [
"../../api/video:video_frame",
"../../api/video:video_rtp_headers",
"../../api/video_codecs:video_codecs_api",
"../../media:rtc_audio_video",
"../../sdk:native_api",
"../../sdk:peerconnectionfactory_base_objc",
"../../sdk:videocodec_objc",
"../../sdk:videosource_objc",
"../../sdk:videotoolbox_objc",
]
}
}
rtc_library("encoded_video_frame_producer") {
testonly = true
sources = [
"codecs/test/encoded_video_frame_producer.cc",
"codecs/test/encoded_video_frame_producer.h",
]
deps = [
":video_codec_interface",
"../../api:create_frame_generator",
"../../api:frame_generator_api",
"../../api/transport/rtp:dependency_descriptor",
"../../api/video:encoded_image",
"../../api/video:video_frame",
"../../api/video:video_frame_type",
"../../api/video_codecs:video_codecs_api",
"../../rtc_base:checks",
]
}
rtc_library("simulcast_test_fixture_impl") {
testonly = true
sources = [
"utility/simulcast_test_fixture_impl.cc",
"utility/simulcast_test_fixture_impl.h",
]
deps = [
":video_codec_interface",
":video_coding",
":video_coding_utility",
"../../api:mock_video_decoder",
"../../api:mock_video_encoder",
"../../api:simulcast_test_fixture_api",
"../../api/environment",
"../../api/environment:environment_factory",
"../../api/video:encoded_image",
"../../api/video:video_frame",
"../../api/video:video_rtp_headers",
"../../api/video_codecs:video_codecs_api",
"../../common_video",
"../../rtc_base:checks",
"../../test:test_support",
]
}
rtc_library("video_codecs_test_framework") {
testonly = true
sources = [
"codecs/test/video_codec_unittest.cc",
"codecs/test/video_codec_unittest.h",
"codecs/test/videoprocessor.cc",
"codecs/test/videoprocessor.h",
]
deps = [
":codec_globals_headers",
":video_codec_interface",
":video_coding",
":video_coding_utility",
":videocodec_test_stats_impl",
":webrtc_vp9_helpers",
"..:module_api",
"../../api:create_frame_generator",
"../../api:frame_generator_api",
"../../api:scoped_refptr",
"../../api:sequence_checker",
"../../api:videocodec_test_fixture_api",
"../../api/environment",
"../../api/environment:environment_factory",
"../../api/numerics:numerics",
"../../api/task_queue",
"../../api/task_queue:default_task_queue_factory",
"../../api/test/metrics:global_metrics_logger_and_exporter",
"../../api/video:builtin_video_bitrate_allocator_factory",
"../../api/video:encoded_image",
"../../api/video:resolution",
"../../api/video:video_bitrate_allocation",
"../../api/video:video_bitrate_allocator",
"../../api/video:video_bitrate_allocator_factory",
"../../api/video:video_codec_constants",
"../../api/video:video_frame",
"../../api/video:video_rtp_headers",
"../../api/video_codecs:video_codecs_api",
"../../common_video",
"../../rtc_base:buffer",
"../../rtc_base:checks",
"../../rtc_base:macromagic",
"../../rtc_base:rtc_event",
"../../rtc_base:task_queue_for_test",
"../../rtc_base:timeutils",
"../../rtc_base/synchronization:mutex",
"../../rtc_base/system:no_unique_address",
"../../test:test_support",
"../../test:video_frame_writer",
"../../test:video_test_common",
"../../test:video_test_support",
"../rtp_rtcp:rtp_rtcp_format",
"//third_party/abseil-cpp/absl/types:optional",
"//third_party/libyuv",
]
}
video_coding_modules_tests_resources = []
if (is_android) {
video_coding_modules_tests_resources += [
"../../resources/foreman_128x96.yuv",
"../../resources/foreman_160x120.yuv",
"../../resources/foreman_176x144.yuv",
"../../resources/foreman_240x136.yuv",
"../../resources/foreman_320x240.yuv",
"../../resources/foreman_480x272.yuv",
]
}
if (!is_android) {
video_coding_modules_tests_resources += [
"../../resources/ConferenceMotion_1280_720_50.yuv",
"../../resources/FourPeople_1280x720_30.yuv",
]
}
num_video_coding_modules_tests_resources = 0
foreach(i, video_coding_modules_tests_resources) {
num_video_coding_modules_tests_resources += 1
}
if (num_video_coding_modules_tests_resources > 0) {
if (is_ios || is_mac) {
bundle_data("video_coding_modules_tests_resources_bundle_data") {
testonly = true
sources = video_coding_modules_tests_resources
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
}
}
rtc_library("videocodec_test_impl") {
testonly = true
sources = [
"codecs/test/videocodec_test_fixture_impl.cc",
"codecs/test/videocodec_test_fixture_impl.h",
]
deps = [
":codec_globals_headers",
":video_codec_interface",
":video_codecs_test_framework",
":video_coding_utility",
":videocodec_test_stats_impl",
":webrtc_vp9_helpers",
"../../api:array_view",
"../../api:videocodec_test_fixture_api",
"../../api/environment",
"../../api/environment:environment_factory",
"../../api/test/metrics:global_metrics_logger_and_exporter",
"../../api/test/metrics:metric",
"../../api/test/video:function_video_factory",
"../../api/transport:field_trial_based_config",
"../../api/video:video_bitrate_allocation",
"../../api/video_codecs:video_codecs_api",
"../../api/video_codecs:video_decoder_factory_template",
"../../api/video_codecs:video_decoder_factory_template_dav1d_adapter",
"../../api/video_codecs:video_decoder_factory_template_libvpx_vp8_adapter",
"../../api/video_codecs:video_decoder_factory_template_libvpx_vp9_adapter",
"../../api/video_codecs:video_decoder_factory_template_open_h264_adapter",
"../../api/video_codecs:video_encoder_factory_template",
"../../api/video_codecs:video_encoder_factory_template_libaom_av1_adapter",
"../../api/video_codecs:video_encoder_factory_template_libvpx_vp8_adapter",
"../../api/video_codecs:video_encoder_factory_template_libvpx_vp9_adapter",
"../../api/video_codecs:video_encoder_factory_template_open_h264_adapter",
"../../call:video_stream_api",
"../../common_video",
"../../media:media_constants",
"../../media:rtc_audio_video",
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:rtc_base_tests_utils",
"../../rtc_base:stringutils",
"../../rtc_base:task_queue_for_test",
"../../rtc_base:timeutils",
"../../system_wrappers",
"../../test:fileutils",
"../../test:test_support",
"../../test:video_frame_writer",
"../../test:video_test_common",
"../../test:video_test_support",
"../../video/config:encoder_config",
"../../video/config:streams_config",
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/strings:string_view",
"//third_party/abseil-cpp/absl/types:optional",
]
}
rtc_library("videocodec_test_stats_impl") {
testonly = true
sources = [
"codecs/test/videocodec_test_stats_impl.cc",
"codecs/test/videocodec_test_stats_impl.h",
]
deps = [
"../../api:videocodec_test_stats_api",
"../../api/numerics",
"../../api/test/metrics:global_metrics_logger_and_exporter",
"../../api/test/metrics:metric",
"../../rtc_base:checks",
"../../rtc_base:rtc_numerics",
"../../rtc_base:stringutils",
"../../test:test_common",
"../rtp_rtcp:rtp_rtcp_format",
"//third_party/abseil-cpp/absl/types:optional",
]
}
rtc_test("video_codec_perf_tests") {
testonly = true
sources = [ "codecs/test/video_codec_test.cc" ]
deps = [
":video_codec_interface",
"../../api/environment",
"../../api/environment:environment_factory",
"../../api/test/metrics:global_metrics_logger_and_exporter",
"../../api/units:data_rate",
"../../api/units:frequency",
"../../api/video:resolution",
"../../api/video_codecs:builtin_video_decoder_factory",
"../../api/video_codecs:builtin_video_encoder_factory",
"../../modules/video_coding/svc:scalability_mode_util",
"../../rtc_base:logging",
"../../rtc_base:stringutils",
"../../test:explicit_key_value_config",
"../../test:field_trial",
"../../test:fileutils",
"../../test:test_flags",
"../../test:test_main",
"../../test:test_support",
"../../test:video_codec_tester",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/functional:any_invocable",
]
if (is_android) {
use_default_launcher = false
deps += [
":android_codec_factory_helper",
"../../sdk/android:hwcodecs_java",
"//sdk/android:native_test_jni_onload",
"//testing/android/native_test:native_test_support",
]
shard_timeout = 900
}
data = [ "../../resources/FourPeople_1280x720_30.yuv" ]
}
rtc_library("video_coding_modules_tests") {
testonly = true
defines = []
sources = [
"codecs/h264/test/h264_impl_unittest.cc",
"codecs/test/video_encoder_decoder_instantiation_tests.cc",
"codecs/test/videocodec_test_av1.cc",
"codecs/test/videocodec_test_libvpx.cc",
"codecs/vp8/test/vp8_impl_unittest.cc",
]
if (rtc_libvpx_build_vp9) {
sources += [ "codecs/vp9/test/vp9_impl_unittest.cc" ]
}
if (rtc_use_h264) {
sources += [ "codecs/test/videocodec_test_openh264.cc" ]
}
deps = [
":encoded_video_frame_producer",
":mock_libvpx_interface",
":video_codec_interface",
":video_codecs_test_framework",
":video_coding_utility",
":videocodec_test_impl",
":webrtc_h264",
":webrtc_libvpx_interface",
":webrtc_vp8",
":webrtc_vp9",
":webrtc_vp9_helpers",
"../../api:create_frame_generator",
"../../api:create_videocodec_test_fixture_api",
"../../api:frame_generator_api",
"../../api:mock_video_codec_factory",
"../../api:mock_video_decoder",
"../../api:mock_video_encoder",
"../../api:scoped_refptr",
"../../api:videocodec_test_fixture_api",
"../../api:videocodec_test_stats_api",
"../../api/environment",
"../../api/environment:environment_factory",
"../../api/test/metrics:global_metrics_logger_and_exporter",
"../../api/test/video:function_video_factory",
"../../api/video:encoded_image",
"../../api/video:video_frame",
"../../api/video:video_rtp_headers",
"../../api/video_codecs:rtc_software_fallback_wrappers",
"../../api/video_codecs:video_codecs_api",
"../../common_video",
"../../common_video/test:utilities",
"../../media:codec",
"../../media:media_constants",
"../../media:rtc_internal_video_codecs",
"../../media:rtc_simulcast_encoder_adapter",
"../../rtc_base:refcount",
"../../rtc_base:stringutils",
"../../rtc_base:timeutils",
"../../test:explicit_key_value_config",
"../../test:field_trial",
"../../test:fileutils",
"../../test:scoped_key_value_config",
"../../test:test_support",
"../../test:video_test_common",
"../rtp_rtcp:rtp_rtcp_format",
"codecs/av1:dav1d_decoder",
"svc:scalability_mode_util",
"//third_party/abseil-cpp/absl/memory",
"//third_party/abseil-cpp/absl/types:optional",
"//third_party/libyuv",
]
data = video_coding_modules_tests_resources
if (is_android) {
sources += [ "codecs/test/videocodec_test_mediacodec.cc" ]
deps += [
":android_codec_factory_helper",
"../../rtc_base:stringutils",
]
}
if (is_ios || is_mac) {
sources += [ "codecs/test/videocodec_test_videotoolbox.cc" ]
deps += [ ":objc_codec_factory_helper" ]
if (num_video_coding_modules_tests_resources > 0) {
deps += [ ":video_coding_modules_tests_resources_bundle_data" ]
}
}
if (rtc_build_libvpx) {
deps += [ rtc_libvpx_dir ]
}
}
rtc_library("video_coding_unittests") {
testonly = true
sources = [
"chain_diff_calculator_unittest.cc",
"codecs/test/videocodec_test_fixture_config_unittest.cc",
"codecs/test/videocodec_test_stats_impl_unittest.cc",
"codecs/test/videoprocessor_unittest.cc",
"codecs/vp8/default_temporal_layers_unittest.cc",
"codecs/vp8/libvpx_vp8_simulcast_test.cc",
"codecs/vp8/screenshare_layers_unittest.cc",
"codecs/vp9/svc_config_unittest.cc",
"decoder_database_unittest.cc",
"fec_controller_unittest.cc",
"frame_dependencies_calculator_unittest.cc",
"frame_helpers_unittest.cc",
"generic_decoder_unittest.cc",
"h264_sprop_parameter_sets_unittest.cc",
"h264_sps_pps_tracker_unittest.cc",
"h26x_packet_buffer_unittest.cc",
"histogram_unittest.cc",
"loss_notification_controller_unittest.cc",
"nack_requester_unittest.cc",
"packet_buffer_unittest.cc",
"rtp_frame_reference_finder_unittest.cc",
"rtp_vp8_ref_finder_unittest.cc",
"rtp_vp9_ref_finder_unittest.cc",
"utility/bandwidth_quality_scaler_unittest.cc",
"utility/decoded_frames_history_unittest.cc",
"utility/frame_dropper_unittest.cc",
"utility/framerate_controller_deprecated_unittest.cc",
"utility/ivf_file_reader_unittest.cc",
"utility/ivf_file_writer_unittest.cc",
"utility/qp_parser_unittest.cc",
"utility/quality_scaler_unittest.cc",
"utility/simulcast_rate_allocator_unittest.cc",
"utility/vp9_uncompressed_header_parser_unittest.cc",
"video_codec_initializer_unittest.cc",
"video_receiver2_unittest.cc",
"video_receiver_unittest.cc",
]
if (rtc_use_h264) {
sources += [
"codecs/h264/h264_encoder_impl_unittest.cc",
"codecs/h264/h264_simulcast_unittest.cc",
]
}
deps = [
":chain_diff_calculator",
":codec_globals_headers",
":encoded_frame",
":frame_dependencies_calculator",
":frame_helpers",
":h264_sprop_parameter_sets",
":h26x_packet_buffer",
":nack_requester",
":packet_buffer",
":simulcast_test_fixture_impl",
":video_codec_interface",
":video_codecs_test_framework",
":video_coding",
":video_coding_legacy",
":video_coding_utility",
":videocodec_test_impl",
":videocodec_test_stats_impl",
":webrtc_h264",
":webrtc_vp8",
":webrtc_vp8_temporal_layers",
":webrtc_vp9",
":webrtc_vp9_helpers",
"..:module_fec_api",
"../../api:array_view",
"../../api:create_simulcast_test_fixture_api",
"../../api:fec_controller_api",
"../../api:field_trials_view",
"../../api:mock_fec_controller_override",
"../../api:mock_video_decoder",
"../../api:mock_video_encoder",
"../../api:rtp_packet_info",
"../../api:scoped_refptr",
"../../api:simulcast_test_fixture_api",
"../../api:videocodec_test_fixture_api",
"../../api/environment",
"../../api/environment:environment_factory",
"../../api/task_queue",
"../../api/task_queue:default_task_queue_factory",
"../../api/test/video:function_video_factory",
"../../api/units:data_size",
"../../api/units:frequency",
"../../api/units:time_delta",
"../../api/units:timestamp",
"../../api/video:builtin_video_bitrate_allocator_factory",
"../../api/video:encoded_frame",
"../../api/video:encoded_image",
"../../api/video:render_resolution",
"../../api/video:video_adaptation",
"../../api/video:video_bitrate_allocation",
"../../api/video:video_bitrate_allocator",
"../../api/video:video_bitrate_allocator_factory",
"../../api/video:video_frame",
"../../api/video:video_frame_type",
"../../api/video:video_rtp_headers",
"../../api/video_codecs:video_codecs_api",
"../../api/video_codecs:vp8_temporal_layers_factory",
"../../common_video",
"../../common_video/generic_frame_descriptor",
"../../common_video/test:utilities",
"../../media:media_constants",
"../../media:rtc_internal_video_codecs",
"../../rtc_base:checks",
"../../rtc_base:gunit_helpers",
"../../rtc_base:histogram_percentile_counter",
"../../rtc_base:platform_thread",
"../../rtc_base:random",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_tests_utils",
"../../rtc_base:rtc_event",
"../../rtc_base:rtc_numerics",
"../../rtc_base:stringutils",
"../../rtc_base:task_queue_for_test",
"../../rtc_base:timeutils",
"../../rtc_base/experiments:encoder_info_settings",
"../../rtc_base/synchronization:mutex",
"../../rtc_base/system:unused",
"../../system_wrappers",
"../../system_wrappers:metrics",
"../../test:explicit_key_value_config",
"../../test:fake_encoded_frame",
"../../test:fake_video_codecs",
"../../test:field_trial",
"../../test:fileutils",
"../../test:run_loop",
"../../test:scoped_key_value_config",
"../../test:test_support",
"../../test:video_test_common",
"../../test:video_test_support",
"../../test/time_controller:time_controller",
"../../third_party/libyuv:libyuv",
"../rtp_rtcp",
"../rtp_rtcp:rtp_rtcp_format",
"../rtp_rtcp:rtp_video_header",
"codecs/av1:video_coding_codecs_av1_tests",
"deprecated:deprecated_frame_buffer",
"deprecated:deprecated_jitter_buffer_common",
"deprecated:deprecated_packet",
"deprecated:deprecated_session_info",
"deprecated:deprecated_stream_generator",
"svc:scalability_structure_tests",
"svc:svc_rate_allocator_tests",
"timing:jitter_estimator",
"timing:timing_module",
"//third_party/abseil-cpp/absl/types:optional",
"//third_party/abseil-cpp/absl/types:variant",
]
if (rtc_build_libvpx) {
deps += [ rtc_libvpx_dir ]
}
}
}