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 
139 
143 typedef struct {
148 
152  TobiiResearchValidity validity;
154 
155 
159 typedef struct {
164 
170 
171 
175 typedef struct {
180 
184  TobiiResearchValidity validity;
186 
190 typedef struct {
195 
199  TobiiResearchValidity validity;
201 
205 typedef struct {
210 
214  TobiiResearchValidity validity;
216 
220 typedef struct {
225 
230 
235 
241 
245 typedef struct {
250 
255 
260 
266 
270 typedef struct {
275 
280 
286 
290 typedef enum {
295 
300 
306 
310 typedef struct {
315 
320 
324  uint32_t value;
325 
326  TobiiResearchExternalSignalChangeType change_type;
328 
332 typedef enum {
337 
342 
347 
352 
357 
363 
367 typedef enum {
372 
377 
382 
387 
392 
397 
402 
407 
413 
417 typedef enum {
422 
427 
432 
437 
442 
447 
452 
457 
462 
467 
472 
477 
478 
480 
484 typedef struct {
492  TobiiResearchNotificationType notification_type;
493  union {
498 
503 
508  TobiiResearchNotificationString text;
509  } value;
511 
519 typedef void(*tobii_research_gaze_data_callback)(TobiiResearchGazeData* gaze_data, void* user_data);
520 
535  TobiiResearchEyeTracker* eyetracker,
536  tobii_research_gaze_data_callback callback, void* user_data);
537 
546  TobiiResearchEyeTracker* eyetracker,
548 
549 
558  void* user_data);
559 
560 
572  TobiiResearchEyeTracker* eyetracker,
573  tobii_research_user_position_guide_callback callback, void* user_data);
574 
583  TobiiResearchEyeTracker* eyetracker,
585 
593 typedef void(*tobii_research_hmd_gaze_data_callback)(TobiiResearchHMDGazeData* hmd_gaze_data, void* user_data);
594 
604  TobiiResearchEyeTracker* eyetracker, tobii_research_hmd_gaze_data_callback callback, void* user_data);
605 
615 
624  void* user_data);
625 
642  TobiiResearchEyeTracker* eyetracker,
643  tobii_research_external_signal_data_callback callback, void* user_data);
644 
653  TobiiResearchEyeTracker* eyetracker,
655 
664  TobiiResearchTimeSynchronizationData* time_synchronization_data,
665  void* user_data);
666 
683  TobiiResearchEyeTracker* eyetracker,
685  void* user_data);
686 
695  TobiiResearchEyeTracker* eyetracker,
697 
698 
702 typedef struct {
710  TobiiResearchStreamError error;
714  TobiiResearchStreamErrorSource source;
718  const char* message;
720 
729  TobiiResearchStreamErrorData* stream_error,
730  void* user_data);
731 
744  TobiiResearchEyeTracker* eyetracker,
746  void* user_data);
747 
756  TobiiResearchEyeTracker* eyetracker,
758 
767  TobiiResearchNotification* notification,
768  void* user_data);
769 
783  TobiiResearchEyeTracker* eyetracker,
785  void* user_data);
786 
795  TobiiResearchEyeTracker* eyetracker,
797 
801 typedef enum {
815 
819 typedef struct {
839  int width;
843  int height;
847  TobiiResearchEyeImageType type;
855  size_t data_size;
859  void* data;
861 
865 typedef struct {
877  TobiiResearchEyeImageType type;
885  size_t image_size;
889  void* image_data;
891 
899 typedef void(*tobii_research_eye_image_callback)(TobiiResearchEyeImage* frame, void* user_data);
900 
909 
926  TobiiResearchEyeTracker* eyetracker,
928  void* user_data);
929 
946  TobiiResearchEyeTracker* eyetracker,
948  void* user_data);
949 
958  TobiiResearchEyeTracker* eyetracker,
960 
969  TobiiResearchEyeTracker* eyetracker,
971 
972 #ifdef __cplusplus
973 }
974 #endif
975 #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:519
Definition: tobii_research_streams.h:356
int bits_per_pixel
Definition: tobii_research_streams.h:831
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:194
int camera_id
Definition: tobii_research_streams.h:851
void(* tobii_research_stream_error_callback)(TobiiResearchStreamErrorData *stream_error, void *user_data)
Stream error callback.
Definition: tobii_research_streams.h:728
void(* tobii_research_external_signal_data_callback)(TobiiResearchExternalSignalData *external_signal_data, void *user_data)
External signal callback.
Definition: tobii_research_streams.h:623
int width
Definition: tobii_research_streams.h:839
int64_t system_time_stamp
Definition: tobii_research_streams.h:488
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.
TobiiResearchValidity validity
Definition: tobii_research_streams.h:152
Definition: tobii_research_streams.h:77
uint32_t value
Definition: tobii_research_streams.h:324
TobiiResearchGazeOrigin gaze_origin
Definition: tobii_research_streams.h:111
TobiiResearchEyeImageType
Definition: tobii_research_streams.h:801
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:220
Definition: tobii_research_streams.h:299
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:869
void(* tobii_research_eye_image_callback)(TobiiResearchEyeImage *frame, void *user_data)
Eye image callback.
Definition: tobii_research_streams.h:899
Definition: tobii_research_streams.h:431
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:847
Definition: tobii_research_streams.h:466
TobiiResearchNormalizedPoint2D position_in_tracking_area
Definition: tobii_research_streams.h:179
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:881
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:284
void(* tobii_research_notification_callback)(TobiiResearchNotification *notification, void *user_data)
Notification callback.
Definition: tobii_research_streams.h:766
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:310
Definition: tobii_research_streams.h:436
TobiiResearchStreamError error
Definition: tobii_research_streams.h:710
Definition: tobii_research_streams.h:475
Definition: tobii_research_streams.h:421
char TobiiResearchNotificationString[512]
Definition: tobii_research_streams.h:479
TobiiResearchEyeData left_eye
Definition: tobii_research_streams.h:121
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.
TobiiResearchValidity validity
Definition: tobii_research_streams.h:71
Functionality for an eye tracker.
TobiiResearchValidity validity
Definition: tobii_research_streams.h:184
Definition: tobii_research_streams.h:294
Definition: tobii_research_streams.h:809
Definition: tobii_research_streams.h:805
Definition: tobii_research_streams.h:36
int64_t device_time_stamp
Definition: tobii_research_streams.h:259
int64_t device_time_stamp
Definition: tobii_research_streams.h:823
void(* tobii_research_user_position_guide_callback)(TobiiResearchUserPositionGuide *user_position_guide, void *user_data)
User position guide data callback.
Definition: tobii_research_streams.h:557
void(* tobii_research_hmd_gaze_data_callback)(TobiiResearchHMDGazeData *hmd_gaze_data, void *user_data)
HMD gaze data callback.
Definition: tobii_research_streams.h:593
Definition: tobii_research_streams.h:361
void * image_data
Definition: tobii_research_streams.h:889
Definition: tobii_research_streams.h:143
Definition: tobii_research_streams.h:270
int64_t system_time_stamp
Definition: tobii_research_streams.h:264
Definition: tobii_research.h:394
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:341
Definition: tobii_research_streams.h:336
Definition: tobii_research_streams.h:245
size_t data_size
Definition: tobii_research_streams.h:855
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:239
float output_frequency
Definition: tobii_research_streams.h:497
Definition: tobii_research_streams.h:310
TobiiResearchDisplayArea display_area
Definition: tobii_research_streams.h:502
TobiiResearchNotificationType
Definition: tobii_research_streams.h:417
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.
Definition: tobii_research_streams.h:456
int64_t device_time_stamp
Definition: tobii_research_streams.h:314
const char * message
Definition: tobii_research_streams.h:718
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:209
TobiiResearchEyeImageType type
Definition: tobii_research_streams.h:877
int64_t system_request_time_stamp
Definition: tobii_research_streams.h:274
Definition: tobii_research_streams.h:819
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:346
Definition: tobii_research_streams.h:426
TobiiResearchHMDEyeData left_eye
Definition: tobii_research_streams.h:249
Definition: tobii_research_streams.h:451
Definition: tobii_research_streams.h:446
Definition: tobii_research_streams.h:441
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:401
TobiiResearchNotificationType notification_type
Definition: tobii_research_streams.h:492
TobiiResearchValidity validity
Definition: tobii_research_streams.h:214
Generic SDK functions.
int64_t system_time_stamp
Definition: tobii_research_streams.h:706
int64_t system_time_stamp
Definition: tobii_research_streams.h:827
TobiiResearchPupilData pupil_data
Definition: tobii_research_streams.h:229
TobiiResearchNotificationString text
Definition: tobii_research_streams.h:508
TobiiResearchStreamErrorSource source
Definition: tobii_research_streams.h:714
int64_t device_time_stamp
Definition: tobii_research_streams.h:131
TobiiResearchStreamError
Definition: tobii_research_streams.h:332
Definition: tobii_research_streams.h:159
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:304
int64_t device_time_stamp
Definition: tobii_research_streams.h:279
Definition: tobii_research_streams.h:190
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:379
Definition: tobii_research_streams.h:484
Definition: tobii_research_streams.h:376
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:908
TobiiResearchNormalizedPoint3D user_position
Definition: tobii_research_streams.h:147
Definition: tobii_research_streams.h:813
Definition: tobii_research_streams.h:461
int64_t system_time_stamp
Definition: tobii_research_streams.h:873
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:702
TobiiResearchGazePoint gaze_point
Definition: tobii_research_streams.h:101
TobiiResearchEyeUserPositionGuide right_eye
Definition: tobii_research_streams.h:168
int64_t system_time_stamp
Definition: tobii_research_streams.h:136
size_t image_size
Definition: tobii_research_streams.h:885
Definition: tobii_research_streams.h:381
int64_t system_time_stamp
Definition: tobii_research_streams.h:319
Definition: tobii_research_streams.h:205
Definition: tobii_research_streams.h:865
TobiiResearchStreamErrorSource
Definition: tobii_research_streams.h:367
int padding_per_pixel
Definition: tobii_research_streams.h:835
TobiiResearchPoint3D position_in_user_coordinates
Definition: tobii_research_streams.h:46
TobiiResearchHMDGazeDirection gaze_direction
Definition: tobii_research_streams.h:224
TobiiResearchPupilData pupil_data
Definition: tobii_research_streams.h:106
#define TOBII_RESEARCH_API
Definition: tobii_research.h:37
TobiiResearchExternalSignalChangeType
Definition: tobii_research_streams.h:290
TobiiResearchValidity validity
Definition: tobii_research_streams.h:199
void(* tobii_research_time_synchronization_data_callback)(TobiiResearchTimeSynchronizationData *time_synchronization_data, void *user_data)
Time synchronization callback.
Definition: tobii_research_streams.h:663
Definition: tobii_research_streams.h:471
TobiiResearchHMDGazeOrigin gaze_origin
Definition: tobii_research_streams.h:234
int height
Definition: tobii_research_streams.h:843
TobiiResearchEyeUserPositionGuide left_eye
Definition: tobii_research_streams.h:163
Definition: tobii_research_streams.h:351
Definition: tobii_research_streams.h:371
Definition: tobii_research_streams.h:396
TobiiResearchValidity validity
Definition: tobii_research_streams.h:91
Definition: tobii_research_streams.h:175
void * data
Definition: tobii_research_streams.h:859
TobiiResearchHMDEyeData right_eye
Definition: tobii_research_streams.h:254
TobiiResearchExternalSignalChangeType change_type
Definition: tobii_research_streams.h:326
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.