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