/* * Copyright (c) 2021 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 VIDEO_FRAME_CADENCE_ADAPTER_H_ #define VIDEO_FRAME_CADENCE_ADAPTER_H_ #include <memory> #include "absl/base/attributes.h" #include "api/field_trials_view.h" #include "api/metronome/metronome.h" #include "api/task_queue/task_queue_base.h" #include "api/units/time_delta.h" #include "api/video/video_frame.h" #include "api/video/video_sink_interface.h" #include "rtc_base/synchronization/mutex.h" #include "rtc_base/thread_annotations.h" #include "system_wrappers/include/clock.h" namespace webrtc { // A sink adapter implementing mutations to the received frame cadence. // With the exception of the constructor and the methods overridden in // VideoSinkInterface, the rest of the interface to this class (including dtor) // needs to happen on the queue passed in Create. class FrameCadenceAdapterInterface : public rtc::VideoSinkInterface<VideoFrame> { … }; } // namespace webrtc #endif // VIDEO_FRAME_CADENCE_ADAPTER_H_