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
void * reserved
Definition: video_capturer.h:108
int otc_status
Definition: base.h:153
int fps
Definition: video_capturer.h:27
struct otc_video_frame otc_video_frame
Definition: video_frame.h:25
Definition: video_capturer.h:43
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
otc_bool(* get_capture_settings)(const otc_video_capturer *capturer, void *user_data, struct otc_video_capturer_settings *settings)
Definition: video_capturer.h:93
Definition: video_capturer.h:132
Definition: video_capturer.h:23
otc_status const otc_video_capturer_set_content_hint(const otc_video_capturer *capturer, enum otc_video_capturer_content_hint_type content_hint)
otc_bool mirror_on_local_render
Definition: video_capturer.h:30
otc_video_capturer_content_hint_type
Definition: video_capturer.h:129
int width
Definition: video_capturer.h:25
enum otc_video_capturer_content_hint_type const otc_video_capturer_get_content_hint(const otc_video_capturer *capturer)
otc_bool(* start)(const otc_video_capturer *capturer, void *user_data)
Definition: video_capturer.h:72
otc_status otc_video_capturer_provide_frame(const otc_video_capturer *capturer, int rotation, const otc_video_frame *frame)
otc_bool(* stop)(const otc_video_capturer *capturer, void *user_data)
Definition: video_capturer.h:82
Definition: video_capturer.h:133
Definition: video_capturer.h:134
int otc_bool
Definition: base.h:127
Definition: video_capturer.h:130
otc_bool(* destroy)(const otc_video_capturer *capturer, void *user_data)
Definition: video_capturer.h:62
Video frame.
int expected_delay
Definition: video_capturer.h:28
otc_bool(* init)(const otc_video_capturer *capturer, void *user_data)
Definition: video_capturer.h:52
void * user_data
Definition: video_capturer.h:102