beautypg.com

Parameters, Returns – Sensoray 2246 User Manual

Page 30

background image

MID2246_API int SN_SetDvi (MID2246_DVIRES res, BOOL bColorBars, int DviCropLeft, int

DviCropTop, int DviCropRight, int DviCropBottom, int board)

Set the DVI resolution and optional built-in colorbar test mode

Parameters:

res : Enumerated resolution (MID2246_DVIRES)
bColorBars,: Turn Colorbars on or off
DviCropLeft clip left of scaled image by this value then stretch to fit.
DviCropTop clip top of scaled image by this value then stretch to fit.
DviCropRight clip right of scaled image by this value then stretch to fit.
DviCropBottom clip bottom of scaled image by this value then stretch to fit.
board ID if multiple boards installed.

Returns:

0 on success

MID2246_API int SN_SetMpegCrop (int MpegCropLeft, int MpegCropTop, int

MpegCropRight, int MpegCropBottom, int board)

Set the MPEG Hardware Cropping

Parameters:

MpegCropLeft clip left of scaled image by this value then stretch to fit.
MpegCropTop clip top of scaled image by this value then stretch to fit.
MpegCropRight clip right of scaled image by this value then stretch to fit.
MpegCropBottom clip bottom of scaled image by this value then stretch to fit.
board ID if multiple boards installed.

Returns:

0 on success

MID2246_API int SN_SetMpegConfig (MPEG_CONFIG * pConfig, int board)

Sets the mpeg configuration parameters(see MPEG_CONFIG above).

Parameters:

pConfig pointer to MPEG_CONFIG structure
board ID if multiple boards installed.

Returns:

0 on success, negative otherwise (see errors in mid2246const.h)

MID2246_API int SN_GetMpegConfig (MPEG_CONFIG * pConfig, int board)

Retrieves the current mpeg configuration parameters

Parameters:

pConfig pointer MIDSRAYSTATUS Status structure.
board ID if multiple boards installed.

Returns:

0 on success, negative otherwise (see errors in mid2246const.h)

MID2246_API int SN_SetLevels (int param, unsigned char value, int board)

Set the brightness, contrast and saturation

30