diff --git a/api/BUILD.gn b/api/BUILD.gn index 138d855b45..d1b2c23491 100644 --- a/api/BUILD.gn +++ b/api/BUILD.gn @@ -1437,7 +1437,6 @@ if (rtc_include_tests) { "units:units_unittests", "video:frame_buffer_unittest", "video:rtp_video_frame_assembler_unittests", - "video:video_unittests", ] absl_deps = [ "//third_party/abseil-cpp/absl/strings", diff --git a/api/video/BUILD.gn b/api/video/BUILD.gn index 5d1aa2a1a3..17277562e1 100644 --- a/api/video/BUILD.gn +++ b/api/video/BUILD.gn @@ -259,37 +259,6 @@ rtc_source_set("video_bitrate_allocator_factory") { ] } -rtc_source_set("video_stream_decoder") { - visibility = [ "*" ] - sources = [ "video_stream_decoder.h" ] - - deps = [ - ":encoded_frame", - ":video_frame", - ":video_rtp_headers", - "../task_queue", - "../units:time_delta", - "../video_codecs:video_codecs_api", - ] - absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] -} - -rtc_library("video_stream_decoder_create") { - visibility = [ "*" ] - sources = [ - "video_stream_decoder_create.cc", - "video_stream_decoder_create.h", - ] - - deps = [ - ":video_stream_decoder", - "../../api:field_trials_view", - "../../video:video_stream_decoder_impl", - "../task_queue", - "../video_codecs:video_codecs_api", - ] -} - rtc_library("video_adaptation") { visibility = [ "*" ] sources = [ @@ -403,19 +372,3 @@ rtc_library("frame_buffer_unittest") { "../../test:test_support", ] } - -if (rtc_include_tests) { - rtc_library("video_unittests") { - testonly = true - sources = [ "video_stream_decoder_create_unittest.cc" ] - deps = [ - ":video_frame_metadata", - ":video_frame_type", - ":video_stream_decoder_create", - "../../modules/rtp_rtcp:rtp_video_header", - "../../test:test_support", - "../task_queue:default_task_queue_factory", - "../video_codecs:builtin_video_decoder_factory", - ] - } -} diff --git a/api/video/video_stream_decoder.h b/api/video/video_stream_decoder.h deleted file mode 100644 index 8d71dd300c..0000000000 --- a/api/video/video_stream_decoder.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -#ifndef API_VIDEO_VIDEO_STREAM_DECODER_H_ -#define API_VIDEO_VIDEO_STREAM_DECODER_H_ - -#include -#include -#include - -#include "api/units/time_delta.h" -#include "api/video/encoded_frame.h" -#include "api/video/video_content_type.h" -#include "api/video/video_frame.h" -#include "api/video_codecs/sdp_video_format.h" -#include "api/video_codecs/video_decoder_factory.h" - -namespace webrtc { -// NOTE: This class is still under development and may change without notice. -class VideoStreamDecoderInterface { - public: - class Callbacks { - public: - virtual ~Callbacks() = default; - - struct FrameInfo { - absl::optional qp; - VideoContentType content_type; - }; - - // Called when the VideoStreamDecoder enters a non-decodable state. - virtual void OnNonDecodableState() = 0; - - virtual void OnContinuousUntil(int64_t frame_id) {} - - virtual void OnDecodedFrame(VideoFrame frame, - const FrameInfo& frame_info) = 0; - }; - - virtual ~VideoStreamDecoderInterface() = default; - - virtual void OnFrame(std::unique_ptr frame) = 0; - - virtual void SetMinPlayoutDelay(TimeDelta min_delay) = 0; - virtual void SetMaxPlayoutDelay(TimeDelta max_delay) = 0; -}; - -} // namespace webrtc - -#endif // API_VIDEO_VIDEO_STREAM_DECODER_H_ diff --git a/api/video/video_stream_decoder_create.cc b/api/video/video_stream_decoder_create.cc deleted file mode 100644 index e14c3bc851..0000000000 --- a/api/video/video_stream_decoder_create.cc +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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. - */ - -#include "api/video/video_stream_decoder_create.h" - -#include - -#include "video/video_stream_decoder_impl.h" - -namespace webrtc { - -std::unique_ptr CreateVideoStreamDecoder( - VideoStreamDecoderInterface::Callbacks* callbacks, - VideoDecoderFactory* decoder_factory, - TaskQueueFactory* task_queue_factory, - std::map> decoder_settings, - // TODO(jonaso, webrtc:10335): Consider what to do with factories - // vs. field trials. - const FieldTrialsView* field_trials) { - return std::make_unique( - callbacks, decoder_factory, task_queue_factory, - std::move(decoder_settings), field_trials); -} - -} // namespace webrtc diff --git a/api/video/video_stream_decoder_create.h b/api/video/video_stream_decoder_create.h deleted file mode 100644 index 974fd804ce..0000000000 --- a/api/video/video_stream_decoder_create.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. - */ - -#ifndef API_VIDEO_VIDEO_STREAM_DECODER_CREATE_H_ -#define API_VIDEO_VIDEO_STREAM_DECODER_CREATE_H_ - -#include -#include -#include - -#include "api/field_trials_view.h" -#include "api/task_queue/task_queue_factory.h" -#include "api/video/video_stream_decoder.h" -#include "api/video_codecs/sdp_video_format.h" - -namespace webrtc { -// The `decoder_settings` parameter is a map between: -// --> <