Sdk reference, Release notes, General notes – Sensoray 2251 Rev.A User Manual

Page 6

Advertising
background image

SDK Reference

Release Notes

V1.19

Windows 7 support

The common API flow is described below. Refer to the complete functions reference for the details
on individual functions.

General Notes

Important: The DLL is built with “cdecl”. If using the DLL in a programming environment
expecting “stdcall”, please use the DLL built with stdcall. The stdcall DLL is called mid2250_vb.dll,
but it is not exclusive to Visual Basic 6. This file may be renamed mid2250_stdcall.dll in the future.
Please note that newer versions of VB may use the cdecl calling convention.

A short example for including the DLL in a C# application is shown in Appendix A.

The common API flow is described below. Refer to the complete functions reference for the details
on individual functions.

1. Initialization. This is performed by a call to SN_Open() function. Initial default capture

settings are loaded.

2. A call to SN_Open() may be optionally followed by calls to the functions controlling

various settings:

input source: SN_SetSource();

video system and geometry: SN_SetVidSys(), SN_SetVidSize();

video parameters (brightness, contrast, saturation, hue): SN_SetLevels();

compression configuration: SN_SetEncodeType(), SN_SetBitrate();

audio input configuration: SN_SetAudioInput(), SN_SetMute();

record mode: SN_SetRecordMode();

OSD: SN_SetOverlayText().

3. A call to SN_StartStream() starts the 2250. The stream received from the USB is

decoded and displayed in the user window specified with SN_Open().

Advertising
This manual is related to the following products: