Tobii Pro SDK C API
|
Functionality for eye tracker streams. More...
Go to the source code of this file.
Data Structures | |
struct | TobiiResearchGazeOrigin |
struct | TobiiResearchPupilData |
struct | TobiiResearchGazePoint |
struct | TobiiResearchEyeData |
struct | TobiiResearchGazeData |
struct | TobiiResearchHMDPupilPosition |
struct | TobiiResearchHMDGazeOrigin |
struct | TobiiResearchHMDGazeDirection |
struct | TobiiResearchHMDEyeData |
struct | TobiiResearchHMDGazeData |
struct | TobiiResearchTimeSynchronizationData |
struct | TobiiResearchExternalSignalData |
struct | TobiiResearchNotification |
struct | TobiiResearchStreamErrorData |
struct | TobiiResearchEyeImage |
struct | TobiiResearchEyeImageGif |
Typedefs | |
typedef void(* | tobii_research_gaze_data_callback) (TobiiResearchGazeData *gaze_data, void *user_data) |
Gaze data callback. More... | |
typedef void(* | tobii_research_hmd_gaze_data_callback) (TobiiResearchHMDGazeData *hmd_gaze_data, void *user_data) |
HMD gaze data callback. More... | |
typedef void(* | tobii_research_external_signal_data_callback) (TobiiResearchExternalSignalData *external_signal_data, void *user_data) |
External signal callback. More... | |
typedef void(* | tobii_research_time_synchronization_data_callback) (TobiiResearchTimeSynchronizationData *time_synchronization_data, void *user_data) |
Time synchronization callback. More... | |
typedef void(* | tobii_research_stream_error_callback) (TobiiResearchStreamErrorData *stream_error, void *user_data) |
Stream error callback. More... | |
typedef void(* | tobii_research_notification_callback) (TobiiResearchNotification *notification, void *user_data) |
Notification callback. More... | |
typedef void(* | tobii_research_eye_image_callback) (TobiiResearchEyeImage *frame, void *user_data) |
Eye image callback. More... | |
typedef void(* | tobii_research_eye_image_as_gif_callback) (TobiiResearchEyeImageGif *frame, void *user_data) |
Eye image gif callback. More... | |
Enumerations |
Functionality for eye tracker streams.
typedef void(* tobii_research_external_signal_data_callback) (TobiiResearchExternalSignalData *external_signal_data, void *user_data) |
External signal callback.
Implement this and send as a parameter to tobii_research_subscribe_to_external_signal_data.
external_signal_data | External signal data received from the eye tracker. |
user_data | Caller specific data sent in with tobii_research_subscribe_to_external_signal_data. |
typedef void(* tobii_research_eye_image_as_gif_callback) (TobiiResearchEyeImageGif *frame, void *user_data) |
Eye image gif callback.
Implement this and send as a parameter to tobii_research_subscribe_to_eye_image_as_gif.
frame | Eye image gif frame received from the eye tracker. |
user_data | Caller specific data sent in with tobii_research_subscribe_to_eye_image_as_gif. |
typedef void(* tobii_research_eye_image_callback) (TobiiResearchEyeImage *frame, void *user_data) |
Eye image callback.
Implement this and send as a parameter to tobii_research_subscribe_to_eye_image.
frame | Eye image frame received from the eye tracker. |
user_data | Caller specific data sent in with tobii_research_subscribe_to_eye_image. |
typedef void(* tobii_research_gaze_data_callback) (TobiiResearchGazeData *gaze_data, void *user_data) |
Gaze data callback.
Implement this and send as a parameter to tobii_research_subscribe_to_gaze_data.
gaze_data | Gaze data received from the eye tracker. |
user_data | Caller specific data sent in with tobii_research_subscribe_to_gaze_data. |
typedef void(* tobii_research_hmd_gaze_data_callback) (TobiiResearchHMDGazeData *hmd_gaze_data, void *user_data) |
HMD gaze data callback.
Implement this and send as a parameter to tobii_research_subscribe_to_hmd_gaze_data.
hmd_gaze_data | HMD gaze data received from the eye tracker. |
user_data | Caller specific data sent in with tobii_research_subscribe_to_hmd_gaze_data. |
typedef void(* tobii_research_notification_callback) (TobiiResearchNotification *notification, void *user_data) |
Notification callback.
Implement this and send as a parameter to tobii_research_subscribe_to_notifications.
notification | Notification received from the eye tracker. |
user_data | Caller specific data sent in with tobii_research_subscribe_to_notifications. |
typedef void(* tobii_research_stream_error_callback) (TobiiResearchStreamErrorData *stream_error, void *user_data) |
Stream error callback.
Implement this and send as a parameter to tobii_research_subscribe_to_stream_errors.
stream_error | TobiiResearchStreamErrorData object. |
user_data | Caller specific data sent in with tobii_research_subscribe_to_stream_errors. |
typedef void(* tobii_research_time_synchronization_data_callback) (TobiiResearchTimeSynchronizationData *time_synchronization_data, void *user_data) |
Time synchronization callback.
Implement this and send as a parameter to tobii_research_subscribe_to_time_synchronization_data.
gaze_data | Time synchronization data received from the eye tracker. |
user_data | Caller specific data sent in with tobii_research_subscribe_to_time_synchronization_data. |
Defines external signal change type.
Defines eye image type.
Defines notification types
Defines error types
Defines error sources
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.
You will get a callback when the value of the external signal port (TTL input) on the eye tracker device changes. Not all eye trackers have an output trigger port. The output feature could be used to synchronize the eye tracker data with data from other devices. The output data contains a time reference that matches the time reference on the time synchronized gaze data.
eyetracker | Eye tracker object. |
callback | Callback that will receive the external signal data. |
user_data | Caller specific data that will be sent to the callback. |
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.
You will get a callback when a new eye image is received, and the occurrence depends on the eye tracker model. Not all eye tracker models support this feature. If no one is listening to gaze data, the eye tracker will only deliver full images, otherwise either cropped or full images will be delivered depending on whether or not the eye tracker has detected eyes.
eyetracker | Eye tracker object. |
callback | Callback that will receive the frames. |
user_data | Caller specific data that will be sent to the callback. |
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.
You will get a callback when a new eye image is received, and the occurrence depends on the eye tracker model. Not all eye tracker models support this feature. If no one is listening to gaze data, the eye tracker will only deliver full images, otherwise either cropped or full images will be delivered depending on whether or not the eye tracker has detected eyes.
eyetracker | Eye tracker object. |
callback | Callback that will receive the frames. |
user_data | Caller specific data that will be sent to the callback. |
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.
You will get a callback when time synchronized gaze is received.Time synchronized gaze is not supported on all eye trackers, other eye trackers need additional license to activate this support.
eyetracker | Eye tracker object. |
callback | Callback that will receive the gaze data. |
user_data | Caller specific data that will be sent to the callback. |
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.
eyetracker | Eye tracker object. |
callback | Callback that will receive the gaze data. |
user_data | Caller specific data that will be sent to the callback. |
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.
You will get a callback when notification is received.
eyetracker | Eye tracker object. |
callback | Callback that will receive the notifications. |
user_data | Caller specific data that will be sent to the callback. |
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.
You will get a callback when an error occurs on other streams. You can get errors when subscribing, when something happened to the connection in the stream pump or when an error was raised in a callback.
eyetracker | Eye tracker object. |
callback | Callback that will receive the stream errors. |
user_data | Caller specific data that will be sent to the callback. |
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.
You will get a callback when the computer and the eye trackers clocks gets synchronized. To handle normal drifts between clocks the clocks are checked on regular basis, and this results in that the time stamps are adjusted for the drifts in the data streams. This drift handling is done in real time. The data received from this event could be used for an even more accurate drift adjustment in the post processing.
eyetracker | Eye tracker object. |
callback | Callback that will receive the time synchronization data. |
user_data | Caller specific data that will be sent to the callback. |
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.
eyetracker | Eye tracker object. |
callback | Callback sent to tobii_research_subscribe_to_external_signal_data |
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.
eyetracker | Eye tracker object. |
callback | Callback sent to tobii_research_subscribe_to_eye_image. |
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.
eyetracker | Eye tracker object. |
callback | Callback sent to tobii_research_subscribe_to_eye_image_as_gif. |
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.
eyetracker | Eye tracker object. |
callback | Callback sent to tobii_research_subscribe_to_gaze_data. |
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.
eyetracker | Eye tracker object. |
callback | Callback sent to tobii_research_subscribe_to_hmd_gaze_data. |
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.
eyetracker | Eye tracker object. |
callback | Callback sent to tobii_research_subscribe_to_notifications. |
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.
eyetracker | Eye tracker object. |
callback | Callback sent to tobii_research_subscribe_to_stream_errors. |
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.
eyetracker | Eye tracker object. |
callback | Callback sent to tobii_research_subscribe_to_time_synchronization_data. |