blob: 569ae6e7bc862dec6d2d5d48a719cc0e8608335a [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:071# Copyright (c) 2014 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
mbonadei9aa3f0a2017-01-24 14:58:229import("../webrtc.gni")
kjellander@webrtc.org1227ab82014-06-23 19:21:0710
kjellanderb62dbbe2016-09-23 07:38:5211rtc_static_library("common_video") {
Per Kjellandera7f2d842018-01-10 15:54:5312 visibility = [ "*" ]
13
kjellander@webrtc.org11bea892014-07-03 17:04:1214 sources = [
emircan55a401e2016-04-26 19:55:0715 "bitrate_adjuster.cc",
kthelgasonb9061722016-10-26 09:48:1616 "h264/h264_bitstream_parser.cc",
17 "h264/h264_bitstream_parser.h",
sprang52033d62016-06-02 09:43:3218 "h264/h264_common.cc",
19 "h264/h264_common.h",
20 "h264/pps_parser.cc",
21 "h264/pps_parser.h",
magjedfffc1e52016-10-31 12:55:5722 "h264/profile_level_id.h",
sprang52033d62016-06-02 09:43:3223 "h264/sps_parser.cc",
24 "h264/sps_parser.h",
25 "h264/sps_vui_rewriter.cc",
26 "h264/sps_vui_rewriter.h",
magjed@webrtc.org73d763e2015-03-17 11:40:4527 "i420_buffer_pool.cc",
emircan55a401e2016-04-26 19:55:0728 "include/bitrate_adjuster.h",
kjellander6f8ce062015-11-16 21:52:2429 "include/i420_buffer_pool.h",
30 "include/incoming_video_stream.h",
nisseea3a7982017-05-15 09:42:1131 "include/video_frame.h",
kjellander6f8ce062015-11-16 21:52:2432 "include/video_frame_buffer.h",
Peter Boström9a638662015-05-13 11:28:1133 "incoming_video_stream.cc",
kjellander@webrtc.org11bea892014-07-03 17:04:1234 "libyuv/include/webrtc_libyuv.h",
kjellander@webrtc.org11bea892014-07-03 17:04:1235 "libyuv/webrtc_libyuv.cc",
magjed@webrtc.org2386d6d2015-03-05 14:03:0836 "video_frame_buffer.cc",
Peter Boström9a638662015-05-13 11:28:1137 "video_render_frames.cc",
38 "video_render_frames.h",
kjellander@webrtc.org11bea892014-07-03 17:04:1239 ]
40
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:2241 deps = [
42 "..:webrtc_common",
Mirko Bonadeid9708072019-01-25 19:26:4843 "../api:scoped_refptr",
Sebastian Jansson74682c12019-03-01 10:50:2044 "../api/task_queue",
Niels Möller4dc66c52018-10-05 12:17:5845 "../api/video:encoded_image",
Erik Språngc8caaec2018-05-23 13:20:3146 "../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 22:49:4347 "../api/video:video_bitrate_allocator",
Niels Möllerc6ce9c52018-05-11 09:15:3048 "../api/video:video_frame",
49 "../api/video:video_frame_i420",
zhihuang130ca7e2017-06-21 08:02:5950 "../media:rtc_h264_profile_id",
Patrik Höglundbe214a22018-01-04 11:14:3551 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:4752 "../rtc_base:rtc_base",
53 "../rtc_base:rtc_task_queue",
Karl Wiberg12edf4c2018-03-07 13:18:5654 "../rtc_base:safe_minmax",
Stefan Holmer0a5792e2018-10-05 11:47:1255 "../system_wrappers:metrics",
Danil Chapovalov196100e2018-06-21 08:17:2456 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundbe214a22018-01-04 11:14:3557 "//third_party/libyuv",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:2258 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:0759}
kjellander2a3892a2016-06-08 08:27:5260
61if (rtc_include_tests) {
Mirko Bonadei92ea95e2017-09-15 04:47:3162 common_video_resources = [ "../resources/foreman_cif.yuv" ]
kjellander32c4a202016-08-30 09:53:4963
64 if (is_ios) {
65 bundle_data("common_video_unittests_bundle_data") {
66 testonly = true
67 sources = common_video_resources
68 outputs = [
69 "{{bundle_resources_dir}}/{{source_file_part}}",
70 ]
71 }
72 }
73
ehmaldonado38a21322016-09-02 11:10:3474 rtc_test("common_video_unittests") {
kjellander2a3892a2016-06-08 08:27:5275 testonly = true
76
77 sources = [
78 "bitrate_adjuster_unittest.cc",
kthelgasonb9061722016-10-26 09:48:1679 "h264/h264_bitstream_parser_unittest.cc",
kjellander2a3892a2016-06-08 08:27:5280 "h264/pps_parser_unittest.cc",
magjedfffc1e52016-10-31 12:55:5781 "h264/profile_level_id_unittest.cc",
kjellander2a3892a2016-06-08 08:27:5282 "h264/sps_parser_unittest.cc",
83 "h264/sps_vui_rewriter_unittest.cc",
84 "i420_buffer_pool_unittest.cc",
kjellander2a3892a2016-06-08 08:27:5285 "libyuv/libyuv_unittest.cc",
Emircan Uysaler901e0ff2018-06-26 19:22:3886 "video_frame_unittest.cc",
kjellander2a3892a2016-06-08 08:27:5287 ]
88
kjellander2a3892a2016-06-08 08:27:5289 deps = [
90 ":common_video",
Yves Gerey3e707812018-11-28 15:47:4991 "../:webrtc_common",
Mirko Bonadeid9708072019-01-25 19:26:4892 "../api:scoped_refptr",
Yves Gerey3e707812018-11-28 15:47:4993 "../api/units:time_delta",
Niels Möllerc6ce9c52018-05-11 09:15:3094 "../api/video:video_frame",
Emircan Uysaler901e0ff2018-06-26 19:22:3895 "../api/video:video_frame_i010",
Niels Möllerc6ce9c52018-05-11 09:15:3096 "../api/video:video_frame_i420",
Yves Gerey3e707812018-11-28 15:47:4997 "../media:rtc_h264_profile_id",
ehmaldonado656610f2017-02-06 10:21:1198 "../modules/video_capture:video_capture",
Yves Gerey3e707812018-11-28 15:47:4999 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:47100 "../rtc_base:rtc_base",
101 "../rtc_base:rtc_base_approved",
Niels Möller2cb7b5e2018-04-19 08:02:26102 "../rtc_base:rtc_base_tests_utils",
Patrik Höglund7696bef2018-03-15 14:05:39103 "../test:fileutils",
ehmaldonado26bddb92016-11-30 14:12:01104 "../test:test_main",
Yves Gerey21cddff2018-10-30 20:12:42105 "../test:test_support",
kjellander2a3892a2016-06-08 08:27:52106 "../test:video_test_common",
kjellander2a3892a2016-06-08 08:27:52107 "//testing/gtest",
Artem Titov1ebfb6a2019-01-03 22:49:37108 "//third_party/abseil-cpp/absl/memory:memory",
Mirko Bonadei401d0562017-12-14 10:24:00109 "//third_party/libyuv",
kjellander2a3892a2016-06-08 08:27:52110 ]
111
ehmaldonado3a7f35b2016-09-14 12:10:01112 data = common_video_resources
kjellander2a3892a2016-06-08 08:27:52113 if (is_android) {
114 deps += [ "//testing/android/native_test:native_test_support" ]
kjellander28a0ffd2016-08-24 14:48:42115 shard_timeout = 900
116 }
kjellander2a3892a2016-06-08 08:27:52117
kjellander32c4a202016-08-30 09:53:49118 if (is_ios) {
119 deps += [ ":common_video_unittests_bundle_data" ]
kjellander2a3892a2016-06-08 08:27:52120 }
121 }
122}