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