#include "remoting/protocol/webrtc_video_encoder_factory.h"
#include "base/check.h"
#include "base/task/single_thread_task_runner.h"
#include "base/task/thread_pool.h"
#include "remoting/protocol/video_channel_state_observer.h"
#include "remoting/protocol/webrtc_video_encoder_wrapper.h"
#include "third_party/webrtc/api/video_codecs/video_codec.h"
#if defined(USE_H264_ENCODER)
#include "remoting/codec/webrtc_video_encoder_gpu.h"
#endif
namespace remoting::protocol {
WebrtcVideoEncoderFactory::WebrtcVideoEncoderFactory()
: … { … }
WebrtcVideoEncoderFactory::~WebrtcVideoEncoderFactory() = default;
std::unique_ptr<webrtc::VideoEncoder> WebrtcVideoEncoderFactory::Create(
const webrtc::Environment& ,
const webrtc::SdpVideoFormat& format) { … }
std::vector<webrtc::SdpVideoFormat>
WebrtcVideoEncoderFactory::GetSupportedFormats() const { … }
void WebrtcVideoEncoderFactory::ApplySessionOptions(
const SessionOptions& options) { … }
}