S2253_setimagesize – Sensoray 2253 Windows User Manual
Page 23

unsigned char
*value,
int
devid);
Retrieves current brightness, contrast, saturation and hue settings.
param
defines the parameter to get (MID2253_LEVEL_CONTRAST,
MID2253_LEVEL_BRIGHTNESS, MID2253_LEVEL_SATURATION,
MID2253_LEVEL_HUE). See see mid2253types.h for definitions.
value
pointer to returned value of selected parameter.
devid
device id in the system (use 0 with a single board installed).
S2253_SetImageSize
MID2253_API int __stdcall S2253_SetImageSize (
int
width,
int
height,
int
devid,
int
strmidx);
Sets the image size (resolution). The following restrictions apply to the values.
Horizontal (width) – minimum 128, maximum 768. Must be a multiple of 16. A
value of 768 may be used to obtain proper aspect ratio when capturing PAL.
However, this size is achieved by upsampling an image captured at 720 pixel
resolution. Using a value of 768 is likely to decrease the frame capture rate of
the uncompressed stream by up to 10%. Recommended values: 320, 640,
704, 720.
Vertical (height) – minimum 96, maximum 576. Must be a multiple of 16.
Recommended values: 240, 480 for NTSC, 288, 576 for PAL.
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 S2253_SetImageSize with a call to S2253_GetImageSize (see below),
which will return the actual values set in the firmware, and use those values in
the application.
Please note that S2253_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.
23