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