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 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
27 typedef enum {
32 
38 
42 typedef struct {
47 
52 
56  TobiiResearchValidity validity;
58 
62 typedef struct {
66  float diameter;
67 
71  TobiiResearchValidity validity;
73 
77 typedef struct {
82 
87 
91  TobiiResearchValidity validity;
93 
97 typedef struct {
102 
107 
113 
117 typedef struct {
122 
127 
132 
138 
142 typedef struct {
147 
151  TobiiResearchValidity validity;
153 
157 typedef struct {
162 
166  TobiiResearchValidity validity;
168 
172 typedef struct {
177 
181  TobiiResearchValidity validity;
183 
187 typedef struct {
192 
197 
202 
208 
212 typedef struct {
217 
222 
227 
233 
237 typedef struct {
242 
247 
253 
257 typedef enum {
262 
267 
273 
277 typedef struct {
282 
287 
291  uint32_t value;
292 
293  TobiiResearchExternalSignalChangeType change_type;
295 
299 typedef enum {
304 
309 
314 
319 
325 
329 typedef enum {
334 
339 
344 
349 
354 
359 
365 
369 typedef enum {
374 
379 
384 
389 
394 
399 
404 
409 
413 typedef struct {
421  TobiiResearchNotificationType notification_type;
422  union {
431  } value;
433 
441 typedef void(*tobii_research_gaze_data_callback)(TobiiResearchGazeData* gaze_data, void* user_data);
442 
457  TobiiResearchEyeTracker* eyetracker,
458  tobii_research_gaze_data_callback callback, void* user_data);
459 
468  TobiiResearchEyeTracker* eyetracker,
470 
478 typedef void(*tobii_research_hmd_gaze_data_callback)(TobiiResearchHMDGazeData* hmd_gaze_data, void* user_data);
479 
489  TobiiResearchEyeTracker* eyetracker, tobii_research_hmd_gaze_data_callback callback, void* user_data);
490 
500 
509  void* user_data);
510 
527  TobiiResearchEyeTracker* eyetracker,
528  tobii_research_external_signal_data_callback callback, void* user_data);
529 
538  TobiiResearchEyeTracker* eyetracker,
540 
549  TobiiResearchTimeSynchronizationData* time_synchronization_data,
550  void* user_data);
551 
568  TobiiResearchEyeTracker* eyetracker,
570  void* user_data);
571 
580  TobiiResearchEyeTracker* eyetracker,
582 
583 
587 typedef struct {
595  TobiiResearchStreamError error;
599  TobiiResearchStreamErrorSource source;
603  const char* message;
605 
614  TobiiResearchStreamErrorData* stream_error,
615  void* user_data);
616 
629  TobiiResearchEyeTracker* eyetracker,
631  void* user_data);
632 
641  TobiiResearchEyeTracker* eyetracker,
643 
652  TobiiResearchNotification* notification,
653  void* user_data);
654 
668  TobiiResearchEyeTracker* eyetracker,
670  void* user_data);
671 
680  TobiiResearchEyeTracker* eyetracker,
682 
686 typedef enum {
700 
704 typedef struct {
724  int width;
728  int height;
732  TobiiResearchEyeImageType type;
740  size_t data_size;
744  void* data;
746 
750 typedef struct {
762  TobiiResearchEyeImageType type;
770  size_t image_size;
774  void* image_data;
776 
784 typedef void(*tobii_research_eye_image_callback)(TobiiResearchEyeImage* frame, void* user_data);
785 
794 
811  TobiiResearchEyeTracker* eyetracker,
813  void* user_data);
814 
831  TobiiResearchEyeTracker* eyetracker,
833  void* user_data);
834 
843  TobiiResearchEyeTracker* eyetracker,
845 
854  TobiiResearchEyeTracker* eyetracker,
856 
857 #ifdef __cplusplus
858 }
859 #endif
860 #endif /* TOBII_RESEARCH_STREAMS_H_ */
TobiiResearchStatus
Definition: tobii_research.h:45
void(* tobii_research_gaze_data_callback)(TobiiResearchGazeData *gaze_data, void *user_data)
Gaze data callback.
Definition: tobii_research_streams.h:441
Definition: tobii_research_streams.h:318
int bits_per_pixel
Definition: tobii_research_streams.h:716
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:161
int camera_id
Definition: tobii_research_streams.h:736
void(* tobii_research_stream_error_callback)(TobiiResearchStreamErrorData *stream_error, void *user_data)
Stream error callback.
Definition: tobii_research_streams.h:613
void(* tobii_research_external_signal_data_callback)(TobiiResearchExternalSignalData *external_signal_data, void *user_data)
External signal callback.
Definition: tobii_research_streams.h:508
int width
Definition: tobii_research_streams.h:724
int64_t system_time_stamp
Definition: tobii_research_streams.h:417
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:77
uint32_t value
Definition: tobii_research_streams.h:291
TobiiResearchGazeOrigin gaze_origin
Definition: tobii_research_streams.h:111
TobiiResearchEyeImageType
Definition: tobii_research_streams.h:686
TobiiResearchValidity
Definition: tobii_research_streams.h:27
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:187
Definition: tobii_research_streams.h:266
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:754
void(* tobii_research_eye_image_callback)(TobiiResearchEyeImage *frame, void *user_data)
Eye image callback.
Definition: tobii_research_streams.h:784
Definition: tobii_research_streams.h:383
TobiiResearchEyeData right_eye
Definition: tobii_research_streams.h:126
Definition: tobii_research_eyetracker.h:182
Definition: tobii_research_streams.h:117
TobiiResearchEyeImageType type
Definition: tobii_research_streams.h:732
TobiiResearchNormalizedPoint2D position_in_tracking_area
Definition: tobii_research_streams.h:146
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:766
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:251
void(* tobii_research_notification_callback)(TobiiResearchNotification *notification, void *user_data)
Notification callback.
Definition: tobii_research_streams.h:651
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:304
Definition: tobii_research_streams.h:388
TobiiResearchStreamError error
Definition: tobii_research_streams.h:595
Definition: tobii_research_streams.h:407
Definition: tobii_research_streams.h:373
TobiiResearchEyeData left_eye
Definition: tobii_research_streams.h:121
TobiiResearchValidity validity
Definition: tobii_research_streams.h:71
Functionality for an eye tracker.
TobiiResearchValidity validity
Definition: tobii_research_streams.h:151
Definition: tobii_research_streams.h:261
Definition: tobii_research_streams.h:694
Definition: tobii_research_streams.h:690
Definition: tobii_research_streams.h:36
int64_t device_time_stamp
Definition: tobii_research_streams.h:226
int64_t device_time_stamp
Definition: tobii_research_streams.h:708
void(* tobii_research_hmd_gaze_data_callback)(TobiiResearchHMDGazeData *hmd_gaze_data, void *user_data)
HMD gaze data callback.
Definition: tobii_research_streams.h:478
Definition: tobii_research_streams.h:323
void * image_data
Definition: tobii_research_streams.h:774
Definition: tobii_research_streams.h:237
int64_t system_time_stamp
Definition: tobii_research_streams.h:231
Definition: tobii_research.h:388
Definition: tobii_research_streams.h:62
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:66
Definition: tobii_research_streams.h:42
Definition: tobii_research_streams.h:308
Definition: tobii_research_streams.h:303
Definition: tobii_research_streams.h:212
size_t data_size
Definition: tobii_research_streams.h:740
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:97
TobiiResearchHMDPupilPosition pupil_position
Definition: tobii_research_streams.h:206
float output_frequency
Definition: tobii_research_streams.h:426
Definition: tobii_research_streams.h:277
TobiiResearchDisplayArea display_area
Definition: tobii_research_streams.h:430
TobiiResearchNotificationType
Definition: tobii_research_streams.h:369
Definition: tobii_research_streams.h:403
int64_t device_time_stamp
Definition: tobii_research_streams.h:281
const char * message
Definition: tobii_research_streams.h:603
TobiiResearchPoint3D position_in_user_coordinates
Definition: tobii_research_streams.h:86
Definition: tobii_research_streams.h:31
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:176
TobiiResearchEyeImageType type
Definition: tobii_research_streams.h:762
int64_t system_request_time_stamp
Definition: tobii_research_streams.h:241
Definition: tobii_research_streams.h:704
TobiiResearchNormalizedPoint3D position_in_track_box_coordinates
Definition: tobii_research_streams.h:51
TobiiResearchValidity validity
Definition: tobii_research_streams.h:56
Definition: tobii_research_streams.h:313
Definition: tobii_research_streams.h:378
TobiiResearchHMDEyeData left_eye
Definition: tobii_research_streams.h:216
Definition: tobii_research_streams.h:398
Definition: tobii_research_streams.h:393
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:363
TobiiResearchNotificationType notification_type
Definition: tobii_research_streams.h:421
TobiiResearchValidity validity
Definition: tobii_research_streams.h:181
Generic SDK functions.
int64_t system_time_stamp
Definition: tobii_research_streams.h:591
int64_t system_time_stamp
Definition: tobii_research_streams.h:712
TobiiResearchPupilData pupil_data
Definition: tobii_research_streams.h:196
TobiiResearchStreamErrorSource source
Definition: tobii_research_streams.h:599
int64_t device_time_stamp
Definition: tobii_research_streams.h:131
TobiiResearchStreamError
Definition: tobii_research_streams.h:299
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:271
int64_t device_time_stamp
Definition: tobii_research_streams.h:246
Definition: tobii_research_streams.h:157
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:38
Definition: tobii_research.h:373
Definition: tobii_research_streams.h:413
Definition: tobii_research_streams.h:338
TobiiResearchNormalizedPoint2D position_on_display_area
Definition: tobii_research_streams.h:81
void(* tobii_research_eye_image_as_gif_callback)(TobiiResearchEyeImageGif *frame, void *user_data)
Eye image gif callback.
Definition: tobii_research_streams.h:793
Definition: tobii_research_streams.h:698
int64_t system_time_stamp
Definition: tobii_research_streams.h:758
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:587
TobiiResearchGazePoint gaze_point
Definition: tobii_research_streams.h:101
int64_t system_time_stamp
Definition: tobii_research_streams.h:136
size_t image_size
Definition: tobii_research_streams.h:770
Definition: tobii_research_streams.h:343
int64_t system_time_stamp
Definition: tobii_research_streams.h:286
Definition: tobii_research_streams.h:172
Definition: tobii_research_streams.h:750
TobiiResearchStreamErrorSource
Definition: tobii_research_streams.h:329
int padding_per_pixel
Definition: tobii_research_streams.h:720
TobiiResearchPoint3D position_in_user_coordinates
Definition: tobii_research_streams.h:46
TobiiResearchHMDGazeDirection gaze_direction
Definition: tobii_research_streams.h:191
TobiiResearchPupilData pupil_data
Definition: tobii_research_streams.h:106
#define TOBII_RESEARCH_API
Definition: tobii_research.h:37
TobiiResearchExternalSignalChangeType
Definition: tobii_research_streams.h:257
TobiiResearchValidity validity
Definition: tobii_research_streams.h:166
void(* tobii_research_time_synchronization_data_callback)(TobiiResearchTimeSynchronizationData *time_synchronization_data, void *user_data)
Time synchronization callback.
Definition: tobii_research_streams.h:548
TobiiResearchHMDGazeOrigin gaze_origin
Definition: tobii_research_streams.h:201
int height
Definition: tobii_research_streams.h:728
Definition: tobii_research_streams.h:333
Definition: tobii_research_streams.h:358
TobiiResearchValidity validity
Definition: tobii_research_streams.h:91
Definition: tobii_research_streams.h:142
void * data
Definition: tobii_research_streams.h:744
TobiiResearchHMDEyeData right_eye
Definition: tobii_research_streams.h:221
TobiiResearchExternalSignalChangeType change_type
Definition: tobii_research_streams.h:293
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.