SkyWay Linux SDK
読み取り中…
検索中…
一致する文字列を見つけられません
opencv_capturer_video_source.hpp
1//
2// © NTT DOCOMO BUSINESS, Inc. All Rights Reserved.
3//
4
5// Define “SKYWAY_ENABLE_OPENCV” if you want to use OpenCV functionality
6#ifdef SKYWAY_ENABLE_OPENCV
7
8#ifndef SKYWAY_MEDIA_OPENCV_CAPTURER_VIDEO_SOURCE_HPP_
9#define SKYWAY_MEDIA_OPENCV_CAPTURER_VIDEO_SOURCE_HPP_
10
11#include "skyway/media/i420_capturer_video_source.hpp"
12
13#include <api/media_stream_interface.h>
14#include <opencv2/opencv.hpp>
15
16namespace skyway {
17namespace media {
18namespace opencv {
19
23public:
25 class OpenCVInternalCapturerVideoSource
26 : public I420CapturerVideoSource::I420InternalCapturerVideoSource {
27 public:
28 ~OpenCVInternalCapturerVideoSource();
29
30 static rtc::scoped_refptr<OpenCVInternalCapturerVideoSource> Create();
31
32 bool Render(cv::Mat mat);
33
34 protected:
35 OpenCVInternalCapturerVideoSource();
36 };
40
42 void Render(cv::Mat mat);
43
45 // Impl interface::InternalCapturerVideoSource
46 rtc::scoped_refptr<interface::InternalCapturerVideoSource> GetSource();
48
49private:
50 rtc::scoped_refptr<OpenCVInternalCapturerVideoSource> source_;
51};
52
53} // namespace opencv
54} // namespace media
55} // namespace skyway
56
57#endif /* SKYWAY_MEDIA_OPENCV_CAPTURER_VIDEO_SOURCE_HPP_ */
58#endif /* SKYWAY_ENABLE_OPENCV */
Definition capturer_video_source.hpp:19
OpenCVを利用した描画処理を行うクラス
Definition opencv_capturer_video_source.hpp:22
void Render(cv::Mat mat)
cv::Matで作成した画像を描画、送信します。