SkyWay Linux SDK
読み取り中…
検索中…
一致する文字列を見つけられません
i420_capturer_video_source.hpp
1#ifndef SKYWAY_MEDIA_I420_CAPTURER_VIDEO_SOURCE_HPP_
2#define SKYWAY_MEDIA_I420_CAPTURER_VIDEO_SOURCE_HPP_
3
4#include "skyway/media/interface/capturer_video_source.hpp"
5
6namespace skyway {
7namespace media {
8
11public:
13 class I420InternalCapturerVideoSource : public interface::InternalCapturerVideoSource {
14 public:
15 virtual ~I420InternalCapturerVideoSource() = default;
16
17 static rtc::scoped_refptr<I420InternalCapturerVideoSource> Create();
18
19 void Render(int width,
20 int height,
21 const uint8_t* y,
22 const uint8_t* u,
23 const uint8_t* v,
24 int stride_y,
25 int stride_u,
26 int stride_v);
27 void Render(int width,
28 int height,
29 const uint8_t* y,
30 const uint8_t* u,
31 const uint8_t* v,
32 int stride_y,
33 int stride_u,
34 int stride_v,
35 uint16_t frame_id);
36 bool is_screencast() const override;
37 absl::optional<bool> needs_denoising() const override;
38 webrtc::MediaSourceInterface::SourceState state() const override;
39 bool remote() const override;
40
41 protected:
42 I420InternalCapturerVideoSource();
43 };
47
49 void Render(int width,
50 int height,
51 const uint8_t* y,
52 const uint8_t* u,
53 const uint8_t* v,
54 int stride_y,
55 int stride_u,
56 int stride_v);
57
59 // Impl interface::InternalCapturerVideoSource
60 rtc::scoped_refptr<interface::InternalCapturerVideoSource> GetSource();
62private:
63 rtc::scoped_refptr<I420InternalCapturerVideoSource> source_;
64};
65} // namespace media
66} // namespace skyway
67
68#endif /* SKYWAY_MEDIA_I420_CAPTURER_VIDEO_SOURCE_HPP_ */
I420形式となっている映像の描画処理を行うクラス
Definition i420_capturer_video_source.hpp:10
void Render(int width, int height, const uint8_t *y, const uint8_t *u, const uint8_t *v, int stride_y, int stride_u, int stride_v)
I420形式の画像を描画、送信します。
Definition capturer_video_source.hpp:15
Definition capturer_video_source.hpp:10