Extract video writing into separate target
Bug: None Change-Id: I3af192606eb623e21a4d648fb69bb62c14ab8b0d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/355560 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/main@{#42541}
This commit is contained in:
parent
0592d2b3c4
commit
eb3da2b1ec
@ -39,7 +39,7 @@ rtc_source_set("media_configuration") {
|
||||
"../../../rtc_base:stringutils",
|
||||
"../../../rtc_base:threading",
|
||||
"../../../test:fileutils",
|
||||
"../../../test:video_test_support",
|
||||
"../../../test:video_frame_writer",
|
||||
"../../../test/pc/e2e/analyzer/video:video_dumping",
|
||||
"../../audio:audio_mixer_api",
|
||||
"../../audio:audio_processing",
|
||||
|
||||
@ -25,7 +25,6 @@ rtc_library("function_video_factory") {
|
||||
|
||||
rtc_library("video_frame_writer") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [ "video_frame_writer.h" ]
|
||||
|
||||
deps = [ "../../video:video_frame" ]
|
||||
|
||||
@ -381,6 +381,7 @@ rtc_library("libaom_av1_encoder_factory_test") {
|
||||
"../../rtc_base:logging",
|
||||
"../../test:fileutils",
|
||||
"../../test:test_support",
|
||||
"../../test:video_frame_writer",
|
||||
"../../test:video_test_support",
|
||||
"//third_party/abseil-cpp/absl/types:variant",
|
||||
]
|
||||
|
||||
@ -67,7 +67,6 @@ if (rtc_include_tests) {
|
||||
"../../rtc_base/third_party/base64",
|
||||
"../../system_wrappers",
|
||||
"../../test:test_support",
|
||||
"../../test:video_test_support",
|
||||
]
|
||||
sources += [
|
||||
"screen_capturer_integration_test.cc",
|
||||
|
||||
@ -838,6 +838,7 @@ if (rtc_include_tests) {
|
||||
"../../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",
|
||||
@ -925,6 +926,7 @@ if (rtc_include_tests) {
|
||||
"../../system_wrappers",
|
||||
"../../test:fileutils",
|
||||
"../../test:test_support",
|
||||
"../../test:video_frame_writer",
|
||||
"../../test:video_test_common",
|
||||
"../../test:video_test_support",
|
||||
"../../video/config:encoder_config",
|
||||
|
||||
@ -261,9 +261,9 @@ if (!is_component_build) {
|
||||
"../test:test_renderer",
|
||||
"../test:test_support",
|
||||
"../test:test_video_capturer",
|
||||
"../test:video_frame_writer",
|
||||
"../test:video_test_common",
|
||||
"../test:video_test_constants",
|
||||
"../test:video_test_support",
|
||||
"../test/time_controller:time_controller",
|
||||
"//third_party/abseil-cpp/absl/flags:flag",
|
||||
"//third_party/abseil-cpp/absl/flags:parse",
|
||||
|
||||
@ -484,14 +484,12 @@ rtc_source_set("test_support") {
|
||||
|
||||
rtc_library("fixed_fps_video_frame_writer_adapter") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
"testsupport/fixed_fps_video_frame_writer_adapter.cc",
|
||||
"testsupport/fixed_fps_video_frame_writer_adapter.h",
|
||||
]
|
||||
deps = [
|
||||
":video_frame_writer",
|
||||
":video_test_support",
|
||||
"../api/test/video:video_frame_writer",
|
||||
"../api/units:time_delta",
|
||||
"../api/video:video_frame",
|
||||
@ -502,9 +500,30 @@ rtc_library("fixed_fps_video_frame_writer_adapter") {
|
||||
}
|
||||
|
||||
rtc_library("video_frame_writer") {
|
||||
sources = []
|
||||
sources = [
|
||||
"testsupport/frame_writer.h",
|
||||
"testsupport/video_frame_writer.cc",
|
||||
"testsupport/video_frame_writer.h",
|
||||
"testsupport/y4m_frame_writer.cc",
|
||||
"testsupport/yuv_frame_writer.cc",
|
||||
]
|
||||
|
||||
deps = []
|
||||
deps = [
|
||||
"../api:scoped_refptr",
|
||||
"../api/test/video:video_frame_writer",
|
||||
"../api/video:video_frame",
|
||||
"../common_video",
|
||||
"../rtc_base:buffer",
|
||||
"../rtc_base:checks",
|
||||
"../rtc_base:logging",
|
||||
]
|
||||
|
||||
if (!is_ios) {
|
||||
deps += [ "//third_party:jpeg" ]
|
||||
sources += [ "testsupport/jpeg_frame_writer.cc" ]
|
||||
} else {
|
||||
sources += [ "testsupport/jpeg_frame_writer_ios.cc" ]
|
||||
}
|
||||
}
|
||||
|
||||
rtc_library("video_test_support") {
|
||||
@ -512,14 +531,9 @@ rtc_library("video_test_support") {
|
||||
|
||||
sources = [
|
||||
"testsupport/frame_reader.h",
|
||||
"testsupport/frame_writer.h",
|
||||
"testsupport/mock/mock_frame_reader.h",
|
||||
"testsupport/video_frame_writer.cc",
|
||||
"testsupport/video_frame_writer.h",
|
||||
"testsupport/y4m_frame_reader.cc",
|
||||
"testsupport/y4m_frame_writer.cc",
|
||||
"testsupport/yuv_frame_reader.cc",
|
||||
"testsupport/yuv_frame_writer.cc",
|
||||
]
|
||||
|
||||
deps = [
|
||||
@ -549,13 +563,6 @@ rtc_library("video_test_support") {
|
||||
"../rtc_base/system:file_wrapper",
|
||||
"//third_party/abseil-cpp/absl/types:optional",
|
||||
]
|
||||
|
||||
if (!is_ios) {
|
||||
deps += [ "//third_party:jpeg" ]
|
||||
sources += [ "testsupport/jpeg_frame_writer.cc" ]
|
||||
} else {
|
||||
sources += [ "testsupport/jpeg_frame_writer_ios.cc" ]
|
||||
}
|
||||
}
|
||||
|
||||
if (rtc_include_tests) {
|
||||
@ -675,7 +682,7 @@ if (rtc_include_tests) {
|
||||
deps = [
|
||||
":fixed_fps_video_frame_writer_adapter",
|
||||
":test_support",
|
||||
":video_test_support",
|
||||
":video_frame_writer",
|
||||
"../api/units:time_delta",
|
||||
"../api/units:timestamp",
|
||||
"../api/video:video_frame",
|
||||
@ -705,6 +712,7 @@ if (rtc_include_tests) {
|
||||
":test_support",
|
||||
":test_support_test_artifacts",
|
||||
":video_codec_tester",
|
||||
":video_frame_writer",
|
||||
":video_test_common",
|
||||
":video_test_support",
|
||||
":y4m_frame_generator",
|
||||
@ -1346,6 +1354,8 @@ rtc_library("video_codec_tester") {
|
||||
]
|
||||
deps = [
|
||||
":scoped_key_value_config",
|
||||
":video_frame_writer",
|
||||
":video_test_support",
|
||||
"../api:array_view",
|
||||
"../api:create_frame_generator",
|
||||
"../api:frame_generator_api",
|
||||
@ -1381,7 +1391,6 @@ rtc_library("video_codec_tester") {
|
||||
"../rtc_base/synchronization:mutex",
|
||||
"../system_wrappers",
|
||||
"../test:fileutils",
|
||||
"../test:video_test_support",
|
||||
"../video/config:streams_config",
|
||||
"//third_party/abseil-cpp/absl/strings",
|
||||
"//third_party/abseil-cpp/absl/types:optional",
|
||||
|
||||
@ -63,7 +63,7 @@ rtc_library("video_dumping") {
|
||||
"video_dumping.h",
|
||||
]
|
||||
deps = [
|
||||
"../../../..:video_test_support",
|
||||
"../../../..:video_frame_writer",
|
||||
"../../../../../api/test/video:video_frame_writer",
|
||||
"../../../../../api/video:video_frame",
|
||||
"../../../../../rtc_base:logging",
|
||||
@ -383,8 +383,8 @@ rtc_library("video_quality_analyzer_injection_helper") {
|
||||
"../../../..:fixed_fps_video_frame_writer_adapter",
|
||||
"../../../..:test_renderer",
|
||||
"../../../..:test_video_capturer",
|
||||
"../../../..:video_frame_writer",
|
||||
"../../../..:video_test_common",
|
||||
"../../../..:video_test_support",
|
||||
"../../../../../api:array_view",
|
||||
"../../../../../api:stats_observer_interface",
|
||||
"../../../../../api:video_quality_analyzer_api",
|
||||
@ -543,6 +543,7 @@ if (rtc_include_tests) {
|
||||
":video_dumping",
|
||||
"../../../..:fileutils",
|
||||
"../../../..:test_support",
|
||||
"../../../..:video_frame_writer",
|
||||
"../../../..:video_test_support",
|
||||
"../../../../../api:scoped_refptr",
|
||||
"../../../../../api/video:video_frame",
|
||||
|
||||
@ -555,9 +555,9 @@ if (rtc_include_tests) {
|
||||
"../test:test_renderer",
|
||||
"../test:test_support",
|
||||
"../test:test_support_test_artifacts",
|
||||
"../test:video_frame_writer",
|
||||
"../test:video_test_common",
|
||||
"../test:video_test_constants",
|
||||
"../test:video_test_support",
|
||||
"config:streams_config",
|
||||
"//third_party/abseil-cpp/absl/algorithm:container",
|
||||
"//third_party/abseil-cpp/absl/flags:flag",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user