Osd_mode – Sensoray 817 User Manual
Page 9

9
Index of an input channel that the buffer was captured from (1 .. 16). A channel is
a combination of hardware and software allowing video capture from a specific
video input of the 817 board.
bufId
Buffer index. Same as
bufId
of
CAP_BUFFER
structure.
capType
Reflects the type of captured data: JPEG or bitmap. May be either
CAP_JPG
or
CAP_BMP.
videopresent
Indicates if the board’s front end was synchronized to incoming video at the
moment the image was captured. A value of 0 means either no input video or loss
of sync.
valid
Indicates if the JPEG buffer contains valid data. Undefined for bitmap capture. A
value of 0 indicates that JPEG data is invalid. The most common reason for that is
compQuality
set too high.
jpgsize
Size of JPEG data, bytes. Undefined for bitmap capture.
tick
A value of on-board 1 ms timer’s tick corresponding to the start of data transfer to
the host. The timer starts at 0 when the firmware is loaded onto the board (driver
starts). There is a separate timer for each group of 4 input channels (1-4, 5-9, etc.).
The timers may not start at exactly the same moment of time.
frameCnt
A value of on-board captured frames counter individual for every input channel.
reserved[4]
Reserved for internal use. Do not modify.
OSD_MODE
typedef struct {
int
osdOn;
int
osdBmp;
int
transparent;
int
positionTop;
int
ddmm;
int
year2;
int
fraction;
char
line[80];
} OSD_MODE;
Controls the on-screen display (OSD). OSD is implemented as 1 line of text overlaid on
the captured image. OSD is displayed either in the top or bottom 13 lines of the image.
The character width is 8 pixels, offset from the left edge is 4 pixels.