OpenTok C SDK
video_capturer.h
Go to the documentation of this file.
1 
7 #ifndef VIDEO_CAPTURER_H
8 #define VIDEO_CAPTURER_H
9 
10 #include "config.h"
11 #include "video_frame.h"
12 
13 OTC_BEGIN_DECL
14 
18 
24  int format;
25  int width;
26  int height;
27  int fps;
30 };
31 
50  otc_bool (*init)(const otc_video_capturer *capturer, void *user_data);
51 
60  otc_bool (*destroy)(const otc_video_capturer *capturer, void *user_data);
61 
70  otc_bool (*start)(const otc_video_capturer *capturer, void *user_data);
71 
80  otc_bool (*stop)(const otc_video_capturer *capturer, void *user_data);
81 
91  otc_bool (*get_capture_settings)(const otc_video_capturer *capturer,
92  void *user_data,
93  struct otc_video_capturer_settings *settings);
94 
99  void *user_data;
100 
105  void *reserved;
106 };
107 
108 
119  int rotation,
120  const otc_video_frame *frame);
121 
122 OTC_END_DECL
123 
124 #endif // VIDEO_CAPTURER_H
void * reserved
Definition: video_capturer.h:105
int otc_status
Definition: base.h:114
int fps
Definition: video_capturer.h:27
struct otc_video_frame otc_video_frame
Definition: video_frame.h:25
Definition: video_capturer.h:41
struct otc_video_capturer otc_video_capturer
Definition: video_capturer.h:17
int height
Definition: video_capturer.h:26
int format
Definition: video_capturer.h:24
Definition: video_capturer.h:23
otc_bool mirror_on_local_render
Definition: video_capturer.h:29
int width
Definition: video_capturer.h:25
otc_status otc_video_capturer_provide_frame(const otc_video_capturer *capturer, int rotation, const otc_video_frame *frame)
int otc_bool
Definition: base.h:100
Video frame.
int expected_delay
Definition: video_capturer.h:28
void * user_data
Definition: video_capturer.h:99