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