Sensoray 615 User Manual

Page 10

Advertising
background image

10

Operation mode data structure MODE

typedef struct {
DWORD format; //NTSC, PAL
DWORD bmpflip; //bmp capture lines order
DWORD bmpcolor; //bitmap color format:RGB,monochrome,YCrCb
DWORD bmpsize; //bitmap size: 128x96 or 256x192
DWORD jpgsize; //jpeg size
DWORD captionformat; //format of the caption window
DWORD captionpos; //position of the caption window
DWORD fontsize; //caption font size
DWORD compfactor; //compression factor
DWORD xpinit; //initial crosspoint switch setting
} MODE;

The MODE structure contains information about the operation mode of the frame grabber. The
settings that are controlled by MODE cannot be changed on a frame to frame basis.

format

Defines the format of the video signal:

FORMAT_NTSC – NTSC (60Hz) video;
FORMAT_PAL – PAL or SECAM (50Hz) video.

bmpflip

Uncompressed bitmap lines order:

FLIP_OFF – bitmap is stored in memory in “natural” lines order (top line first). If displayed

by Windows API functions, the image will look upside down.

FLIP_ON – bitmap is stored in memory in Windows lines order (bottom line first).

bmpcolor

Color format of the uncompressed bitmap:
COLOR_MONO – monochrome, 1 byte per pixel;

COLOR_RGB – color, 3 bytes per pixel;
COLOR_YCRCB – color, 2 bytes per pixel, YCrCb (byte sequence: CbYCrY…);
COLOR_YCRCB_BS – color, 2 bytes per pixel, YCrCb (byte sequence: YCbYCr…).

bmpsize

Uncompressed bitmap size:
BMP_SIZE_LRG – large bitmap (256x192);
BMP_SIZE_SML – small bitmap (128x96).

jpgsize

Compressed (JPEG) image size:
JPG_SIZE_FULL - full size JPEG, 704x480 (NTSC) or 704x576 (PAL);
JPG_SIZE_FULL_C – clipped full size JPEG, 640x480 (NTSC), not valid for PAL;

JPG_SIZE_HALF - half size JPEG, 352x240 (NTSC) or 352x288 (PAL);
JPG_SIZE_HALF_C – clipped half size JPEG, 320x240 (NTSC), not valid for PAL;

captionformat

Caption window format:

Advertising