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