S2263_setimagesize, S2263_getimagesize – Sensoray 2263 User Manual

Page 18

Advertising
background image

param

defines the parameter to get (MID2263_LEVEL_CONTRAST,

MID2263_LEVEL_BRIGHTNESS, MID2263_LEVEL_SATURATION,
MID2263_LEVEL_HUE). See see mid2263types.h for definitions.

value

pointer to returned value of selected parameter.

devid

device id in the system (use 0 with a single board installed).

S2263_SetImageSize

MID2263_API int __stdcall S2263_SetImageSize (

int

width,

int

height,

int

devid,

int

strmidx);

Sets the image size (resolution). The following restrictions apply to the values.
For strmidx=0: 720x480, 720x576, 1280x720, 1920x1080.
For strmidx=1: 720x480, 720x576, 640x480, 640x360, 512x384, 512x288,
320x240, 320x180.
If an invalid width or height value is passed to the function, the firmware will

correct it to the nearest legitimate value. It is strongly recommended to follow
a call to S2263_SetImageSize with a call to S2263_GetImageSize (see below),

which will return the actual values set in the firmware, and use those values in
the application.
Please note that S2263_SetImageSize must be called before the stream is

started. The image size may not be changed until the stream is stopped.
width

width of the image, pixels.

height

height of the image, pixels.

devid

device id in the system (use 0 with a single board installed).

strmidx

stream index (0 or 1).

S2263_GetImageSize

MID2263_API int __stdcall S2263_GetImageSize (

int

*width,

18

Advertising