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;
32 };
33 
52  otc_bool (*init)(const otc_video_capturer* capturer, void* user_data);
53 
62  otc_bool (*destroy)(const otc_video_capturer* capturer, void* user_data);
63 
72  otc_bool (*start)(const otc_video_capturer* capturer, void* user_data);
73 
82  otc_bool (*stop)(const otc_video_capturer* capturer, void* user_data);
83 
94  const otc_video_capturer* capturer,
95  void* user_data,
96  struct otc_video_capturer_settings* settings);
97 
102  void* user_data;
103 
108  void* reserved;
109 };
110 
120 OTC_DECL(otc_status)
122  int rotation,
123  const otc_video_frame* frame);
124 
131  0,
135 };
136 
145 OTC_DECL(otc_status)
147  const otc_video_capturer* capturer,
148  enum otc_video_capturer_content_hint_type content_hint);
149 
156 
157 OTC_END_DECL
158 
159 #endif // VIDEO_CAPTURER_H
int otc_bool
Definition: base.h:127
int otc_status
Definition: base.h:153
Definition: video_capturer.h:43
void * user_data
Definition: video_capturer.h:102
void * reserved
Definition: video_capturer.h:108
otc_bool(* stop)(const otc_video_capturer *capturer, void *user_data)
Definition: video_capturer.h:82
otc_bool(* init)(const otc_video_capturer *capturer, void *user_data)
Definition: video_capturer.h:52
otc_bool(* start)(const otc_video_capturer *capturer, void *user_data)
Definition: video_capturer.h:72
otc_bool(* get_capture_settings)(const otc_video_capturer *capturer, void *user_data, struct otc_video_capturer_settings *settings)
Definition: video_capturer.h:93
otc_bool(* destroy)(const otc_video_capturer *capturer, void *user_data)
Definition: video_capturer.h:62
Definition: video_capturer.h:23
int expected_delay
Definition: video_capturer.h:28
int width
Definition: video_capturer.h:25
int format
Definition: video_capturer.h:24
otc_bool mirror_on_local_render
Definition: video_capturer.h:30
int fps
Definition: video_capturer.h:27
int height
Definition: video_capturer.h:26
otc_status otc_video_capturer_provide_frame(const otc_video_capturer *capturer, int rotation, const otc_video_frame *frame)
enum otc_video_capturer_content_hint_type const otc_video_capturer_get_content_hint(const otc_video_capturer *capturer)
otc_video_capturer_content_hint_type
Definition: video_capturer.h:129
@ OTC_VIDEO_CAPTURER_CONTENT_HINT_TYPE_MOTION
Definition: video_capturer.h:132
@ OTC_VIDEO_CAPTURER_CONTENT_HINT_TYPE_NONE
Definition: video_capturer.h:130
@ OTC_VIDEO_CAPTURER_CONTENT_HINT_TYPE_DETAIL
Definition: video_capturer.h:133
@ OTC_VIDEO_CAPTURER_CONTENT_HINT_TYPE_TEXT
Definition: video_capturer.h:134
otc_status const otc_video_capturer_set_content_hint(const otc_video_capturer *capturer, enum otc_video_capturer_content_hint_type content_hint)
struct otc_video_capturer otc_video_capturer
Definition: video_capturer.h:17
Video frame.
struct otc_video_frame otc_video_frame
Definition: video_frame.h:25