// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REMOTING_PROTOCOL_WEBRTC_VIDEO_FRAME_ADAPTER_H_ #define REMOTING_PROTOCOL_WEBRTC_VIDEO_FRAME_ADAPTER_H_ #include <memory> #include "remoting/codec/webrtc_video_encoder.h" #include "third_party/webrtc/api/video/video_frame.h" #include "third_party/webrtc/api/video/video_frame_buffer.h" #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" namespace remoting::protocol { // Adapter class to wrap a DesktopFrame produced by the capturer, and provide // it as a VideoFrame to the WebRTC video sink. The encoder will extract the // captured DesktopFrame from VideoFrame::video_frame_buffer(). class WebrtcVideoFrameAdapter : public webrtc::VideoFrameBuffer { … }; } // namespace remoting::protocol #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_FRAME_ADAPTER_H_