beautypg.com

Capture_mode – Sensoray 817 User Manual

Page 6

background image

6

brightness

Video brightness. Must vary between 0x00 (darkest) to 0xff (brightest). The default is
0x80.

contrast

Video contrast. Must vary between 0x00 (lowest) to 0xff (highest). The default is 0x80.

saturation

Video saturation. Must vary between 0x00 (no color) to 0xff (maximum). The default
is 0x80.

hue

Video hue (irrelevant in PAL mode). The value is 8-bit signed: -128 (0x80) to 127
(0x7f). The default is 0.

CAPTURE_MODE

typedef struct {

CAP_MODE

capMode;

int

capType;

int

compQuality;

int

frameRateBmp;

int

frameRateJpg;

} CAPTURE_MODE;

capMode

Defines capture mode :

CAP_MODE_CONT –

continuous capture (the board sends captured frames at

requested frame rate continuously;

CAP_MODE_SINGLE –

a single image is captured. A call to

S817_SetCaptureMode

is required to capture one image.

capType

Types of images to capture (can be OR’ed):

CAP_JPG –

enable JPEG capture;

CAP_BMP –

enable bitmap capture;

CAP_OFF –

disable capture.


compQuality

Defines the level of JPEG compression: must vary between 0 (highest compression,
smallest file size, lowest quality) and 100 (lowest compression, largest file size,
highest quality). The size of a valid JPEG file is limited to 80KB.

frameRateBmp
frameRateJpg

Define capture frame rates for JPEG and bitmap images, respectively. Apply to cases
when

capMode

is set to

CAP_MODE_CONT.

The following values are allowed:

Frame rate, frames per second

frameRateBmp
frameRateJpg

NTSC

PAL