SkyWay Linux SDK
読み取り中…
検索中…
一致する文字列を見つけられません
passthrough_video_encoder_factory.hpp
1#ifndef SKYWAY_MEDIA_PASSTHROUGH_VIDEO_ENCODER_FACTORY_HPP_
2#define SKYWAY_MEDIA_PASSTHROUGH_VIDEO_ENCODER_FACTORY_HPP_
3
4#include "api/video_codecs/video_encoder_factory.h"
5#include "skyway/media/rtp/passthrough_video_encoder.hpp"
6
7namespace skyway {
8namespace media {
9namespace rtp {
11class PassthroughVideoEncoderFactory : public webrtc::VideoEncoderFactory {
12public:
13 PassthroughVideoEncoderFactory(
14 std::shared_ptr<interface::RtpCapturerVideoSourceRepository> source_repo);
15 std::vector<webrtc::SdpVideoFormat> GetSupportedFormats() const override;
16 std::unique_ptr<webrtc::VideoEncoder> CreateVideoEncoder(
17 const webrtc::SdpVideoFormat& format) override;
18
19private:
20 std::weak_ptr<interface::RtpCapturerVideoSourceRepository> source_repo_;
21};
23
24} // namespace rtp
25} // namespace media
26} // namespace skyway
27
28#endif // SKYWAY_MEDIA_PASSTHROUGH_VIDEO_ENCODER_FACTORY_HPP_