Move corruption_detection_message from common_video to api/transport/rtp
Bug: webrtc:358039777 Change-Id: Ic27e162d67c64958844908cdd8413c406e88ea39 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/375201 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Fanny Linderborg <linderborg@webrtc.org> Cr-Commit-Position: refs/heads/main@{#43804}
This commit is contained in:
parent
a97304ca03
commit
39da6f3a75
1
BUILD.gn
1
BUILD.gn
@ -639,6 +639,7 @@ if (rtc_include_tests && !build_with_chromium) {
|
|||||||
"api/task_queue:pending_task_safety_flag_unittests",
|
"api/task_queue:pending_task_safety_flag_unittests",
|
||||||
"api/test/metrics:metrics_unittests",
|
"api/test/metrics:metrics_unittests",
|
||||||
"api/transport:stun_unittest",
|
"api/transport:stun_unittest",
|
||||||
|
"api/transport/rtp:corruption_detection_message_unittest",
|
||||||
"api/video/test:rtc_api_video_unittests",
|
"api/video/test:rtc_api_video_unittests",
|
||||||
"api/video_codecs:libaom_av1_encoder_factory_test",
|
"api/video_codecs:libaom_av1_encoder_factory_test",
|
||||||
"api/video_codecs:simple_encoder_wrapper_unittests",
|
"api/video_codecs:simple_encoder_wrapper_unittests",
|
||||||
|
|||||||
@ -32,3 +32,22 @@ rtc_source_set("dependency_descriptor") {
|
|||||||
"//third_party/abseil-cpp/absl/strings:string_view",
|
"//third_party/abseil-cpp/absl/strings:string_view",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rtc_source_set("corruption_detection_message") {
|
||||||
|
sources = [ "corruption_detection_message.h" ]
|
||||||
|
deps = [
|
||||||
|
"../../../api:array_view",
|
||||||
|
"//third_party/abseil-cpp/absl/container:inlined_vector",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
if (rtc_include_tests && !build_with_chromium) {
|
||||||
|
rtc_library("corruption_detection_message_unittest") {
|
||||||
|
testonly = true
|
||||||
|
sources = [ "corruption_detection_message_unittest.cc" ]
|
||||||
|
deps = [
|
||||||
|
":corruption_detection_message",
|
||||||
|
"../../../test:test_support",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -8,8 +8,8 @@
|
|||||||
* be found in the AUTHORS file in the root of the source tree.
|
* be found in the AUTHORS file in the root of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef COMMON_VIDEO_CORRUPTION_DETECTION_MESSAGE_H_
|
#ifndef API_TRANSPORT_RTP_CORRUPTION_DETECTION_MESSAGE_H_
|
||||||
#define COMMON_VIDEO_CORRUPTION_DETECTION_MESSAGE_H_
|
#define API_TRANSPORT_RTP_CORRUPTION_DETECTION_MESSAGE_H_
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
@ -150,4 +150,4 @@ class CorruptionDetectionMessage::Builder {
|
|||||||
|
|
||||||
} // namespace webrtc
|
} // namespace webrtc
|
||||||
|
|
||||||
#endif // COMMON_VIDEO_CORRUPTION_DETECTION_MESSAGE_H_
|
#endif // API_TRANSPORT_RTP_CORRUPTION_DETECTION_MESSAGE_H_
|
||||||
@ -8,7 +8,7 @@
|
|||||||
* be found in the AUTHORS file in the root of the source tree.
|
* be found in the AUTHORS file in the root of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "common_video/corruption_detection_message.h"
|
#include "api/transport/rtp/corruption_detection_message.h"
|
||||||
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -14,20 +14,12 @@ rtc_library("corruption_detection_converters") {
|
|||||||
"corruption_detection_converters.h",
|
"corruption_detection_converters.h",
|
||||||
]
|
]
|
||||||
deps = [
|
deps = [
|
||||||
":corruption_detection_message",
|
|
||||||
":frame_instrumentation_data",
|
":frame_instrumentation_data",
|
||||||
|
"../api/transport/rtp:corruption_detection_message",
|
||||||
"../rtc_base:checks",
|
"../rtc_base:checks",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
rtc_library("corruption_detection_message") {
|
|
||||||
sources = [ "corruption_detection_message.h" ]
|
|
||||||
deps = [
|
|
||||||
"../api:array_view",
|
|
||||||
"//third_party/abseil-cpp/absl/container:inlined_vector",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
rtc_library("frame_instrumentation_data") {
|
rtc_library("frame_instrumentation_data") {
|
||||||
sources = [ "frame_instrumentation_data.h" ]
|
sources = [ "frame_instrumentation_data.h" ]
|
||||||
}
|
}
|
||||||
@ -150,17 +142,8 @@ if (rtc_include_tests && !build_with_chromium) {
|
|||||||
sources = [ "corruption_detection_converters_unittest.cc" ]
|
sources = [ "corruption_detection_converters_unittest.cc" ]
|
||||||
deps = [
|
deps = [
|
||||||
":corruption_detection_converters",
|
":corruption_detection_converters",
|
||||||
":corruption_detection_message",
|
|
||||||
":frame_instrumentation_data",
|
":frame_instrumentation_data",
|
||||||
"../test:test_support",
|
"../api/transport/rtp:corruption_detection_message",
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
rtc_library("corruption_detection_message_unittest") {
|
|
||||||
testonly = true
|
|
||||||
sources = [ "corruption_detection_message_unittest.cc" ]
|
|
||||||
deps = [
|
|
||||||
":corruption_detection_message",
|
|
||||||
"../test:test_support",
|
"../test:test_support",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -193,7 +176,6 @@ if (rtc_include_tests && !build_with_chromium) {
|
|||||||
deps = [
|
deps = [
|
||||||
":common_video",
|
":common_video",
|
||||||
":corruption_detection_converters_unittest",
|
":corruption_detection_converters_unittest",
|
||||||
":corruption_detection_message_unittest",
|
|
||||||
"../api:scoped_refptr",
|
"../api:scoped_refptr",
|
||||||
"../api/units:time_delta",
|
"../api/units:time_delta",
|
||||||
"../api/video:video_frame",
|
"../api/video:video_frame",
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
#include <optional>
|
#include <optional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "common_video/corruption_detection_message.h"
|
#include "api/transport/rtp/corruption_detection_message.h"
|
||||||
#include "common_video/frame_instrumentation_data.h"
|
#include "common_video/frame_instrumentation_data.h"
|
||||||
#include "rtc_base/checks.h"
|
#include "rtc_base/checks.h"
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
#include "common_video/corruption_detection_message.h"
|
#include "api/transport/rtp/corruption_detection_message.h"
|
||||||
#include "common_video/frame_instrumentation_data.h"
|
#include "common_video/frame_instrumentation_data.h"
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
#include <optional>
|
#include <optional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "common_video/corruption_detection_message.h"
|
#include "api/transport/rtp/corruption_detection_message.h"
|
||||||
#include "common_video/frame_instrumentation_data.h"
|
#include "common_video/frame_instrumentation_data.h"
|
||||||
#include "test/gmock.h"
|
#include "test/gmock.h"
|
||||||
#include "test/gtest.h"
|
#include "test/gtest.h"
|
||||||
|
|||||||
@ -120,13 +120,13 @@ rtc_library("rtp_rtcp_format") {
|
|||||||
"../../api:scoped_refptr",
|
"../../api:scoped_refptr",
|
||||||
"../../api/audio_codecs:audio_codecs_api",
|
"../../api/audio_codecs:audio_codecs_api",
|
||||||
"../../api/transport:network_control",
|
"../../api/transport:network_control",
|
||||||
|
"../../api/transport/rtp:corruption_detection_message",
|
||||||
"../../api/transport/rtp:dependency_descriptor",
|
"../../api/transport/rtp:dependency_descriptor",
|
||||||
"../../api/units:data_rate",
|
"../../api/units:data_rate",
|
||||||
"../../api/units:time_delta",
|
"../../api/units:time_delta",
|
||||||
"../../api/units:timestamp",
|
"../../api/units:timestamp",
|
||||||
"../../api/video:video_layers_allocation",
|
"../../api/video:video_layers_allocation",
|
||||||
"../../api/video:video_rtp_headers",
|
"../../api/video:video_rtp_headers",
|
||||||
"../../common_video:corruption_detection_message",
|
|
||||||
"../../rtc_base:bit_buffer",
|
"../../rtc_base:bit_buffer",
|
||||||
"../../rtc_base:bitstream_reader",
|
"../../rtc_base:bitstream_reader",
|
||||||
"../../rtc_base:buffer",
|
"../../rtc_base:buffer",
|
||||||
@ -298,6 +298,7 @@ rtc_library("rtp_rtcp") {
|
|||||||
"../../api/task_queue",
|
"../../api/task_queue",
|
||||||
"../../api/task_queue:pending_task_safety_flag",
|
"../../api/task_queue:pending_task_safety_flag",
|
||||||
"../../api/transport:network_control",
|
"../../api/transport:network_control",
|
||||||
|
"../../api/transport/rtp:corruption_detection_message",
|
||||||
"../../api/transport/rtp:dependency_descriptor",
|
"../../api/transport/rtp:dependency_descriptor",
|
||||||
"../../api/transport/rtp:rtp_source",
|
"../../api/transport/rtp:rtp_source",
|
||||||
"../../api/units:data_rate",
|
"../../api/units:data_rate",
|
||||||
@ -318,7 +319,6 @@ rtc_library("rtp_rtcp") {
|
|||||||
"../../call:rtp_interfaces",
|
"../../call:rtp_interfaces",
|
||||||
"../../common_video",
|
"../../common_video",
|
||||||
"../../common_video:corruption_detection_converters",
|
"../../common_video:corruption_detection_converters",
|
||||||
"../../common_video:corruption_detection_message",
|
|
||||||
"../../common_video:frame_instrumentation_data",
|
"../../common_video:frame_instrumentation_data",
|
||||||
"../../logging:rtc_event_rtp_rtcp",
|
"../../logging:rtc_event_rtp_rtcp",
|
||||||
"../../rtc_base:bit_buffer",
|
"../../rtc_base:bit_buffer",
|
||||||
@ -692,6 +692,7 @@ if (rtc_include_tests) {
|
|||||||
"../../api/rtc_event_log",
|
"../../api/rtc_event_log",
|
||||||
"../../api/task_queue",
|
"../../api/task_queue",
|
||||||
"../../api/transport:network_control",
|
"../../api/transport:network_control",
|
||||||
|
"../../api/transport/rtp:corruption_detection_message",
|
||||||
"../../api/transport/rtp:dependency_descriptor",
|
"../../api/transport/rtp:dependency_descriptor",
|
||||||
"../../api/units:data_rate",
|
"../../api/units:data_rate",
|
||||||
"../../api/units:data_size",
|
"../../api/units:data_size",
|
||||||
@ -710,7 +711,6 @@ if (rtc_include_tests) {
|
|||||||
"../../call:rtp_receiver",
|
"../../call:rtp_receiver",
|
||||||
"../../call:video_receive_stream_api",
|
"../../call:video_receive_stream_api",
|
||||||
"../../common_video",
|
"../../common_video",
|
||||||
"../../common_video:corruption_detection_message",
|
|
||||||
"../../common_video:frame_instrumentation_data",
|
"../../common_video:frame_instrumentation_data",
|
||||||
"../../common_video/generic_frame_descriptor",
|
"../../common_video/generic_frame_descriptor",
|
||||||
"../../common_video/test:utilities",
|
"../../common_video/test:utilities",
|
||||||
@ -770,7 +770,7 @@ if (rtc_include_tests) {
|
|||||||
sources = [ "source/corruption_detection_extension_unittest.cc" ]
|
sources = [ "source/corruption_detection_extension_unittest.cc" ]
|
||||||
deps = [
|
deps = [
|
||||||
":rtp_rtcp_format",
|
":rtp_rtcp_format",
|
||||||
"../../common_video:corruption_detection_message",
|
"../../api/transport/rtp:corruption_detection_message",
|
||||||
"../../test:test_support",
|
"../../test:test_support",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include "absl/container/inlined_vector.h"
|
#include "absl/container/inlined_vector.h"
|
||||||
#include "api/array_view.h"
|
#include "api/array_view.h"
|
||||||
#include "common_video/corruption_detection_message.h"
|
#include "api/transport/rtp/corruption_detection_message.h"
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
namespace {
|
namespace {
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
#include "absl/strings/string_view.h"
|
#include "absl/strings/string_view.h"
|
||||||
#include "api/array_view.h"
|
#include "api/array_view.h"
|
||||||
#include "api/rtp_parameters.h"
|
#include "api/rtp_parameters.h"
|
||||||
#include "common_video/corruption_detection_message.h"
|
#include "api/transport/rtp/corruption_detection_message.h"
|
||||||
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
#include "common_video/corruption_detection_message.h"
|
#include "api/transport/rtp/corruption_detection_message.h"
|
||||||
#include "test/gmock.h"
|
#include "test/gmock.h"
|
||||||
#include "test/gtest.h"
|
#include "test/gtest.h"
|
||||||
|
|
||||||
|
|||||||
@ -28,6 +28,7 @@
|
|||||||
#include "api/field_trials_view.h"
|
#include "api/field_trials_view.h"
|
||||||
#include "api/make_ref_counted.h"
|
#include "api/make_ref_counted.h"
|
||||||
#include "api/media_types.h"
|
#include "api/media_types.h"
|
||||||
|
#include "api/transport/rtp/corruption_detection_message.h"
|
||||||
#include "api/transport/rtp/dependency_descriptor.h"
|
#include "api/transport/rtp/dependency_descriptor.h"
|
||||||
#include "api/units/data_rate.h"
|
#include "api/units/data_rate.h"
|
||||||
#include "api/units/frequency.h"
|
#include "api/units/frequency.h"
|
||||||
@ -41,7 +42,6 @@
|
|||||||
#include "api/video/video_rotation.h"
|
#include "api/video/video_rotation.h"
|
||||||
#include "api/video/video_timing.h"
|
#include "api/video/video_timing.h"
|
||||||
#include "common_video/corruption_detection_converters.h"
|
#include "common_video/corruption_detection_converters.h"
|
||||||
#include "common_video/corruption_detection_message.h"
|
|
||||||
#include "common_video/frame_instrumentation_data.h"
|
#include "common_video/frame_instrumentation_data.h"
|
||||||
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
||||||
#include "modules/rtp_rtcp/source/absolute_capture_time_sender.h"
|
#include "modules/rtp_rtcp/source/absolute_capture_time_sender.h"
|
||||||
|
|||||||
@ -25,12 +25,12 @@
|
|||||||
#include "api/task_queue/task_queue_factory.h"
|
#include "api/task_queue/task_queue_factory.h"
|
||||||
#include "api/test/mock_frame_encryptor.h"
|
#include "api/test/mock_frame_encryptor.h"
|
||||||
#include "api/test/mock_frame_transformer.h"
|
#include "api/test/mock_frame_transformer.h"
|
||||||
|
#include "api/transport/rtp/corruption_detection_message.h"
|
||||||
#include "api/transport/rtp/dependency_descriptor.h"
|
#include "api/transport/rtp/dependency_descriptor.h"
|
||||||
#include "api/units/timestamp.h"
|
#include "api/units/timestamp.h"
|
||||||
#include "api/video/video_codec_constants.h"
|
#include "api/video/video_codec_constants.h"
|
||||||
#include "api/video/video_frame_type.h"
|
#include "api/video/video_frame_type.h"
|
||||||
#include "api/video/video_timing.h"
|
#include "api/video/video_timing.h"
|
||||||
#include "common_video/corruption_detection_message.h"
|
|
||||||
#include "common_video/frame_instrumentation_data.h"
|
#include "common_video/frame_instrumentation_data.h"
|
||||||
#include "modules/rtp_rtcp/include/rtp_cvo.h"
|
#include "modules/rtp_rtcp/include/rtp_cvo.h"
|
||||||
#include "modules/rtp_rtcp/include/rtp_header_extension_map.h"
|
#include "modules/rtp_rtcp/include/rtp_header_extension_map.h"
|
||||||
|
|||||||
@ -250,7 +250,7 @@ webrtc_fuzzer_test("rtcp_receiver_fuzzer") {
|
|||||||
webrtc_fuzzer_test("rtp_packet_fuzzer") {
|
webrtc_fuzzer_test("rtp_packet_fuzzer") {
|
||||||
sources = [ "rtp_packet_fuzzer.cc" ]
|
sources = [ "rtp_packet_fuzzer.cc" ]
|
||||||
deps = [
|
deps = [
|
||||||
"../../common_video:corruption_detection_message",
|
"../../api/transport/rtp:corruption_detection_message",
|
||||||
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
||||||
]
|
]
|
||||||
seed_corpus = "corpora/rtp-corpus"
|
seed_corpus = "corpora/rtp-corpus"
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
#include <optional>
|
#include <optional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "common_video/corruption_detection_message.h"
|
#include "api/transport/rtp/corruption_detection_message.h"
|
||||||
#include "modules/rtp_rtcp/include/rtp_header_extension_map.h"
|
#include "modules/rtp_rtcp/include/rtp_header_extension_map.h"
|
||||||
#include "modules/rtp_rtcp/source/corruption_detection_extension.h"
|
#include "modules/rtp_rtcp/source/corruption_detection_extension.h"
|
||||||
#include "modules/rtp_rtcp/source/rtp_generic_frame_descriptor_extension.h"
|
#include "modules/rtp_rtcp/source/rtp_generic_frame_descriptor_extension.h"
|
||||||
|
|||||||
@ -95,6 +95,7 @@ rtc_library("video") {
|
|||||||
"../api/metronome",
|
"../api/metronome",
|
||||||
"../api/task_queue",
|
"../api/task_queue",
|
||||||
"../api/task_queue:pending_task_safety_flag",
|
"../api/task_queue:pending_task_safety_flag",
|
||||||
|
"../api/transport/rtp:corruption_detection_message",
|
||||||
"../api/units:data_rate",
|
"../api/units:data_rate",
|
||||||
"../api/units:frequency",
|
"../api/units:frequency",
|
||||||
"../api/units:time_delta",
|
"../api/units:time_delta",
|
||||||
@ -119,7 +120,6 @@ rtc_library("video") {
|
|||||||
"../call:video_send_stream_api",
|
"../call:video_send_stream_api",
|
||||||
"../common_video",
|
"../common_video",
|
||||||
"../common_video:corruption_detection_converters",
|
"../common_video:corruption_detection_converters",
|
||||||
"../common_video:corruption_detection_message",
|
|
||||||
"../common_video:corruption_score_calculator",
|
"../common_video:corruption_score_calculator",
|
||||||
"../common_video:frame_instrumentation_data",
|
"../common_video:frame_instrumentation_data",
|
||||||
"../media:media_constants",
|
"../media:media_constants",
|
||||||
|
|||||||
@ -20,9 +20,9 @@
|
|||||||
#include "absl/algorithm/container.h"
|
#include "absl/algorithm/container.h"
|
||||||
#include "absl/memory/memory.h"
|
#include "absl/memory/memory.h"
|
||||||
#include "absl/types/variant.h"
|
#include "absl/types/variant.h"
|
||||||
|
#include "api/transport/rtp/corruption_detection_message.h"
|
||||||
#include "api/video/video_codec_type.h"
|
#include "api/video/video_codec_type.h"
|
||||||
#include "common_video/corruption_detection_converters.h"
|
#include "common_video/corruption_detection_converters.h"
|
||||||
#include "common_video/corruption_detection_message.h"
|
|
||||||
#include "common_video/frame_instrumentation_data.h"
|
#include "common_video/frame_instrumentation_data.h"
|
||||||
#include "media/base/media_constants.h"
|
#include "media/base/media_constants.h"
|
||||||
#include "modules/pacing/packet_router.h"
|
#include "modules/pacing/packet_router.h"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user