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/environment/environment.h"
5#include "api/video_codecs/video_encoder_factory.h"
6#include "skyway/media/rtp/passthrough_video_encoder.hpp"
7
8namespace skyway {
9namespace media {
10namespace rtp {
12class PassthroughVideoEncoderFactory : public webrtc::VideoEncoderFactory {
13public:
14 PassthroughVideoEncoderFactory(
15 std::shared_ptr<interface::RtpCapturerVideoSourceRepository> source_repo);
16 std::vector<webrtc::SdpVideoFormat> GetSupportedFormats() const override;
17 std::unique_ptr<webrtc::VideoEncoder> Create(const webrtc::Environment& env,
18 const webrtc::SdpVideoFormat& format) override;
19
20private:
21 std::weak_ptr<interface::RtpCapturerVideoSourceRepository> source_repo_;
22};
24
25} // namespace rtp
26} // namespace media
27} // namespace skyway
28
29#endif // SKYWAY_MEDIA_PASSTHROUGH_VIDEO_ENCODER_FACTORY_HPP_