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 
53 
57 typedef struct {
61  float diameter;
62 
68 
72 typedef struct {
77 
82 
88 
92 typedef struct {
97 
102 
108 
112 typedef struct {
117 
122 
127 
133 
134 
138 typedef struct {
143 
149 
150 
154 typedef struct {
159 
165 
169 typedef struct {
174 
179 
185 
189 typedef enum {
194 
199 
205 
209 typedef struct {
214 
219 
223  uint32_t value;
224 
227 
231 typedef enum {
236 
241 
246 
251 
256 
262 
266 typedef enum {
271 
276 
281 
286 
291 
296 
301 
307 
311 typedef enum {
316 
321 
326 
331 
336 
342 
347 
352 
357 
362 
371 
372 
374 
378 typedef struct {
387  union {
392 
397 
403  } value;
405 
413 typedef void(*tobii_research_gaze_data_callback)(TobiiResearchGazeData* gaze_data, void* user_data);
414 
429  TobiiResearchEyeTracker* eyetracker,
430  tobii_research_gaze_data_callback callback, void* user_data);
431 
440  TobiiResearchEyeTracker* eyetracker,
442 
443 
452  void* user_data);
453 
454 
466  TobiiResearchEyeTracker* eyetracker,
467  tobii_research_user_position_guide_callback callback, void* user_data);
468 
477  TobiiResearchEyeTracker* eyetracker,
479 
488  void* user_data);
489 
506  TobiiResearchEyeTracker* eyetracker,
507  tobii_research_external_signal_data_callback callback, void* user_data);
508 
517  TobiiResearchEyeTracker* eyetracker,
519 
528  TobiiResearchTimeSynchronizationData* time_synchronization_data,
529  void* user_data);
530 
547  TobiiResearchEyeTracker* eyetracker,
549  void* user_data);
550 
559  TobiiResearchEyeTracker* eyetracker,
561 
562 
566 typedef struct {
582  const char* message;
584 
593  TobiiResearchStreamErrorData* stream_error,
594  void* user_data);
595 
608  TobiiResearchEyeTracker* eyetracker,
610  void* user_data);
611 
620  TobiiResearchEyeTracker* eyetracker,
622 
631  TobiiResearchNotification* notification,
632  void* user_data);
633 
647  TobiiResearchEyeTracker* eyetracker,
649  void* user_data);
650 
659  TobiiResearchEyeTracker* eyetracker,
661 
665 typedef enum {
683 
687 typedef struct {
707  int width;
711  int height;
723  size_t data_size;
727  void* data;
735  int top;
739  int left;
741 
745 typedef struct {
765  size_t image_size;
769  void* image_data;
777  int top;
781  int left;
783 
791 typedef void(*tobii_research_eye_image_callback)(TobiiResearchEyeImage* frame, void* user_data);
792 
801 
818  TobiiResearchEyeTracker* eyetracker,
820  void* user_data);
821 
838  TobiiResearchEyeTracker* eyetracker,
840  void* user_data);
841 
850  TobiiResearchEyeTracker* eyetracker,
852 
861  TobiiResearchEyeTracker* eyetracker,
863 
867 typedef struct {
872 
877 
882 
887 
892 
898 
900  TobiiResearchEyeOpennessData* openness_data, void* user_data);
901 
910  TobiiResearchEyeTracker* eyetracker, tobii_research_eye_openness_data_callback callback, void* user_data
911 );
912 
921 );
922 
923 #ifdef __cplusplus
924 }
925 #endif
926 #endif /* TOBII_RESEARCH_STREAMS_H_ */
Definition: tobii_research_eyetracker.h:132
Definition: tobii_research_streams.h:209
TobiiResearchExternalSignalChangeType change_type
Definition: tobii_research_streams.h:225
int64_t system_time_stamp
Definition: tobii_research_streams.h:218
int64_t device_time_stamp
Definition: tobii_research_streams.h:213
uint32_t value
Definition: tobii_research_streams.h:223
Definition: tobii_research_streams.h:92
TobiiResearchGazePoint gaze_point
Definition: tobii_research_streams.h:96
TobiiResearchGazeOrigin gaze_origin
Definition: tobii_research_streams.h:106
TobiiResearchPupilData pupil_data
Definition: tobii_research_streams.h:101
Definition: tobii_research_streams.h:745
int left
Definition: tobii_research_streams.h:781
TobiiResearchEyeImageType type
Definition: tobii_research_streams.h:757
int64_t system_time_stamp
Definition: tobii_research_streams.h:753
size_t image_size
Definition: tobii_research_streams.h:765
int region_id
Definition: tobii_research_streams.h:773
int camera_id
Definition: tobii_research_streams.h:761
int top
Definition: tobii_research_streams.h:777
void * image_data
Definition: tobii_research_streams.h:769
int64_t device_time_stamp
Definition: tobii_research_streams.h:749
Definition: tobii_research_streams.h:687
int region_id
Definition: tobii_research_streams.h:731
size_t data_size
Definition: tobii_research_streams.h:723
int64_t system_time_stamp
Definition: tobii_research_streams.h:695
int top
Definition: tobii_research_streams.h:735
int height
Definition: tobii_research_streams.h:711
int64_t device_time_stamp
Definition: tobii_research_streams.h:691
int left
Definition: tobii_research_streams.h:739
int camera_id
Definition: tobii_research_streams.h:719
void * data
Definition: tobii_research_streams.h:727
TobiiResearchEyeImageType type
Definition: tobii_research_streams.h:715
int width
Definition: tobii_research_streams.h:707
int padding_per_pixel
Definition: tobii_research_streams.h:703
int bits_per_pixel
Definition: tobii_research_streams.h:699
Definition: tobii_research_streams.h:867
int64_t device_time_stamp
Definition: tobii_research_streams.h:871
float left_eye_openness_value
Definition: tobii_research_streams.h:886
float right_eye_openness_value
Definition: tobii_research_streams.h:896
int64_t system_time_stamp
Definition: tobii_research_streams.h:876
TobiiResearchValidity left_eye_validity
Definition: tobii_research_streams.h:881
TobiiResearchValidity right_eye_validity
Definition: tobii_research_streams.h:891
Definition: tobii_research_streams.h:138
TobiiResearchNormalizedPoint3D user_position
Definition: tobii_research_streams.h:142
TobiiResearchValidity validity
Definition: tobii_research_streams.h:147
Definition: tobii_research_streams.h:112
int64_t device_time_stamp
Definition: tobii_research_streams.h:126
TobiiResearchEyeData right_eye
Definition: tobii_research_streams.h:121
TobiiResearchEyeData left_eye
Definition: tobii_research_streams.h:116
int64_t system_time_stamp
Definition: tobii_research_streams.h:131
Definition: tobii_research_streams.h:42
TobiiResearchValidity validity
Definition: tobii_research_streams.h:51
TobiiResearchPoint3D position_in_user_coordinates
Definition: tobii_research_streams.h:46
Definition: tobii_research_streams.h:72
TobiiResearchValidity validity
Definition: tobii_research_streams.h:86
TobiiResearchNormalizedPoint2D position_on_display_area
Definition: tobii_research_streams.h:76
TobiiResearchPoint3D position_in_user_coordinates
Definition: tobii_research_streams.h:81
Definition: tobii_research.h:384
Definition: tobii_research_streams.h:378
float output_frequency
Definition: tobii_research_streams.h:391
TobiiResearchNotificationString text
Definition: tobii_research_streams.h:402
TobiiResearchDisplayArea display_area
Definition: tobii_research_streams.h:396
int64_t system_time_stamp
Definition: tobii_research_streams.h:382
TobiiResearchNotificationType notification_type
Definition: tobii_research_streams.h:386
Definition: tobii_research.h:399
Definition: tobii_research_streams.h:57
float diameter
Definition: tobii_research_streams.h:61
TobiiResearchValidity validity
Definition: tobii_research_streams.h:66
Definition: tobii_research_streams.h:566
const char * message
Definition: tobii_research_streams.h:582
TobiiResearchStreamErrorSource source
Definition: tobii_research_streams.h:578
int64_t system_time_stamp
Definition: tobii_research_streams.h:570
TobiiResearchStreamError error
Definition: tobii_research_streams.h:574
Definition: tobii_research_streams.h:169
int64_t system_response_time_stamp
Definition: tobii_research_streams.h:183
int64_t device_time_stamp
Definition: tobii_research_streams.h:178
int64_t system_request_time_stamp
Definition: tobii_research_streams.h:173
Definition: tobii_research_streams.h:154
TobiiResearchEyeUserPositionGuide right_eye
Definition: tobii_research_streams.h:163
TobiiResearchEyeUserPositionGuide left_eye
Definition: tobii_research_streams.h:158
Generic SDK functions.
#define TOBII_RESEARCH_API
Definition: tobii_research.h:37
struct TobiiResearchEyeTracker TobiiResearchEyeTracker
Definition: tobii_research.h:315
#define TOBII_RESEARCH_CALL
Definition: tobii_research.h:38
TobiiResearchStatus
Definition: tobii_research.h:45
Functionality for an eye tracker.
void(* tobii_research_user_position_guide_callback)(TobiiResearchUserPositionGuide *user_position_guide, void *user_data)
User position guide data callback.
Definition: tobii_research_streams.h:451
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.
void(* tobii_research_eye_image_callback)(TobiiResearchEyeImage *frame, void *user_data)
Eye image callback.
Definition: tobii_research_streams.h:791
void(* tobii_research_notification_callback)(TobiiResearchNotification *notification, void *user_data)
Notification callback.
Definition: tobii_research_streams.h:630
void(* tobii_research_eye_image_as_gif_callback)(TobiiResearchEyeImageGif *frame, void *user_data)
Eye image gif callback.
Definition: tobii_research_streams.h:800
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.
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.
char TobiiResearchNotificationString[512]
Definition: tobii_research_streams.h:373
TobiiResearchNotificationType
Definition: tobii_research_streams.h:311
@ TOBII_RESEARCH_NOTIFICATION_CONNECTION_RESTORED
Definition: tobii_research_streams.h:320
@ TOBII_RESEARCH_NOTIFICATION_GAZE_OUTPUT_FREQUENCY_CHANGED
Definition: tobii_research_streams.h:346
@ TOBII_RESEARCH_NOTIFICATION_EYE_TRACKING_MODE_CHANGED
Definition: tobii_research_streams.h:351
@ TOBII_RESEARCH_NOTIFICATION_DISPLAY_AREA_CHANGED
Definition: tobii_research_streams.h:341
@ TOBII_RESEARCH_NOTIFICATION_CALIBRATION_MODE_ENTERED
Definition: tobii_research_streams.h:325
@ TOBII_RESEARCH_NOTIFICATION_CALIBRATION_CHANGED
Definition: tobii_research_streams.h:335
@ TOBII_RESEARCH_NOTIFICATION_DEVICE_FAULTS
Definition: tobii_research_streams.h:356
@ TOBII_RESEARCH_NOTIFICATION_STREAM_BUFFER_OVERFLOW
Definition: tobii_research_streams.h:366
@ TOBII_RESEARCH_NOTIFICATION_UNKNOWN
Definition: tobii_research_streams.h:369
@ TOBII_RESEARCH_NOTIFICATION_DEVICE_WARNINGS
Definition: tobii_research_streams.h:361
@ TOBII_RESEARCH_NOTIFICATION_CALIBRATION_MODE_LEFT
Definition: tobii_research_streams.h:330
@ TOBII_RESEARCH_NOTIFICATION_CONNECTION_LOST
Definition: tobii_research_streams.h:315
TobiiResearchValidity
Definition: tobii_research_streams.h:27
@ TOBII_RESEARCH_VALIDITY_VALID
Definition: tobii_research_streams.h:36
@ TOBII_RESEARCH_VALIDITY_INVALID
Definition: tobii_research_streams.h:31
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_subscribe_to_eye_openness(TobiiResearchEyeTracker *eyetracker, tobii_research_eye_openness_data_callback callback, void *user_data)
Subscribes to eye openness for the eye tracker.
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.
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.
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.
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.
TobiiResearchExternalSignalChangeType
Definition: tobii_research_streams.h:189
@ TOBII_RESEARCH_EXTERNAL_SIGNAL_VALUE_CHANGED
Definition: tobii_research_streams.h:193
@ TOBII_RESEARCH_EXTERNAL_SIGNAL_CONNECTION_RESTORED
Definition: tobii_research_streams.h:203
@ TOBII_RESEARCH_EXTERNAL_SIGNAL_INITIAL_VALUE
Definition: tobii_research_streams.h:198
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_subscribe_to_user_position_guide(TobiiResearchEyeTracker *eyetracker, tobii_research_user_position_guide_callback callback, void *user_data)
Subscribes to user position guide for the eye tracker.
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_unsubscribe_from_eye_image_as_gif(TobiiResearchEyeTracker *eyetracker, tobii_research_eye_image_as_gif_callback callback)
Unsubscribes from eye image for the eye tracker.
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.
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_unsubscribe_from_user_position_guide(TobiiResearchEyeTracker *eyetracker, tobii_research_user_position_guide_callback callback)
Unsubscribes from user position guide for the eye tracker.
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.
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.
TobiiResearchStreamErrorSource
Definition: tobii_research_streams.h:266
@ TOBII_RESEARCH_STREAM_ERROR_SOURCE_STREAM_PUMP
Definition: tobii_research_streams.h:275
@ TOBII_RESEARCH_STREAM_ERROR_SOURCE_SUBSCRIPTION_TIME_SYNCHRONIZATION_DATA
Definition: tobii_research_streams.h:290
@ TOBII_RESEARCH_STREAM_ERROR_SOURCE_USER
Definition: tobii_research_streams.h:270
@ TOBII_RESEARCH_STREAM_ERROR_SOURCE_SUBSCRIPTION_GAZE_DATA
Definition: tobii_research_streams.h:280
@ TOBII_RESEARCH_STREAM_ERROR_SOURCE_SUBSCRIPTION_NOTIFICATION
Definition: tobii_research_streams.h:300
@ TOBII_RESEARCH_STREAM_ERROR_SOURCE_SUBSCRIPTION_EYE_IMAGE
Definition: tobii_research_streams.h:295
@ TOBII_RESEARCH_STREAM_ERROR_SOURCE_SUBSCRIPTION_USER_POSITION_GUIDE
Definition: tobii_research_streams.h:305
@ TOBII_RESEARCH_STREAM_ERROR_SOURCE_SUBSCRIPTION_EXTERNAL_SIGNAL
Definition: tobii_research_streams.h:285
void(* tobii_research_stream_error_callback)(TobiiResearchStreamErrorData *stream_error, void *user_data)
Stream error callback.
Definition: tobii_research_streams.h:592
void(* tobii_research_external_signal_data_callback)(TobiiResearchExternalSignalData *external_signal_data, void *user_data)
External signal callback.
Definition: tobii_research_streams.h:487
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.
void(* tobii_research_eye_openness_data_callback)(TobiiResearchEyeOpennessData *openness_data, void *user_data)
Definition: tobii_research_streams.h:899
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_unsubscribe_from_eye_openness(TobiiResearchEyeTracker *eyetracker, tobii_research_eye_openness_data_callback callback)
Unsubscribes from eye openness for the eye tracker.
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.
void(* tobii_research_time_synchronization_data_callback)(TobiiResearchTimeSynchronizationData *time_synchronization_data, void *user_data)
Time synchronization callback.
Definition: tobii_research_streams.h:527
TobiiResearchStreamError
Definition: tobii_research_streams.h:231
@ TOBII_RESEARCH_STREAM_ERROR_TOO_MANY_SUBSCRIBERS
Definition: tobii_research_streams.h:250
@ TOBII_RESEARCH_STREAM_ERROR_INSUFFICIENT_LICENSE
Definition: tobii_research_streams.h:240
@ TOBII_RESEARCH_STREAM_ERROR_INTERNAL_ERROR
Definition: tobii_research_streams.h:255
@ TOBII_RESEARCH_STREAM_ERROR_USER_ERROR
Definition: tobii_research_streams.h:260
@ TOBII_RESEARCH_STREAM_ERROR_NOT_SUPPORTED
Definition: tobii_research_streams.h:245
@ TOBII_RESEARCH_STREAM_ERROR_CONNECTION_LOST
Definition: tobii_research_streams.h:235
TobiiResearchEyeImageType
Definition: tobii_research_streams.h:665
@ TOBII_RESEARCH_EYE_IMAGE_TYPE_MULTI_ROI
Definition: tobii_research_streams.h:677
@ TOBII_RESEARCH_EYE_IMAGE_TYPE_FULL
Definition: tobii_research_streams.h:669
@ TOBII_RESEARCH_EYE_IMAGE_TYPE_CROPPED
Definition: tobii_research_streams.h:673
@ TOBII_RESEARCH_EYE_IMAGE_TYPE_UNKNOWN
Definition: tobii_research_streams.h:681
void(* tobii_research_gaze_data_callback)(TobiiResearchGazeData *gaze_data, void *user_data)
Gaze data callback.
Definition: tobii_research_streams.h:413