USB MPEG Capture DeviceSoftware ManualModel 2250 / 2251 | Rev.A | September 10
);Retrieves current input settings.ParameterspSourcepointer to the value of current input.boardboard number in the system (use 0 for single board setu
board number in the system (use 0 for single board setups).Returns0 on success, negative value if error (see mid2250types.h for error codes list).MID2
);Retrieves current bitrate setting.Parametersboardboard number in the system (use 0 for single board setups).Returnscurrent bitrate (in bits per seco
MID2250_API int SN_StopStream( int board);Stops video and audio streaming. If recording is enabled it is stopped as well.Parametersboardboard number
Starts recording to a file. (Note: The “breakonrecsize” parameter and feature will be obsoleted in the future. It is recommended that SDK users do th
Resumes the recording. Available only for Video elementary stream. Not available for Audio/Video multiplexed streams.Parametersboardboard number in
);Takes a snapshot and saves it to a file.ParametersfileNamefull path to the target file, no extension.filetypefile type(s) to save to (MID2250_FILE_J
MID2250_API int SN_PlaybackVideo( int vidnum);Starts playback of the specified file in current window.Parametersvidnumnumber of assigned video strea
number of assigned video stream.Returns0 on success, negative value if error (see mid2250types.h for error codes list).MID2250_API int SN_PlaybackSetR
a denominator of the position in the file expressed as a fraction of a total file size.vidnumnumber of assigned video stream.Returns0 on success, nega
Table of ContentsLIMITED WARRANTY ...
defines the parameter to set (MID2250_LEVEL_CONTRAST, MID2250_LEVEL_BRIGHTNESS, MID2250_LEVEL_SATURATION, MID2250_LEVEL_HUE). See see mid2250types.h f
int board );Mutes audio on the host computer. Audio will still be recorded. If called while streaming, the function will stop and restart the srea
BOOL bEnable, BOOL bUpdate, int board );Configures text overlays (OSD).ParametersidxOverlay number (index), 0-5.pPosposition of top left corner
0 on success, negative value if error (see mid2250types.h for error codes list).MID2250_API int SN_SetVidSize( int iVidSize, int board );Sets the
BOOL *bDisplayVideo, int board );Retrieves the preview setting.ParametersbDisplayVideopointer to retrieved setting.boardboard number in the syste
Retrieves the aspect ratio control setting.Parametersmodepointer to retrieved setting.boardboard number in the system (use 0 for single board setups).
);Removed with V.1.03. Please use SN_SetBoardWindow.MID2250_API int SN_SetRemoveMsg( HWND hwnd, int removeMsg, int board );Sets the value of th
MID2250_API int SN_SetVideoPosition( int xpos, int ypos, int xsize, int ysize, int left_clip, int top_clip, int right_clip, int bottom
JPEG frames, no rendering is performed. No DirectShow filters are required to be installed for MJPEG mode to function.ParametersmodeMID2250_OPMODE_NOR
0 if success, negative if error.MID2250_API int SN_SetMpegSequence( MID2250_SEQMODE seqMode, int board );Set alternate MPEG sequence mode. For MPE
Limited warrantySensoray Company, Incorporated (Sensoray) warrants the hardware to be free from defects in material and workmanship and perform to app
pBMI pointer to bitmap info. Currently only the following parameters are updated: pBMI->biHeight, biWidth, biSizeImage.type type of buffer to ret
0 if success, negative if error.MID2250_API int SN_StopMD( int board );Stops motion detection.Parametersboard Board number in system.Returns0 if s
Retrieves the motion detection data. See demo application for example.Parametersregionthe returned region mask. 0x02: region 1, 0x04: region 2, 0x08
typedef struct {char labelText[MAX_LABEL_SIZE]; // label to prepend to textint starttime; // start time in secondsint displayMS; // display millisecon
function will check for start codes. It is recommended, therefore to separate the data. For instance, if you want to store a 32 bit (4 byte) latitud
inSize size of pFrame buffer supplied (use 768*576*3 if unsure) pFrame pointer to buffer of size inSize where frame is stored type 0, uncompressed(co
The second threshold is the motion vector threshold. The recommended range is 0-1600. For testing purposes(with sensitivity = 80), start at MV=700.
Motion MapWhen motion is detected, an event is generated with data containing the region(s) of interest with motion and a motion map. The motion map c
Figure 1 Motion Map( statistics represent number of motion events per region).The motion-map above shows a hit at macro-blocks 2,3,4,5 and other macro
• Enter 720 for BR_x and 320 for BR_y.• Click OK.• Start stream (if not already started).• Select View->MDRegions. Region selected above will be s
SoftwareFeature SummaryModels 2250 & 2251 are shipped with the drivers for Microsoft Windows 2000/XP/Vista. A full-featured demo application allow
Figure 2 : Three(3) Motion Detection Regions of InterestThe above regions were set-up by selecting Tools->MDSetup. A screen shot of the setup for
Figure 3: Setup for regions shown in Figure 2Example 2 : Advanced Motion MapThe motion map may show macroblocks outside the range of
Figure 4 This corresponds to the region show in Figure 5.42
Figure 5: Small region in upper left corner43
Figure 6The produced motion map when motion occurs is shown in Figure 6. The black rectangle shows macroblocks outside the area of interest. As exa
Example 3: (Advanced) Custom motion detectionSome customers may want motion information on a macroblock by macroblock basis. If this is the case, the
Figure 8When the event is captured by the waiting user program( see demo source code), it calls SN_GetMDData( ®ion, pBuf, BUFSIZE, board_number
From pBuf[0], we have the motion detect events for the first 8 macroblocks. 0x7c= 01111100b which represents the following:Macroblock 1 : bit field =
Appendix A : Importing the DLL in C# .NETSensoray provides a C DLL for maximum portability between programming languages. This allows the use of Senso
The software is provided as is. Only one copy of the software is allowed and the software is tied to one Sensoray device only. It must not be copied
SDK ReferenceRelease NotesV1.19• Windows 7 supportThe common API flow is described below. Refer to the complete functions reference for the details on
4. If recording is required, it is initiated by a call to SN_StartRecord(), and stopped with a call to SN_StopRecord().5. During the recording the fol
#define MID2250_API extern "C" __declspec(dllimport)MID2250_API int SN_Open( void );Must be called before any other API functions are call
board number in the system (use 0 for single board setups).MID2250_API int SN_SetPlaybackWindow( HWND hwnd, BOOL bResize );Sets the window for
Komentarze do niniejszej Instrukcji