Sensoray 2246 Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Sprzęt komputerowy Sensoray 2246. Sensoray 2246 User Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj

Podsumowanie treści

Strona 1 - Version 1.7.6

2246Software Development KitVersion 1.7.6 Sensoray 20137313 SW Tech Center Dr.Tigard, OR 97223Phone 503.684.8005 • Fax [email protected]

Strona 2 - Table of Contents

s2246param.inis2246param.ini in the windows directory (%WINDIR%) contains the codec specifications for decoding MPEG streams.The [General] section con

Strona 3

mid2246 Data Structure Documentationimage_raw_t Struct Reference#include <mid2246func.h>Public Attributes• BYTE * f0• int size0• BYTE * f1• int

Strona 4

MIDSRAYSTATUS Struct Reference#include <mid2246func.h>Public Attributes• ULONG iFilesize• char szFilepath [MAX_PATH]• BOOL bIsRecording• BOOL bI

Strona 5

MIDSRAYSTATUS_UNICODE Struct Reference#include <mid2246func.h>Public Attributes• ULONG iFilesize• WCHAR szFilepath [MAX_PATH]• BOOL bIsRecording

Strona 6 - Introduction

MPEG_CONFIG Struct Reference#include <mid2246const.h>Public Attributes• int mpeg• int bitrate• int vbr• int max_vbr_bitrate• int framerateDetail

Strona 7 - 2246SDK Demo Application

overlay_text_t Struct Reference#include <mid2246func.h>Public Attributes• char text [256]• char fontfile [256]• int fontsize• int txtcolor• int

Strona 8 - Files included with the SDK

File Documentationmid2246const.h File ReferenceClasses• struct MPEG_CONFIGDefines• #define MAX_DEVICES 30• #define MAX_TEXTSIZE 256Error constantsDe

Strona 9

• #define MID2246_SNAP_ERR_DVBUF -7• #define MID2246_SNAP_ERR_DVGRAB -8• #define MID2246_SNAP_ERR_USERERR -9Frame rate Constants. Note: for PAL, on

Strona 10

Revision moniker for SDK backward capabilityDefines• #define MID2246_BOARD_A 1• #define MID2246_BOARD_H 2• #define MID2246_BOARD_K 3Enumerations• e

Strona 11 - Member Data Documentation

Define Documentation#define MAX_DEVICES 30#define MAX_TEXTSIZE 256#define MID2246_SUCCESS 0#define MID2246_ERR_NONE 0#define MID2246_ERR_UNSPECIFI

Strona 12

Table of ContentsTable of Contents

Strona 13

#define MID2246_LEVEL_SATURATION_CR 4#define MID2246_LEVEL_SATURATION_CB 8#define MID2246_FILE_JPEG 1#define MID2246_FILE_BMP 2#define MID2246_FIL

Strona 14 - MPEG_CONFIG Struct Reference

Enumerator: MID2246_SOURCE_COMPOSITE_0 MID2246_SOURCE_COMPOSITE_1 MID2246_SOURCE_SVIDEO_0 MID2246_SOURCE_SVIDEO_1 MID2246_SOURCE_DV MID2246_SOURC

Strona 15

enum MID2246_DVIRESDVI output resolution These correspond to the [RESx] lines in \windows\dviparam.ini where x is called out by the MID2246_DVIRES_xxx

Strona 16 - File Documentation

MID2246_RC_RECTIME MID2246_RC_MANUALSTOP MID2246_RC_RECCLIPSIZE MID2246_RC_RECCLIPSIZEANDSTOP 23

Strona 17 - Frame rate Constants

mid2246func.h File Reference#include "windows.h"#include "mid2246const.h"Data Structures• struct MIDSRAYSTATUS• struct MIDSRAYSTAT

Strona 18 - Enumerations

• MID2246_API int SN_IsValidVid (MID2246_SOURCE checksource, int board)• MID2246_API int SN_IsValidSdi (MID2246_SOURCE checksource, int board)• MID224

Strona 19 - Define Documentation

• MID2246_API int SN_SnapshotToFile (char *szFilename, int filetype, int freezetime, int wait, int qual, int CustMergeSize, int board)• MID2246_API in

Strona 20 - Video systems. PAL or NTSC

#define MID2246_MERGEAPI int#define MAX_PATH 260#define MID2246_MAX_TEXT 256Overlay text structure Parameters:text pointer to text fontfile full

Strona 21

MID2246_API int SN_GetVersion (char ** sMid2246Version, char ** sFPGA2246Version, int * pBoardId, int board)Get middleware version number and FPGA ver

Strona 22

Parameters:xpos x position of video ypos y position of video xsize size of video display ysize size of video display left_clip number of pixels at lef

Strona 24 - Functions

MID2246_API int SN_SetDvi (MID2246_DVIRES res, BOOL bColorBars, int DviCropLeft, int DviCropTop, int DviCropRight, int DviCropBottom, int board)Set th

Strona 25

Parameters:param is the parameter to change ( MID2246_LEVEL_CONTRAST, MID2246_LEVEL_BRIGHTNESS, MID2246_LEVEL_SATURATION, MID2246_LEVEL_HUE) value is

Strona 26

MID2246_API int SN_IsValidVid (MID2246_SOURCE checksource, int board)Check to see if there are any valid Composite or S-Video inputs. Note: This funct

Strona 27 - Typedef Documentation

Parameters:board ID if multiple boards installed. Returns:TRUE(1) if video locked else FALSE(0) MID2246_API int SN_GetVidStatusNoBIST (int board)GetVi

Strona 28

Parameters:board ID if multiple boards installed. Returns:0 on success MID2246_API int SN_StopStream (int board = 0)Stops video/audio stream and stops

Strona 29 - Get the current video system

breakonrecsize flag indicating whether to, 1=end recording when filesize reaches size, or 0=continue recording to new file. board ID if multiple board

Strona 30

MID2246_API int SN_PauseRecord (int board = 0)Pause recording. Parameters:board ID if multiple boards installed. Returns:HRESULT = S_OK on success MID

Strona 31

MID2246_API int SN_GetRecordVideoStream (BOOL * bRecVid, int board = 0)Gets the video recording settingParameters:bRecVid pointer to record video sett

Strona 32

MID2246_API int SN_SetRenderVideo (BOOL bDisplayVideo, int board = 0)SetRenderVideo allows one to turn off the video window but still stream the video

Strona 33

Function Documentation - Playback functionsMID2246_API int SN_PlaybackVideo (char * filename_plus_path, int board = 0)Plays back the specified video c

Strona 34

#define MID2246_REGION_MPEG 2 ...

Strona 35

In addition, the call back function must call IMediaEventEx->FreeEventParams(...) each time it accesses the event via IMediaEventEx->GetEvent(..

Strona 36

Returns:0 on success MID2246_API int SN_DisplaySnapshotW (LPWSTR filename, int time, int board = 0)Unicode version of SN_DisplaySnapshot() Displays th

Strona 37

Function Documentation - Image capture functionsMID2246_API int SN_SetMergeMethod (MID2246_FIELDALG merge_method, mergefunc_t * custom_alg, int board)

Strona 38

Returns:number of bytes read (image size) or MID2246_SNAP_ERR_UNSPECIFIED -1 MID2246_SNAP_ERR_BUFSIZE -2 'Size' of buffer provided is too sm

Strona 39

MID2246_SNAP_ERR_CRITSEC -5 Aquisition's critical section already locked, and user doesn't want to wait for it. MID2246_SNAP_ERR_PARTBUF -6

Strona 40

regionmask -- region mask (MID2246_REGION_MONITOR, MID2246_REGION_MPEG, MID2246_REGION_STILL) board ID if multiple boards installed. Returns:0 on succ

Strona 41

MID2246_API int SN_OverlayQuad (int WinIndex, char * imageFile, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, int regionmask, int bo

Strona 42

Ypos -- start y position Value -- pointer to text or image file path board ID if multiple boards installed. Returns:0 on success MID2246_API int SN_Ov

Strona 43 - SN_SetMergeMethod()

Returns:0 on success MID2246_API int SN_ClearOverlay (int board)Clear all overlays Parameters:board ID if multiple boards installed. Returns:0 on succ

Strona 44

Parameters:states pointer to an integer that receives the value in the register driving the outputs. board ID if multiple boards installed. Returns:Sa

Strona 45

MID2246_API int SN_GetFrameSync (int * sync, int board) ...

Strona 46

Sample codeSee 2246demo codeSetting Custom Merge Method for interlace reconstructionFirst set the merge method:SN_SetMergeMethod( MID2246_FIELDALG_CUS

Strona 47

MID2246_API int SN_SetMergeMethod (MID2246_FIELDALG merge_method, mergefunc_t * custom_alg, int board)

Strona 48

Software Installation RequirementsMinimum processor: Pentium III 600 MHz. A Pentium IV 2 GHz or faster is recommended.Operating system: Windows 2000,

Strona 49

Building an application with the 2246SDKFiles included with the SDKThe following files are distributed with the 2246SDK:Drivers directory:2246 drivers

Strona 50 - Sample code

libplaylist_plugin.dlllibps_plugin.dlllibstream_out_duplicate_plugin.dlllibstream_out_es_plugin.dlllibstream_out_gather_plugin.dlllibstream_out_standa

Komentarze do niniejszej Instrukcji

Brak uwag