diff --git a/BUILD.gn b/BUILD.gn index c1ccb5c259..4f019c1b6d 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -345,7 +345,7 @@ if (!build_with_chromium) { if (build_with_mozilla) { deps += [ - "api:video_frame_api", + "api/video:video_frame", "system_wrappers:field_trial_default", "system_wrappers:metrics_default", ] @@ -381,7 +381,7 @@ rtc_static_library("webrtc_common") { ":typedefs", "api:array_view", "api:optional", - "api:video_bitrate_allocation", + "api/video:video_bitrate_allocation", "rtc_base:checks", "rtc_base:deprecation", "rtc_base:stringutils", diff --git a/api/BUILD.gn b/api/BUILD.gn index 989858f4bd..effdb5dc20 100644 --- a/api/BUILD.gn +++ b/api/BUILD.gn @@ -105,10 +105,10 @@ rtc_static_library("libjingle_peerconnection_api") { ":libjingle_logging_api", ":optional", ":rtc_stats_api", - ":video_frame_api", "audio:audio_mixer_api", "audio_codecs:audio_codecs_api", "transport:bitrate_settings", + "video:video_frame", # Basically, don't add stuff here. You might break sensitive downstream # targets like pnacl. API should not depend on anything outside of this @@ -220,80 +220,56 @@ rtc_source_set("fec_controller_api") { ] } +# TODO(bugs.webrtc.org/9253): Deprecated, replaced by video:video_frame. +# Delete after downstream users are updated. rtc_source_set("video_frame_api") { visibility = [ "*" ] sources = [ - "video/video_content_type.cc", - "video/video_content_type.h", - "video/video_frame.cc", - "video/video_frame.h", - "video/video_frame_buffer.cc", - "video/video_frame_buffer.h", - "video/video_rotation.h", - "video/video_timing.cc", - "video/video_timing.h", "videosinkinterface.h", ] - deps = [ - "../rtc_base:checks", - "../rtc_base:rtc_base_approved", + public_deps = [ # no-presubmit-check TODO(webrtc:8603) + "video:video_frame", ] } +# TODO(bugs.webrtc.org/9253): Deprecated, replaced by video:encoded_frame. +# Delete after downstream users are updated. rtc_source_set("encoded_frame_api") { visibility = [ "*" ] - sources = [ - "video/encoded_frame.cc", - "video/encoded_frame.h", - ] - deps = [ - "../modules/video_coding:encoded_frame", + public_deps = [ # no-presubmit-check TODO(webrtc:8603) + "video:encoded_frame", ] } +# TODO(bugs.webrtc.org/9253): Deprecated, replaced by video:video_stream_decoder. +# Delete after downstream users are updated. rtc_source_set("video_stream_decoder") { visibility = [ "*" ] - sources = [ - "video/video_stream_decoder.h", - ] - deps = [ - ":encoded_frame_api", - ":optional", - ":video_frame_api", - "../api/video_codecs:video_codecs_api", + public_deps = [ # no-presubmit-check TODO(webrtc:8603) + "video:video_stream_decoder", ] } +# TODO(bugs.webrtc.org/9253): Deprecated, replaced by video:video_stream_decoder_create. +# Delete after downstream users are updated. rtc_source_set("video_stream_decoder_create") { visibility = [ "*" ] allow_poison = [ "software_video_codecs" ] # TODO(bugs.webrtc.org/7925): Remove. - sources = [ - "video/video_stream_decoder_create.cc", - "video/video_stream_decoder_create.h", - ] - deps = [ - ":video_stream_decoder", - "../rtc_base:rtc_base_approved", - "../video:video_stream_decoder_impl", + public_deps = [ # no-presubmit-check TODO(webrtc:8603) + "video:video_stream_decoder_create", ] } +# TODO(bugs.webrtc.org/9253): Deprecated, replaced by video:video_frame_i420. +# Delete after downstream users are updated. rtc_source_set("video_frame_api_i420") { visibility = [ "*" ] - sources = [ - "video/i420_buffer.cc", - "video/i420_buffer.h", - ] - deps = [ - ":video_frame_api", - "../rtc_base:checks", - "../rtc_base:rtc_base", - "../rtc_base/memory:aligned_malloc", - "//third_party/libyuv", + public_deps = [ # no-presubmit-check TODO(webrtc:8603) + "video:video_frame_i420", ] } @@ -344,18 +320,12 @@ rtc_source_set("libjingle_peerconnection_test_api") { ] } +# TODO(bugs.webrtc.org/9253): Deprecated, replaced by video:video_bitrate_allocation. +# Delete after downstream users are updated. rtc_source_set("video_bitrate_allocation") { visibility = [ "*" ] - sources = [ - "video/video_bitrate_allocation.cc", - "video/video_bitrate_allocation.h", - ] - deps = [ - ":optional", - "..:typedefs", - "../rtc_base:checks", - "../rtc_base:safe_conversions", - "../rtc_base:stringutils", + public_deps = [ # no-presubmit-check TODO(webrtc:8603) + "video:video_bitrate_allocation", ] } diff --git a/api/mediastreaminterface.h b/api/mediastreaminterface.h index 2e2cff00f1..34a3143fd3 100644 --- a/api/mediastreaminterface.h +++ b/api/mediastreaminterface.h @@ -27,7 +27,7 @@ // TODO(zhihuang): Remove unrelated headers once downstream applications stop // relying on them; they were previously transitively included by // mediachannel.h, which is no longer a dependency of this file. -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" #include "api/videosourceinterface.h" #include "modules/audio_processing/include/audio_processing_statistics.h" #include "rtc_base/ratetracker.h" diff --git a/api/video/BUILD.gn b/api/video/BUILD.gn new file mode 100644 index 0000000000..14f68e6174 --- /dev/null +++ b/api/video/BUILD.gn @@ -0,0 +1,101 @@ +# Copyright (c) 2018 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("../../webrtc.gni") + +rtc_source_set("video_frame") { + visibility = [ "*" ] + sources = [ + "video_content_type.cc", + "video_content_type.h", + "video_frame.cc", + "video_frame.h", + "video_frame_buffer.cc", + "video_frame_buffer.h", + "video_rotation.h", + "video_sink_interface.h", + "video_timing.cc", + "video_timing.h", + ] + + deps = [ + "../../rtc_base:checks", + "../../rtc_base:rtc_base_approved", + ] +} + +rtc_source_set("video_frame_i420") { + visibility = [ "*" ] + sources = [ + "i420_buffer.cc", + "i420_buffer.h", + ] + deps = [ + ":video_frame", + "../../rtc_base:checks", + "../../rtc_base:rtc_base", + "../../rtc_base/memory:aligned_malloc", + "//third_party/libyuv", + ] +} + +rtc_source_set("encoded_frame") { + visibility = [ "*" ] + sources = [ + "encoded_frame.cc", + "encoded_frame.h", + ] + + deps = [ + "../../modules/video_coding:encoded_frame", + ] +} + +rtc_source_set("video_bitrate_allocation") { + visibility = [ "*" ] + sources = [ + "video_bitrate_allocation.cc", + "video_bitrate_allocation.h", + ] + deps = [ + "..:optional", + "../..:typedefs", + "../../rtc_base:checks", + "../../rtc_base:safe_conversions", + "../../rtc_base:stringutils", + ] +} + +rtc_source_set("video_stream_decoder") { + visibility = [ "*" ] + sources = [ + "video_stream_decoder.h", + ] + + deps = [ + ":encoded_frame", + ":video_frame", + "..:optional", + "../video_codecs:video_codecs_api", + ] +} + +rtc_source_set("video_stream_decoder_create") { + visibility = [ "*" ] + allow_poison = [ "software_video_codecs" ] # TODO(bugs.webrtc.org/7925): Remove. + sources = [ + "video_stream_decoder_create.cc", + "video_stream_decoder_create.h", + ] + + deps = [ + ":video_stream_decoder", + "../../rtc_base:rtc_base_approved", + "../../video:video_stream_decoder_impl", + ] +} diff --git a/api/video/video_sink_interface.h b/api/video/video_sink_interface.h new file mode 100644 index 0000000000..aac8b4ac38 --- /dev/null +++ b/api/video/video_sink_interface.h @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2016 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. + */ + +#ifndef API_VIDEO_VIDEO_SINK_INTERFACE_H_ +#define API_VIDEO_VIDEO_SINK_INTERFACE_H_ + +#include + +namespace rtc { + +template +class VideoSinkInterface { + public: + virtual ~VideoSinkInterface() = default; + + virtual void OnFrame(const VideoFrameT& frame) = 0; + + // Should be called by the source when it discards the frame due to rate + // limiting. + virtual void OnDiscardedFrame() {} +}; + +} // namespace rtc + +#endif // API_VIDEO_VIDEO_SINK_INTERFACE_H_ diff --git a/api/video_codecs/BUILD.gn b/api/video_codecs/BUILD.gn index 38951fdfc6..00609a7e7b 100644 --- a/api/video_codecs/BUILD.gn +++ b/api/video_codecs/BUILD.gn @@ -27,12 +27,12 @@ rtc_source_set("video_codecs_api") { deps = [ "..:optional", - "..:video_frame_api", "../..:webrtc_common", "../../:typedefs", "../../common_video", "../../rtc_base:checks", "../../rtc_base:rtc_base_approved", + "../video:video_frame", ] } diff --git a/api/videosinkinterface.h b/api/videosinkinterface.h index 2399320541..21957b433c 100644 --- a/api/videosinkinterface.h +++ b/api/videosinkinterface.h @@ -11,22 +11,8 @@ #ifndef API_VIDEOSINKINTERFACE_H_ #define API_VIDEOSINKINTERFACE_H_ -#include - -namespace rtc { - -template -class VideoSinkInterface { - public: - virtual ~VideoSinkInterface() {} - - virtual void OnFrame(const VideoFrameT& frame) = 0; - - // Should be called by the source when it discards the frame due to rate - // limiting. - virtual void OnDiscardedFrame() {} -}; - -} // namespace rtc +// TODO(nisse): Place holder for moved file. Delete after applications are +// updated. +#include "api/video/video_sink_interface.h" #endif // API_VIDEOSINKINTERFACE_H_ diff --git a/api/videosourceinterface.h b/api/videosourceinterface.h index 065e2dcfc4..17f16046c0 100644 --- a/api/videosourceinterface.h +++ b/api/videosourceinterface.h @@ -14,7 +14,7 @@ #include #include "api/optional.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" namespace rtc { diff --git a/call/BUILD.gn b/call/BUILD.gn index 19ee903ff3..57883a5258 100644 --- a/call/BUILD.gn +++ b/call/BUILD.gn @@ -222,7 +222,7 @@ rtc_source_set("video_stream_api") { "../api:libjingle_peerconnection_api", "../api:optional", "../api:transport_api", - "../api:video_frame_api", + "../api/video:video_frame", "../api/video_codecs:video_codecs_api", "../common_video:common_video", "../modules/rtp_rtcp:rtp_rtcp_format", diff --git a/call/video_receive_stream.h b/call/video_receive_stream.h index 1adc696461..3f017968e4 100644 --- a/call/video_receive_stream.h +++ b/call/video_receive_stream.h @@ -21,7 +21,7 @@ #include "api/rtpparameters.h" #include "api/video/video_content_type.h" #include "api/video/video_timing.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" #include "call/rtp_config.h" #include "common_types.h" // NOLINT(build/include) #include "common_video/include/frame_callback.h" diff --git a/call/video_send_stream.h b/call/video_send_stream.h index 10d4ba1f43..50de2cc426 100644 --- a/call/video_send_stream.h +++ b/call/video_send_stream.h @@ -19,7 +19,7 @@ #include "api/call/transport.h" #include "api/rtpparameters.h" #include "api/rtp_headers.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" #include "api/videosourceinterface.h" #include "api/video_codecs/video_encoder_factory.h" #include "call/rtp_config.h" diff --git a/common_video/BUILD.gn b/common_video/BUILD.gn index 3bbbde92d2..0e3f2da471 100644 --- a/common_video/BUILD.gn +++ b/common_video/BUILD.gn @@ -58,8 +58,8 @@ rtc_static_library("common_video") { "..:webrtc_common", "../:typedefs", "../api:optional", - "../api:video_frame_api", - "../api:video_frame_api_i420", + "../api/video:video_frame", + "../api/video:video_frame_i420", "../media:rtc_h264_profile_id", "../modules:module_api", "../rtc_base:checks", @@ -108,8 +108,8 @@ if (rtc_include_tests) { deps = [ ":common_video", - "../api:video_frame_api", - "../api:video_frame_api_i420", + "../api/video:video_frame", + "../api/video:video_frame_i420", "../modules/video_capture:video_capture", "../rtc_base:rtc_base", "../rtc_base:rtc_base_approved", diff --git a/common_video/include/incoming_video_stream.h b/common_video/include/incoming_video_stream.h index 405416c2d8..8063061d31 100644 --- a/common_video/include/incoming_video_stream.h +++ b/common_video/include/incoming_video_stream.h @@ -11,7 +11,7 @@ #ifndef COMMON_VIDEO_INCLUDE_INCOMING_VIDEO_STREAM_H_ #define COMMON_VIDEO_INCLUDE_INCOMING_VIDEO_STREAM_H_ -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" #include "common_video/video_render_frames.h" #include "rtc_base/race_checker.h" #include "rtc_base/task_queue.h" diff --git a/examples/BUILD.gn b/examples/BUILD.gn index ed6e060e3e..90b867904d 100644 --- a/examples/BUILD.gn +++ b/examples/BUILD.gn @@ -632,7 +632,7 @@ if (is_linux || is_win) { } deps = [ "../api:libjingle_peerconnection_api", - "../api:video_frame_api_i420", + "../api/video:video_frame_i420", "../rtc_base:checks", "../rtc_base:stringutils", ] @@ -667,9 +667,9 @@ if (is_linux || is_win) { deps += [ "../api:libjingle_peerconnection_api", "../api:libjingle_peerconnection_test_api", - "../api:video_frame_api", "../api/audio_codecs:builtin_audio_decoder_factory", "../api/audio_codecs:builtin_audio_encoder_factory", + "../api/video:video_frame", "../api/video_codecs:builtin_video_decoder_factory", "../api/video_codecs:builtin_video_encoder_factory", "../media:rtc_audio_video", @@ -803,9 +803,9 @@ if (is_win || is_android) { deps = [ "../api:libjingle_peerconnection_api", "../api:libjingle_peerconnection_test_api", - "../api:video_frame_api", "../api/audio_codecs:builtin_audio_decoder_factory", "../api/audio_codecs:builtin_audio_encoder_factory", + "../api/video:video_frame", "../media:rtc_audio_video", "../media:rtc_internal_video_codecs", "../media:rtc_media", diff --git a/examples/unityplugin/video_observer.h b/examples/unityplugin/video_observer.h index ec98c86aa9..84c03d329a 100644 --- a/examples/unityplugin/video_observer.h +++ b/examples/unityplugin/video_observer.h @@ -14,7 +14,7 @@ #include #include "api/mediastreaminterface.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" #include "examples/unityplugin/unity_plugin_apis.h" class VideoObserver : public rtc::VideoSinkInterface { diff --git a/media/BUILD.gn b/media/BUILD.gn index 4d711321ec..2808191e2b 100644 --- a/media/BUILD.gn +++ b/media/BUILD.gn @@ -121,9 +121,9 @@ rtc_static_library("rtc_media_base") { "..:webrtc_common", "../api:libjingle_peerconnection_api", "../api:optional", - "../api:video_frame_api", - "../api:video_frame_api_i420", "../api/audio_codecs:audio_codecs_api", + "../api/video:video_frame", + "../api/video:video_frame_i420", "../api/video_codecs:video_codecs_api", "../call:call_interfaces", "../call:video_stream_api", @@ -206,7 +206,7 @@ rtc_static_library("rtc_internal_video_codecs") { ":rtc_media_base", ":rtc_software_fallback_wrappers", "..:webrtc_common", - "../api:video_frame_api_i420", + "../api/video:video_frame_i420", "../api/video_codecs:video_codecs_api", "../call:call_interfaces", "../call:video_stream_api", @@ -347,9 +347,9 @@ rtc_static_library("rtc_audio_video") { "../api:libjingle_peerconnection_api", "../api:optional", "../api:transport_api", - "../api:video_frame_api", - "../api:video_frame_api_i420", "../api/audio_codecs:audio_codecs_api", + "../api/video:video_frame", + "../api/video:video_frame_i420", "../api/video_codecs:video_codecs_api", "../call", "../call:call_interfaces", @@ -452,7 +452,7 @@ if (rtc_include_tests) { deps = [ ":rtc_audio_video", "../api:libjingle_peerconnection_api", - "../api:video_frame_api_i420", + "../api/video:video_frame_i420", "../call:video_stream_api", "../common_video:common_video", "../modules/audio_coding:rent_a_codec", @@ -499,7 +499,7 @@ if (rtc_include_tests) { ":rtc_media_base", "..:webrtc_common", "../api:call_api", - "../api:video_frame_api", + "../api/video:video_frame", "../api/video_codecs:video_codecs_api", "../call:call_interfaces", "../call:mock_rtp_interfaces", @@ -558,7 +558,7 @@ if (rtc_include_tests) { ":rtc_audio_video", ":rtc_constants", ":rtc_data", - "../api:video_frame_api_i420", + "../api/video:video_frame_i420", "../modules/audio_processing:mocks", "../modules/video_coding:video_codec_interface", "../pc:rtc_pc", @@ -651,9 +651,9 @@ if (rtc_include_tests) { ":rtc_software_fallback_wrappers", "../api:libjingle_peerconnection_api", "../api:mock_video_codec_factory", - "../api:video_frame_api", "../api/audio_codecs:builtin_audio_decoder_factory", "../api/audio_codecs:builtin_audio_encoder_factory", + "../api/video:video_frame", "../api/video_codecs:video_codecs_api", "../audio", "../call:call_interfaces", diff --git a/media/base/fakevideorenderer.h b/media/base/fakevideorenderer.h index fa9aff70f5..a7c532a7d2 100644 --- a/media/base/fakevideorenderer.h +++ b/media/base/fakevideorenderer.h @@ -12,7 +12,7 @@ #define MEDIA_BASE_FAKEVIDEORENDERER_H_ #include "api/video/video_frame.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" #include "rtc_base/criticalsection.h" #include "rtc_base/logging.h" diff --git a/media/base/mediachannel.h b/media/base/mediachannel.h index 57cbb3e4c0..e504230770 100644 --- a/media/base/mediachannel.h +++ b/media/base/mediachannel.h @@ -25,7 +25,7 @@ #include "api/rtpreceiverinterface.h" #include "api/video/video_content_type.h" #include "api/video/video_timing.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" #include "api/videosourceinterface.h" #include "call/video_config.h" #include "media/base/codec.h" diff --git a/media/base/videobroadcaster.h b/media/base/videobroadcaster.h index 078368e1f3..119769d2cf 100644 --- a/media/base/videobroadcaster.h +++ b/media/base/videobroadcaster.h @@ -16,7 +16,7 @@ #include #include "api/video/video_frame.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" #include "media/base/videosourcebase.h" #include "rtc_base/criticalsection.h" #include "rtc_base/thread_checker.h" diff --git a/media/engine/webrtcvideoengine.h b/media/engine/webrtcvideoengine.h index e17da3d7ba..15ff4efa0c 100644 --- a/media/engine/webrtcvideoengine.h +++ b/media/engine/webrtcvideoengine.h @@ -21,7 +21,7 @@ #include "api/optional.h" #include "api/video/video_frame.h" #include "api/video_codecs/sdp_video_format.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" #include "api/videosourceinterface.h" #include "call/call.h" #include "call/flexfec_receive_stream.h" diff --git a/modules/BUILD.gn b/modules/BUILD.gn index 0182584c3c..7a50406f20 100644 --- a/modules/BUILD.gn +++ b/modules/BUILD.gn @@ -54,9 +54,9 @@ rtc_source_set("module_api") { "../:typedefs", "../api:libjingle_peerconnection_api", "../api:optional", - "../api:video_frame_api", - "../api:video_frame_api_i420", "../api/transport:network_control", + "../api/video:video_frame", + "../api/video:video_frame_i420", "../rtc_base:deprecation", "../rtc_base:rtc_base_approved", "video_coding:codec_globals_headers", diff --git a/modules/rtp_rtcp/BUILD.gn b/modules/rtp_rtcp/BUILD.gn index 24cb05e281..7f9fed983f 100644 --- a/modules/rtp_rtcp/BUILD.gn +++ b/modules/rtp_rtcp/BUILD.gn @@ -87,8 +87,8 @@ rtc_source_set("rtp_rtcp_format") { "../../api:array_view", "../../api:libjingle_peerconnection_api", "../../api:optional", - "../../api:video_frame_api", "../../api/audio_codecs:audio_codecs_api", + "../../api/video:video_frame", "../../common_video", "../../rtc_base:checks", "../../rtc_base:deprecation", @@ -405,7 +405,7 @@ if (rtc_include_tests) { "../../api:libjingle_peerconnection_api", "../../api:optional", "../../api:transport_api", - "../../api:video_frame_api", + "../../api/video:video_frame", "../../call:rtp_receiver", "../../common_video:common_video", "../../logging:mocks", diff --git a/modules/video_capture/BUILD.gn b/modules/video_capture/BUILD.gn index 96d5173e01..ae655548e2 100644 --- a/modules/video_capture/BUILD.gn +++ b/modules/video_capture/BUILD.gn @@ -31,8 +31,8 @@ rtc_static_library("video_capture_module") { "../..:webrtc_common", "../../:typedefs", "../../api:libjingle_peerconnection_api", - "../../api:video_frame_api", - "../../api:video_frame_api_i420", + "../../api/video:video_frame", + "../../api/video:video_frame_i420", "../../common_video", "../../media:rtc_media_base", "../../rtc_base:rtc_base_approved", @@ -231,8 +231,8 @@ if (!build_with_chromium) { deps = [ ":video_capture_internal_impl", ":video_capture_module", - "../../api:video_frame_api", - "../../api:video_frame_api_i420", + "../../api/video:video_frame", + "../../api/video:video_frame_i420", "../../common_video:common_video", "../../rtc_base:rtc_base_approved", "../../system_wrappers:system_wrappers", diff --git a/modules/video_capture/video_capture.h b/modules/video_capture/video_capture.h index 28340a5c13..fb3a461e00 100644 --- a/modules/video_capture/video_capture.h +++ b/modules/video_capture/video_capture.h @@ -12,7 +12,7 @@ #define MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_H_ #include "api/video/video_rotation.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" #include "modules/include/module.h" #include "modules/video_capture/video_capture_defines.h" diff --git a/modules/video_coding/BUILD.gn b/modules/video_coding/BUILD.gn index bd06f3fda3..bcdd9b18b3 100644 --- a/modules/video_coding/BUILD.gn +++ b/modules/video_coding/BUILD.gn @@ -18,7 +18,7 @@ rtc_static_library("encoded_frame") { ":video_codec_interface", "../../:webrtc_common", "../../api:optional", - "../../api:video_frame_api_i420", + "../../api/video:video_frame_i420", "../../common_video:common_video", "../../modules:module_api", "../../modules:module_api_public", @@ -139,11 +139,11 @@ rtc_static_library("video_coding") { "..:module_api_public", "../..:webrtc_common", "../../:typedefs", - "../../api:encoded_frame_api", "../../api:fec_controller_api", "../../api:optional", - "../../api:video_frame_api", - "../../api:video_frame_api_i420", + "../../api/video:encoded_frame", + "../../api/video:video_frame", + "../../api/video:video_frame_i420", "../../api/video_codecs:video_codecs_api", "../../call:video_stream_api", "../../common_video", @@ -176,7 +176,7 @@ rtc_source_set("video_codec_interface") { "..:module_api", "../..:typedefs", "../..:webrtc_common", - "../../api:video_frame_api", + "../../api/video:video_frame", "../../api/video_codecs:video_codecs_api", "../../common_video:common_video", ] @@ -265,7 +265,7 @@ rtc_static_library("webrtc_h264") { deps = [ ":video_codec_interface", ":video_coding_utility", - "../../api:video_frame_api_i420", + "../../api/video:video_frame_i420", "../../api/video_codecs:video_codecs_api", "../../media:rtc_h264_profile_id", "../../media:rtc_media_base", @@ -319,7 +319,7 @@ rtc_static_library("webrtc_i420") { ":video_coding_utility", "../..:webrtc_common", "../../:typedefs", - "../../api:video_frame_api_i420", + "../../api/video:video_frame_i420", "../../common_video:common_video", "../../rtc_base:checks", "../../rtc_base:rtc_base_approved", @@ -348,8 +348,8 @@ rtc_static_library("webrtc_multiplex") { ":video_coding_utility", "..:module_api", "../..:webrtc_common", - "../../api:video_frame_api", - "../../api:video_frame_api_i420", + "../../api/video:video_frame", + "../../api/video:video_frame_i420", "../../api/video_codecs:video_codecs_api", "../../common_video:common_video", "../../rtc_base:rtc_base", @@ -389,7 +389,7 @@ rtc_static_library("webrtc_vp8_helpers") { "../..:webrtc_common", "../../:typedefs", "../../api:optional", - "../../api:video_frame_api", + "../../api/video:video_frame", "../../api/video_codecs:video_codecs_api", "../../common_video", "../../rtc_base:checks", @@ -431,7 +431,7 @@ rtc_static_library("webrtc_vp8") { "../..:webrtc_common", "../../:typedefs", "../../api:optional", - "../../api:video_frame_api", + "../../api/video:video_frame", "../../api/video_codecs:video_codecs_api", "../../common_video", "../../rtc_base:checks", @@ -540,7 +540,7 @@ if (rtc_include_tests) { ] deps = [ - "../../api:video_frame_api", + "../../api/video:video_frame", "../../api/video_codecs:video_codecs_api", "../../media:rtc_audio_video", "../../media:rtc_media_base", @@ -577,8 +577,8 @@ if (rtc_include_tests) { ":video_codec_interface", ":video_coding", ":webrtc_vp8_helpers", - "../../api:video_frame_api", - "../../api:video_frame_api_i420", + "../../api/video:video_frame", + "../../api/video:video_frame_i420", "../../common_video:common_video", "../../rtc_base:checks", "../../rtc_base:rtc_base_approved", @@ -613,8 +613,8 @@ if (rtc_include_tests) { ":webrtc_vp9_helpers", "../..:webrtc_common", "../../:typedefs", - "../../api:video_frame_api", - "../../api:video_frame_api_i420", + "../../api/video:video_frame", + "../../api/video:video_frame_i420", "../../api/video_codecs:video_codecs_api", "../../common_video:common_video", "../../media:rtc_audio_video", @@ -734,8 +734,8 @@ if (rtc_include_tests) { "../../api:create_videocodec_test_fixture_api", "../../api:mock_video_codec_factory", "../../api:optional", - "../../api:video_frame_api_i420", "../../api:videocodec_test_fixture_api", + "../../api/video:video_frame_i420", "../../api/video_codecs:video_codecs_api", "../../common_video", "../../media:rtc_h264_profile_id", @@ -839,8 +839,8 @@ if (rtc_include_tests) { "..:module_api", "../..:webrtc_common", "../../:typedefs", - "../../api:video_frame_api", - "../../api:video_frame_api_i420", + "../../api/video:video_frame", + "../../api/video:video_frame_i420", "../../api/video_codecs:video_codecs_api", "../../common_video:common_video", "../../media:rtc_media_base", diff --git a/pc/BUILD.gn b/pc/BUILD.gn index 7eee652411..15e050b228 100644 --- a/pc/BUILD.gn +++ b/pc/BUILD.gn @@ -73,7 +73,7 @@ rtc_static_library("rtc_pc_base") { "../api:libjingle_peerconnection_api", "../api:optional", "../api:ortc_api", - "../api:video_frame_api", + "../api/video:video_frame", "../call:rtp_interfaces", "../call:rtp_receiver", "../common_video:common_video", @@ -195,7 +195,7 @@ rtc_static_library("peerconnection") { "../api:libjingle_peerconnection_api", "../api:optional", "../api:rtc_stats_api", - "../api:video_frame_api", + "../api/video:video_frame", "../api/video_codecs:video_codecs_api", "../call:call_interfaces", "../common_video:common_video", diff --git a/pc/channel.h b/pc/channel.h index 50356fae08..86f9aa677f 100644 --- a/pc/channel.h +++ b/pc/channel.h @@ -21,7 +21,7 @@ #include "api/call/audio_sink.h" #include "api/jsep.h" #include "api/rtpreceiverinterface.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" #include "api/videosourceinterface.h" #include "call/rtp_packet_sink_interface.h" #include "media/base/mediachannel.h" diff --git a/pc/videotracksource.h b/pc/videotracksource.h index d4731d029e..7f81a7b45c 100644 --- a/pc/videotracksource.h +++ b/pc/videotracksource.h @@ -13,7 +13,7 @@ #include "api/mediastreaminterface.h" #include "api/notifier.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" #include "media/base/mediachannel.h" #include "rtc_base/thread_checker.h" diff --git a/sdk/BUILD.gn b/sdk/BUILD.gn index 7e3dcfbc25..eea209098e 100644 --- a/sdk/BUILD.gn +++ b/sdk/BUILD.gn @@ -134,8 +134,8 @@ if (is_ios || is_mac) { ":native_video", ":videoframebuffer_objc", "../api:libjingle_peerconnection_api", - "../api:video_frame_api", - "../api:video_frame_api_i420", + "../api/video:video_frame", + "../api/video:video_frame_i420", "../common_video", "../media:rtc_media_base", "../rtc_base:checks", @@ -162,8 +162,8 @@ if (is_ios || is_mac) { ] deps = [ ":common_objc", - "//api:video_frame_api", - "//api:video_frame_api_i420", + "//api/video:video_frame", + "//api/video:video_frame_i420", "//common_video", "//rtc_base:checks", "//rtc_base:rtc_base_approved", @@ -212,7 +212,7 @@ if (is_ios || is_mac) { ":videosource_objc", "../api:libjingle_peerconnection_api", "../api:optional", - "../api:video_frame_api", + "../api/video:video_frame", "../common_video", "../media:rtc_media_base", "../rtc_base:checks", @@ -297,7 +297,7 @@ if (is_ios || is_mac) { ":video_objc", ":videoframebuffer_objc", ":videorenderer_objc", - "../api:video_frame_api", + "../api/video:video_frame", "../rtc_base:checks", "../rtc_base:rtc_base_approved", ] @@ -677,8 +677,8 @@ if (is_ios || is_mac) { ":videorendereradapter_objc", ":videosource_objc", "../api:libjingle_peerconnection_api", - "../api:video_frame_api", "../api/audio_codecs:builtin_audio_decoder_factory", + "../api/video:video_frame", "../api/video_codecs:video_codecs_api", "../common_video", "../media:rtc_media_base", @@ -720,7 +720,7 @@ if (is_ios || is_mac) { ":videosource_objc", ":videotoolbox_objc", "../../system_wrappers:system_wrappers_default", - "../api:video_frame_api_i420", + "../api/video:video_frame_i420", "../common_video:common_video", "../media:rtc_media_base", "../media:rtc_media_tests_utils", @@ -1023,7 +1023,7 @@ if (is_ios || is_mac) { ":videoframebuffer_objc", ":videorenderer_objc", "../api:libjingle_peerconnection_api", - "../api:video_frame_api", + "../api/video:video_frame", "../api/video_codecs:video_codecs_api", "../common_video", "../rtc_base:rtc_base", @@ -1063,8 +1063,8 @@ if (is_ios || is_mac) { ":videoframebuffer_objc", ":videorenderer_objc", ":wrapped_native_codec_objc", - "../api:video_frame_api", - "../api:video_frame_api_i420", + "../api/video:video_frame", + "../api/video:video_frame_i420", "../api/video_codecs:video_codecs_api", "../common_video", "../media:rtc_audio_video", @@ -1119,7 +1119,7 @@ if (is_ios || is_mac) { ":videocodec_objc", ":videoframebuffer_objc", ":videosource_objc", - "../api:video_frame_api", + "../api/video:video_frame", "../api/video_codecs:video_codecs_api", "../common_video", "../media:rtc_audio_video", diff --git a/sdk/android/BUILD.gn b/sdk/android/BUILD.gn index 0bdccd60c6..7035286b1f 100644 --- a/sdk/android/BUILD.gn +++ b/sdk/android/BUILD.gn @@ -373,7 +373,7 @@ rtc_static_library("video_jni") { ":native_api_jni", "../..:webrtc_common", "../../api:libjingle_peerconnection_api", - "../../api:video_frame_api", + "../../api/video:video_frame", "../../api/video_codecs:video_codecs_api", "../../common_video:common_video", "../../media:rtc_audio_video", @@ -1232,7 +1232,7 @@ rtc_static_library("native_api_video") { ":native_api_jni", ":video_jni", "//api:libjingle_peerconnection_api", - "//api:video_frame_api", + "//api/video:video_frame", "//rtc_base:rtc_base_approved", ] } diff --git a/sdk/android/src/jni/video_renderer.cc b/sdk/android/src/jni/video_renderer.cc index 0271bd1da5..889012a9cb 100644 --- a/sdk/android/src/jni/video_renderer.cc +++ b/sdk/android/src/jni/video_renderer.cc @@ -11,7 +11,7 @@ #include #include "api/video/video_frame.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" #include "sdk/android/generated_video_jni/jni/VideoRenderer_jni.h" #include "sdk/android/src/jni/jni_helpers.h" #include "sdk/android/src/jni/videoframe.h" diff --git a/sdk/objc/Framework/Native/api/video_renderer.h b/sdk/objc/Framework/Native/api/video_renderer.h index 712a3def15..ffba02b3be 100644 --- a/sdk/objc/Framework/Native/api/video_renderer.h +++ b/sdk/objc/Framework/Native/api/video_renderer.h @@ -16,7 +16,7 @@ #include #include "api/video/video_frame.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" namespace webrtc { diff --git a/sdk/objc/Framework/Native/src/objc_video_renderer.h b/sdk/objc/Framework/Native/src/objc_video_renderer.h index a71f6fdfc5..9b7c9b00fd 100644 --- a/sdk/objc/Framework/Native/src/objc_video_renderer.h +++ b/sdk/objc/Framework/Native/src/objc_video_renderer.h @@ -15,7 +15,7 @@ #import #include "api/video/video_frame.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" @protocol RTCVideoRenderer; diff --git a/test/BUILD.gn b/test/BUILD.gn index 54e209726d..c62d3494ae 100644 --- a/test/BUILD.gn +++ b/test/BUILD.gn @@ -64,8 +64,8 @@ rtc_source_set("video_test_common") { "../:typedefs", "../api:libjingle_peerconnection_api", "../api:optional", - "../api:video_frame_api", - "../api:video_frame_api_i420", + "../api/video:video_frame", + "../api/video:video_frame_i420", "../api/video_codecs:video_codecs_api", "../call:video_stream_api", "../common_video", @@ -241,8 +241,8 @@ if (rtc_include_tests) { ":video_test_common", "..:webrtc_common", "../:typedefs", - "../api:video_frame_api", - "../api:video_frame_api_i420", + "../api/video:video_frame", + "../api/video:video_frame_i420", "../common_video", "../rtc_base:checks", "../rtc_base:rtc_base_approved", @@ -319,7 +319,7 @@ if (rtc_include_tests) { ":test_support_test_artifacts", ":video_test_common", ":video_test_support", - "../api:video_frame_api_i420", + "../api/video:video_frame_i420", "../modules/rtp_rtcp:rtp_rtcp", "../rtc_base:rtc_base_approved", "../test:single_threaded_task_queue", @@ -553,10 +553,10 @@ rtc_source_set("test_common") { "../:typedefs", "../api:libjingle_peerconnection_api", "../api:transport_api", - "../api:video_frame_api", - "../api:video_frame_api_i420", "../api/audio_codecs:builtin_audio_decoder_factory", "../api/audio_codecs:builtin_audio_encoder_factory", + "../api/video:video_frame", + "../api/video:video_frame_i420", "../api/video_codecs:video_codecs_api", "../audio", "../call", @@ -660,7 +660,7 @@ rtc_source_set("test_renderer_generic") { ":test_support", "..:webrtc_common", "../:typedefs", - "../api:video_frame_api", + "../api/video:video_frame", "../common_video", "../media:rtc_media_base", "../rtc_base:checks", diff --git a/test/fake_videorenderer.h b/test/fake_videorenderer.h index 89a5ceb598..a2c953ff77 100644 --- a/test/fake_videorenderer.h +++ b/test/fake_videorenderer.h @@ -12,7 +12,7 @@ #define TEST_FAKE_VIDEORENDERER_H_ #include "api/video/video_frame.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" namespace webrtc { namespace test { diff --git a/test/video_renderer.h b/test/video_renderer.h index ffdb907cd4..17815c1637 100644 --- a/test/video_renderer.h +++ b/test/video_renderer.h @@ -12,7 +12,7 @@ #include -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" namespace webrtc { class VideoFrame; diff --git a/video/BUILD.gn b/video/BUILD.gn index c4e66c37a5..25ec808073 100644 --- a/video/BUILD.gn +++ b/video/BUILD.gn @@ -62,8 +62,8 @@ rtc_static_library("video") { "../api:libjingle_peerconnection_api", "../api:optional", "../api:transport_api", - "../api:video_frame_api", - "../api:video_frame_api_i420", + "../api/video:video_frame", + "../api/video:video_frame_i420", "../api/video_codecs:video_codecs_api", "../call:bitrate_allocator", "../call:call_interfaces", @@ -116,10 +116,10 @@ rtc_source_set("video_stream_decoder_impl") { ] deps = [ - "../api:encoded_frame_api", "../api:optional", - "../api:video_frame_api", - "../api:video_stream_decoder", + "../api/video:encoded_frame", + "../api/video:video_frame", + "../api/video:video_stream_decoder", "../api/video_codecs:video_codecs_api", "../modules/video_coding:video_coding", "../rtc_base:rtc_base_approved", @@ -358,8 +358,8 @@ if (rtc_include_tests) { ":video", ":video_mocks", "../api:optional", - "../api:video_frame_api", - "../api:video_frame_api_i420", + "../api/video:video_frame", + "../api/video:video_frame_i420", "../api/video_codecs:video_codecs_api", "../call:call_interfaces", "../call:mock_bitrate_allocator", diff --git a/video/video_stream_decoder.h b/video/video_stream_decoder.h index 7a435250c1..c542d8badb 100644 --- a/video/video_stream_decoder.h +++ b/video/video_stream_decoder.h @@ -16,7 +16,7 @@ #include #include -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" #include "modules/remote_bitrate_estimator/include/remote_bitrate_estimator.h" #include "modules/video_coding/include/video_coding_defines.h" #include "rtc_base/criticalsection.h" diff --git a/video/video_stream_encoder.h b/video/video_stream_encoder.h index 34cfc95ffc..2feee27427 100644 --- a/video/video_stream_encoder.h +++ b/video/video_stream_encoder.h @@ -19,7 +19,7 @@ #include "api/video/video_rotation.h" #include "api/video_codecs/video_encoder.h" -#include "api/videosinkinterface.h" +#include "api/video/video_sink_interface.h" #include "call/call.h" #include "common_types.h" // NOLINT(build/include) #include "common_video/include/video_bitrate_allocator.h"