Tobii Pro SDK C API
tobii_research_streams.h
Go to the documentation of this file.
1 
14 #ifndef TOBII_RESEARCH_STREAMS_H_
15 #define TOBII_RESEARCH_STREAMS_H_
16 
17 #include "tobii_research.h"
19 
23 typedef enum {
28 
34 
38 typedef struct {
43 
48 
54 
58 typedef struct {
62  float diameter;
63 
69 
73 typedef struct {
78 
83 
89 
93 typedef struct {
98 
103 
109 
113 typedef struct {
118 
123 
128 
134 
138 typedef struct {
143 
149 
153 typedef struct {
158 
164 
168 typedef struct {
173 
179 
183 typedef struct {
188 
193 
198 
204 
208 typedef struct {
213 
218 
223 
229 
233 typedef struct {
238 
243 
249 
253 typedef enum {
258 
263 
269 
273 typedef struct {
278 
283 
287  uint32_t value;
288 
291 
295 typedef enum {
300 
305 
310 
315 
321 
325 typedef enum {
330 
335 
340 
345 
350 
355 
361 
365 typedef enum {
370 
375 
380 
385 
390 
395 
400 
405 
409 typedef struct {
418  union {
427  } value;
429 
437 typedef void(*tobii_research_gaze_data_callback)(TobiiResearchGazeData* gaze_data, void* user_data);
438 
453  TobiiResearchEyeTracker* eyetracker,
454  tobii_research_gaze_data_callback callback, void* user_data);
455 
464  TobiiResearchEyeTracker* eyetracker,
466 
474 typedef void(*tobii_research_hmd_gaze_data_callback)(TobiiResearchHMDGazeData* hmd_gaze_data, void* user_data);
475 
485  TobiiResearchEyeTracker* eyetracker, tobii_research_hmd_gaze_data_callback callback, void* user_data);
486 
496 
505  void* user_data);
506 
523  TobiiResearchEyeTracker* eyetracker,
524  tobii_research_external_signal_data_callback callback, void* user_data);
525 
534  TobiiResearchEyeTracker* eyetracker,
536 
545  TobiiResearchTimeSynchronizationData* time_synchronization_data,
546  void* user_data);
547 
564  TobiiResearchEyeTracker* eyetracker,
566  void* user_data);
567 
576  TobiiResearchEyeTracker* eyetracker,
578 
579 
583 typedef struct {
599  const char* message;
601 
610  TobiiResearchStreamErrorData* stream_error,
611  void* user_data);
612 
625  TobiiResearchEyeTracker* eyetracker,
627  void* user_data);
628 
637  TobiiResearchEyeTracker* eyetracker,
639 
648  TobiiResearchNotification* notification,
649  void* user_data);
650 
664  TobiiResearchEyeTracker* eyetracker,
666  void* user_data);
667 
676  TobiiResearchEyeTracker* eyetracker,
678 
682 typedef enum {
696 
700 typedef struct {
720  int width;
724  int height;
736  size_t data_size;
740  void* data;
742 
746 typedef struct {
766  size_t image_size;
770  void* image_data;
772 
780 typedef void(*tobii_research_eye_image_callback)(TobiiResearchEyeImage* frame, void* user_data);
781 
790 
805  TobiiResearchEyeTracker* eyetracker,
807  void* user_data);
808 
823  TobiiResearchEyeTracker* eyetracker,
825  void* user_data);
826 
835  TobiiResearchEyeTracker* eyetracker,
837 
846  TobiiResearchEyeTracker* eyetracker,
848 
849 #endif /* TOBII_RESEARCH_STREAMS_H_ */
TobiiResearchStatus
Definition: tobii_research.h:40
void(* tobii_research_gaze_data_callback)(TobiiResearchGazeData *gaze_data, void *user_data)
Gaze data callback.
Definition: tobii_research_streams.h:437
Definition: tobii_research_streams.h:314
int bits_per_pixel
Definition: tobii_research_streams.h:712
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_unsubscribe_from_stream_errors(TobiiResearchEyeTracker *eyetracker, tobii_research_stream_error_callback callback)
Unsubscribes from stream errors for the eye tracker.
TobiiResearchPoint3D position_in_hmd_coordinates
Definition: tobii_research_streams.h:157
int camera_id
Definition: tobii_research_streams.h:732
void(* tobii_research_stream_error_callback)(TobiiResearchStreamErrorData *stream_error, void *user_data)
Stream error callback.
Definition: tobii_research_streams.h:609
void(* tobii_research_external_signal_data_callback)(TobiiResearchExternalSignalData *external_signal_data, void *user_data)
External signal callback.
Definition: tobii_research_streams.h:504
int width
Definition: tobii_research_streams.h:720
int64_t system_time_stamp
Definition: tobii_research_streams.h:413
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_unsubscribe_from_hmd_gaze_data(TobiiResearchEyeTracker *eyetracker, tobii_research_hmd_gaze_data_callback callback)
Unsubscribes from HMD gaze data for the eye tracker.
Definition: tobii_research_streams.h:73
uint32_t value
Definition: tobii_research_streams.h:287
TobiiResearchGazeOrigin gaze_origin
Definition: tobii_research_streams.h:107
TobiiResearchEyeImageType
Definition: tobii_research_streams.h:682
TobiiResearchValidity
Definition: tobii_research_streams.h:23
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_subscribe_to_hmd_gaze_data(TobiiResearchEyeTracker *eyetracker, tobii_research_hmd_gaze_data_callback callback, void *user_data)
Subscribes to gaze data for the eye tracker.
Definition: tobii_research_streams.h:183
Definition: tobii_research_streams.h:262
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_subscribe_to_notifications(TobiiResearchEyeTracker *eyetracker, tobii_research_notification_callback callback, void *user_data)
Subscribes to notifications for the eye tracker.
int64_t device_time_stamp
Definition: tobii_research_streams.h:750
void(* tobii_research_eye_image_callback)(TobiiResearchEyeImage *frame, void *user_data)
Eye image callback.
Definition: tobii_research_streams.h:780
Definition: tobii_research_streams.h:379
TobiiResearchEyeData right_eye
Definition: tobii_research_streams.h:122
Definition: tobii_research_eyetracker.h:172
Definition: tobii_research_streams.h:113
TobiiResearchEyeImageType type
Definition: tobii_research_streams.h:728
TobiiResearchNormalizedPoint2D position_in_tracking_area
Definition: tobii_research_streams.h:142
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_subscribe_to_stream_errors(TobiiResearchEyeTracker *eyetracker, tobii_research_stream_error_callback callback, void *user_data)
Subscribes to stream errors for the eye tracker.
int camera_id
Definition: tobii_research_streams.h:762
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_unsubscribe_from_eye_image_as_gif(TobiiResearchEyeTracker *eyetracker, tobii_research_eye_image_as_gif_callback callback)
Unsubscribes from eye image for the eye tracker.
int64_t system_response_time_stamp
Definition: tobii_research_streams.h:247
void(* tobii_research_notification_callback)(TobiiResearchNotification *notification, void *user_data)
Notification callback.
Definition: tobii_research_streams.h:647
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_unsubscribe_from_notifications(TobiiResearchEyeTracker *eyetracker, tobii_research_notification_callback callback)
Unsubscribes from notifications for the eye tracker.
struct TobiiResearchEyeTracker TobiiResearchEyeTracker
Definition: tobii_research.h:284
Definition: tobii_research_streams.h:384
TobiiResearchStreamError error
Definition: tobii_research_streams.h:591
Definition: tobii_research_streams.h:403
Definition: tobii_research_streams.h:369
TobiiResearchEyeData left_eye
Definition: tobii_research_streams.h:117
TobiiResearchValidity validity
Definition: tobii_research_streams.h:67
Functionality for an eye tracker.
TobiiResearchValidity validity
Definition: tobii_research_streams.h:147
Definition: tobii_research_streams.h:257
Definition: tobii_research_streams.h:690
Definition: tobii_research_streams.h:686
Definition: tobii_research_streams.h:32
int64_t device_time_stamp
Definition: tobii_research_streams.h:222
int64_t device_time_stamp
Definition: tobii_research_streams.h:704
void(* tobii_research_hmd_gaze_data_callback)(TobiiResearchHMDGazeData *hmd_gaze_data, void *user_data)
HMD gaze data callback.
Definition: tobii_research_streams.h:474
Definition: tobii_research_streams.h:319
void * image_data
Definition: tobii_research_streams.h:770
Definition: tobii_research_streams.h:233
int64_t system_time_stamp
Definition: tobii_research_streams.h:227
Definition: tobii_research.h:368
Definition: tobii_research_streams.h:58
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_unsubscribe_from_eye_image(TobiiResearchEyeTracker *eyetracker, tobii_research_eye_image_callback callback)
Unsubscribes from eye image for the eye tracker.
float diameter
Definition: tobii_research_streams.h:62
Definition: tobii_research_streams.h:38
Definition: tobii_research_streams.h:304
Definition: tobii_research_streams.h:299
Definition: tobii_research_streams.h:208
size_t data_size
Definition: tobii_research_streams.h:736
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_subscribe_to_time_synchronization_data(TobiiResearchEyeTracker *eyetracker, tobii_research_time_synchronization_data_callback callback, void *user_data)
Subscribes to time synchronization data for the eye tracker.
Definition: tobii_research_streams.h:93
TobiiResearchHMDPupilPosition pupil_position
Definition: tobii_research_streams.h:202
float output_frequency
Definition: tobii_research_streams.h:422
Definition: tobii_research_streams.h:273
TobiiResearchDisplayArea display_area
Definition: tobii_research_streams.h:426
TobiiResearchNotificationType
Definition: tobii_research_streams.h:365
Definition: tobii_research_streams.h:399
int64_t device_time_stamp
Definition: tobii_research_streams.h:277
const char * message
Definition: tobii_research_streams.h:599
TobiiResearchPoint3D position_in_user_coordinates
Definition: tobii_research_streams.h:82
Definition: tobii_research_streams.h:27
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_subscribe_to_gaze_data(TobiiResearchEyeTracker *eyetracker, tobii_research_gaze_data_callback callback, void *user_data)
Subscribes to gaze data for the eye tracker.
TobiiResearchNormalizedPoint3D unit_vector
Definition: tobii_research_streams.h:172
TobiiResearchEyeImageType type
Definition: tobii_research_streams.h:758
int64_t system_request_time_stamp
Definition: tobii_research_streams.h:237
Definition: tobii_research_streams.h:700
TobiiResearchNormalizedPoint3D position_in_track_box_coordinates
Definition: tobii_research_streams.h:47
TobiiResearchValidity validity
Definition: tobii_research_streams.h:52
Definition: tobii_research_streams.h:309
Definition: tobii_research_streams.h:374
TobiiResearchHMDEyeData left_eye
Definition: tobii_research_streams.h:212
Definition: tobii_research_streams.h:394
Definition: tobii_research_streams.h:389
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_unsubscribe_from_external_signal_data(TobiiResearchEyeTracker *eyetracker, tobii_research_external_signal_data_callback callback)
Unsubscribes from external signal data for the eye tracker.
Definition: tobii_research_streams.h:359
TobiiResearchNotificationType notification_type
Definition: tobii_research_streams.h:417
TobiiResearchValidity validity
Definition: tobii_research_streams.h:177
Generic SDK functions.
int64_t system_time_stamp
Definition: tobii_research_streams.h:587
int64_t system_time_stamp
Definition: tobii_research_streams.h:708
TobiiResearchPupilData pupil_data
Definition: tobii_research_streams.h:192
TobiiResearchStreamErrorSource source
Definition: tobii_research_streams.h:595
int64_t device_time_stamp
Definition: tobii_research_streams.h:127
TobiiResearchStreamError
Definition: tobii_research_streams.h:295
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_unsubscribe_from_gaze_data(TobiiResearchEyeTracker *eyetracker, tobii_research_gaze_data_callback callback)
Unsubscribes from gaze data for the eye tracker.
Definition: tobii_research_streams.h:267
int64_t device_time_stamp
Definition: tobii_research_streams.h:242
Definition: tobii_research_streams.h:153
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_unsubscribe_from_time_synchronization_data(TobiiResearchEyeTracker *eyetracker, tobii_research_time_synchronization_data_callback callback)
Unsubscribes from time synchronization data for the eye tracker.
#define TOBII_RESEARCH_CALL
Definition: tobii_research.h:33
Definition: tobii_research.h:353
Definition: tobii_research_streams.h:409
Definition: tobii_research_streams.h:334
TobiiResearchNormalizedPoint2D position_on_display_area
Definition: tobii_research_streams.h:77
void(* tobii_research_eye_image_as_gif_callback)(TobiiResearchEyeImageGif *frame, void *user_data)
Eye image gif callback.
Definition: tobii_research_streams.h:789
Definition: tobii_research_streams.h:694
int64_t system_time_stamp
Definition: tobii_research_streams.h:754
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_subscribe_to_eye_image(TobiiResearchEyeTracker *eyetracker, tobii_research_eye_image_callback callback, void *user_data)
Subscribes to eye image for the eye tracker.
Definition: tobii_research_streams.h:583
TobiiResearchGazePoint gaze_point
Definition: tobii_research_streams.h:97
int64_t system_time_stamp
Definition: tobii_research_streams.h:132
size_t image_size
Definition: tobii_research_streams.h:766
Definition: tobii_research_streams.h:339
int64_t system_time_stamp
Definition: tobii_research_streams.h:282
Definition: tobii_research_streams.h:168
Definition: tobii_research_streams.h:746
TobiiResearchStreamErrorSource
Definition: tobii_research_streams.h:325
int padding_per_pixel
Definition: tobii_research_streams.h:716
TobiiResearchPoint3D position_in_user_coordinates
Definition: tobii_research_streams.h:42
TobiiResearchHMDGazeDirection gaze_direction
Definition: tobii_research_streams.h:187
TobiiResearchPupilData pupil_data
Definition: tobii_research_streams.h:102
#define TOBII_RESEARCH_API
Definition: tobii_research.h:32
TobiiResearchExternalSignalChangeType
Definition: tobii_research_streams.h:253
TobiiResearchValidity validity
Definition: tobii_research_streams.h:162
void(* tobii_research_time_synchronization_data_callback)(TobiiResearchTimeSynchronizationData *time_synchronization_data, void *user_data)
Time synchronization callback.
Definition: tobii_research_streams.h:544
TobiiResearchHMDGazeOrigin gaze_origin
Definition: tobii_research_streams.h:197
int height
Definition: tobii_research_streams.h:724
Definition: tobii_research_streams.h:329
Definition: tobii_research_streams.h:354
TobiiResearchValidity validity
Definition: tobii_research_streams.h:87
Definition: tobii_research_streams.h:138
void * data
Definition: tobii_research_streams.h:740
TobiiResearchHMDEyeData right_eye
Definition: tobii_research_streams.h:217
TobiiResearchExternalSignalChangeType change_type
Definition: tobii_research_streams.h:289
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_subscribe_to_external_signal_data(TobiiResearchEyeTracker *eyetracker, tobii_research_external_signal_data_callback callback, void *user_data)
Subscribes to external signal data for the eye tracker.
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_subscribe_to_eye_image_as_gif(TobiiResearchEyeTracker *eyetracker, tobii_research_eye_image_as_gif_callback callback, void *user_data)
Subscribes to eye image for the eye tracker with the image delivered in gif format.