#include "remoting/protocol/webrtc_video_frame_adapter.h"
#include <utility>
#include "base/notreached.h"
#include "third_party/webrtc/rtc_base/ref_counted_object.h"
namespace remoting::protocol {
WebrtcVideoFrameAdapter::WebrtcVideoFrameAdapter(
std::unique_ptr<webrtc::DesktopFrame> frame,
std::unique_ptr<WebrtcVideoEncoder::FrameStats> frame_stats)
: … { … }
WebrtcVideoFrameAdapter::~WebrtcVideoFrameAdapter() = default;
webrtc::VideoFrame WebrtcVideoFrameAdapter::CreateVideoFrame(
std::unique_ptr<webrtc::DesktopFrame> desktop_frame,
std::unique_ptr<WebrtcVideoEncoder::FrameStats> frame_stats) { … }
std::unique_ptr<webrtc::DesktopFrame>
WebrtcVideoFrameAdapter::TakeDesktopFrame() { … }
std::unique_ptr<WebrtcVideoEncoder::FrameStats>
WebrtcVideoFrameAdapter::TakeFrameStats() { … }
webrtc::VideoFrameBuffer::Type WebrtcVideoFrameAdapter::type() const { … }
int WebrtcVideoFrameAdapter::width() const { … }
int WebrtcVideoFrameAdapter::height() const { … }
rtc::scoped_refptr<webrtc::I420BufferInterface>
WebrtcVideoFrameAdapter::ToI420() { … }
}