-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathvideoio.h
28 lines (24 loc) · 1.2 KB
/
videoio.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef CV_RS_VIDEOIO_H
#define CV_RS_VIDEOIO_H
#include "common.h"
#include <opencv2/videoio.hpp>
extern "C" {
void* cv_videocapture_new(int index);
void* cv_videocapture_from_file(const char* const filename);
void* cv_videocapture_from_gst_pipeline(const char* const pipeline);
bool cv_videocapture_is_opened(const cv::VideoCapture* const cap);
bool cv_videocapture_read(cv::VideoCapture* cap, cv::Mat* mat);
void cv_videocapture_drop(cv::VideoCapture* cap);
bool cv_videocapture_set(cv::VideoCapture* cap, int property, double value);
double cv_videocapture_get(cv::VideoCapture* cap, int property);
void* cv_videowriter_default();
void* cv_videowriter_new(const char* const path, int fourcc, double fps, Size2i frame_size, bool is_color);
void cv_videowriter_drop(cv::VideoWriter* writer);
bool cv_videowriter_open(
cv::VideoWriter* writer, const char* const path, int fourcc, double fps, Size2i frame_size, bool is_color);
bool cv_videowriter_is_opened(cv::VideoWriter* writer);
void cv_videowriter_write(cv::VideoWriter* writer, cv::Mat* mat);
bool cv_videowriter_set(cv::VideoWriter* writer, int property, double value);
double cv_videowriter_get(cv::VideoWriter* writer, int property);
}
#endif // CV_RS_VIDEOIO_H