SR Research Support Site
Macros

Macros

#define SAMPLE_LEFT   0x8000
 
#define SAMPLE_RIGHT   0x4000
 
#define SAMPLE_TIMESTAMP   0x2000
 
#define SAMPLE_PUPILXY   0x1000
 
#define SAMPLE_HREFXY   0x0800
 
#define SAMPLE_GAZEXY   0x0400
 
#define SAMPLE_GAZERES   0x0200
 
#define SAMPLE_PUPILSIZE   0x0100
 
#define SAMPLE_STATUS   0x0080
 
#define SAMPLE_INPUTS   0x0040
 
#define SAMPLE_BUTTONS   0x0020
 
#define SAMPLE_HEADPOS   0x0010
 
#define SAMPLE_TAGGED   0x0008
 
#define SAMPLE_UTAGGED   0x0004
 
#define SAMPLE_ADD_OFFSET   0x0002
 

Detailed Description

The SAMPLE struct contains data from one 4-msec eye-tracker sample. The <flags> field has a bit for each type of data in the sample. Fields not read have 0 flag bits, and are set to MISSING_DATA flags to define what data is included in each sample. There is one bit for each type. Total data for samples in a block is indicated by these bits in the <sam_data> field of ILINKDATA or EDF_FILE, and is updated by the STARTSAMPLES control event.

Macro Definition Documentation

#define SAMPLE_ADD_OFFSET   0x0002

If this flag is set for the sample add .5ms to the sample time

#define SAMPLE_BUTTONS   0x0020

Button state: LSBy state, MSBy changes

#define SAMPLE_GAZERES   0x0200

Gaze res (x,y pixels per degree) pair

#define SAMPLE_GAZEXY   0x0400

Gaze x,y pair

#define SAMPLE_HEADPOS   0x0010

Head-position: byte tells # words

#define SAMPLE_HREFXY   0x0800

Head-referenced x,y pair

#define SAMPLE_INPUTS   0x0040

Input data port

#define SAMPLE_LEFT   0x8000

Data for left eye

#define SAMPLE_PUPILSIZE   0x0100

Pupil size

#define SAMPLE_PUPILXY   0x1000

Pupil x,y pair

#define SAMPLE_RIGHT   0x4000

Data for right eye

#define SAMPLE_STATUS   0x0080

Error flags

#define SAMPLE_TAGGED   0x0008

Reserved variable-length tagged

#define SAMPLE_TIMESTAMP   0x2000

Time stamp for sample. bit always set for link sample, used to compress files

#define SAMPLE_UTAGGED   0x0004

User-defineabe variable-length tagged


Copyright ©2002-2024, SR Research Ltd.