Sensoray 2224 Windows Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Software Sensoray 2224 Windows herunter. Sensoray 2224 Windows User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken

Inhaltsverzeichnis

Seite 1 - Table of Contents

Table of Contents1H.264 1080p/1080i/720P Capture DeviceSoftware Manual (Windows)Models 2226 | Ver1.04 | March 2012

Seite 2

General SDK Usage1. Enumeration. If using multiple boards, they can be identified with the S2226_Enumerate call. If using a single board, it may be

Seite 3

After the board is successfully opened, it is necessary to configure it. Generally, it is not necessary to configure the audio settings. The default

Seite 4

Audio Meter• S2226_SetAudioMtrHoldTime• S2226_GetAudioMtrHoldTime• S2226_SetAudioMtrHoldRelease• S2226_GetAudioMtrHoldRelease• S2226_SetAudioMtrTest•

Seite 5 - Limited warranty

techniques to work with the data. This could involve, for example, saving the data from the callback to a queue or FIFO to work on in another thread.

Seite 6 - Introduction

Unfortunately, if the user does manage to move the video window from one display to another, the preview may freeze. When this happens, the recording

Seite 7 - Software

OverlayThe 2226 has the capability to add text captions and bitmap images on to the video stream. There are a total of 8 hardware windows to work wit

Seite 8 - SDK Reference

• S2226_SetMergeMethod• S2226_SnapshotToFile• S2226_SnapshotToFileW• S2226_SnapshotToMem• S2226_SnapshotRawNotificationsThe 2226 is a USB device. It

Seite 9

MID2226_API int S2226_CloseBoard(HANDLE hdev);Must be called before application terminates for proper clean-up of the SDK and SDK objects.Parametershd

Seite 10 - Initialization

);Selects current input. If bUpdateNow is set to FALSE, the input will not be updated until streaming is started. If changing from an HD input to an

Seite 11 - Encoding

MID2226_API int S2226_GetInput( MID2226_SOURCE *pSource, HANDLE hdev);Retrieves current input settings.ParameterspSourcepointer to the value to re

Seite 12 - Stream Capture

LIMITED WARRANTY ...

Seite 13

Parametersbitratebitrate of encoded stream in kbps. (1000-17000kbps). hdevhandle to device (obtained from S2226_OpenBoard).Returns0 on success, negati

Seite 14 - Decoding

MID2226_API int S2226_SetReducedClock( BOOL bReducedClock, HANDLE hdev);For HD inputs only (720p, 1080i) with NTSC video system. Some HD NTSC sou

Seite 15 - Snapshots

ParameterspStatuspointer to status variable.hdevhandle to device (obtained from S2226_OpenBoard).Returns0 on success, negative value if error (see mid

Seite 16 - Functions Reference

MID2226_API int S2226_StopStream( HANDLE hdev);Stops streaming (recording, playing, previewing). Any registered callback is cleared.Parametershdevha

Seite 17

HANDLE hdev);Retrieves video levels.Parametersparamdefines the parameter to get (MID2226_LEVEL_CONTRAST, MID2226_LEVEL_BRIGHTNESS, MID2226_LEVEL_SA

Seite 18

MID2226_API int S2226_GetAudioGain( int *gainL, int *gainR, HANDLE hdev );Retrieves gain settings for internal PGA audio amp.ParametersgainLgain

Seite 19

gainLAGC gain for left channel(decibels times 2). 0-118 (0-59dB) 0dB recommended for line input.gainRAGC gain for right channel(decibels times 2). 0-1

Seite 20

handle to device (obtained from S2226_OpenBoard).Returns0 on success, negative value if error (see mid2226types.h for error codes list).MID2226_API in

Seite 21

int val, HANDLE hdev );Used for S2226_StartDecode only. Set the audio DAC volume.Parametersval0-127 (steps of -0.5 dB, 0=0Db=maximum volume, 127

Seite 22

Parametersextra_gain0-9 (in steps of 1 dB). The default and recommended setting is 0.hdevhandle to device (obtained from S2226_OpenBoard).Returns0 on

Seite 23

Audio Meter/Settings/Test ...

Seite 24

Returns0 on success, negative value if error (see mid2226types.h for error codes list).MID2226_API int S2226_GetAudioOutputHp( int *extra_gain, HA

Seite 25

Retrieve extra gain setting for audio stereo channel.Parametersextra_gain0-9 (in steps of 1 dB). The default and recommended setting is 0.hdevhandle t

Seite 26

handle to device (obtained from S2226_OpenBoard).Returns0 on success, negative value if error (see mid2226types.h for error codes list).MID2226_API in

Seite 27

AMUX_MPEG_IN_TONE - MPEG-In gets Tone Test AMUX_MPEG_IN_SDI_IN - MPEG-In gets SDI-In embedded audiohdevhandle to device (obtained from S2226_

Seite 28

Set Audio Meter Channel Select. Determines which Audio channel to send to the meter/monitor hardware.ParameterssourceSource can be one of: 0 = Lin

Seite 29

Set Audio Meter's Hold/Release setting.ParametersholdrelCan be one of: 1 = Force release of 'Held' output 0 = Allow holding of h

Seite 30

ParametersvalCan be one of: 0 = no hold (Update every 1 ms) 1 = Hold hold highest value 0.5 sec 2 = Hold hold highest value 1.0 sec 3 =

Seite 31

MID2226_API int S2226_SetAudioMtrTest( int val, HANDLE hdev );Set Audio Meter test type.ParametersvalCan be one of: 0 = No Test. 1

Seite 32

0 on success, negative value if error (see mid2226types.h for error codes list).MID2226_API int S2226_GetAudioMtrHold( int *hld_l, int *hld_r, i

Seite 33

MID2226_API int S2226_GetAudioMtrLevel( int *audl, int *audr, HANDLE hdev );Get the audio meter's peak amplitude that is decayed over time.

Seite 34

ovldel i ...

Seite 35

pointer to the value to receive the right channels current peak amplitude that is decayed over time in decibels. hdevhandle to device (obtained from S

Seite 36

callback function. See header file for definition of cbfunc_t function.hdevhandle to device (obtained from S2226_OpenBoard).Returns0 on success, nega

Seite 37

Returns0 on success, negative value if error (see mid2226types.h for error codes list).MID2226_API int S2226_StartDecode( char *fileName, MID2226_

Seite 38

Starts decoding a stream from memory. See demo application for an example usage of this function. Use S2226_SendData to send data to the 2226 to dec

Seite 39

handle to device (obtained from S2226_OpenBoard).Returns0 on success, negative value if error (see mid2226types.h for error codes list).MID2226_API in

Seite 40

MID2226_API int S2226_TestDecodeDone( HANDLE hdev);If message received, tests if decode was finished in the driver. This is NOT, however, when decod

Seite 41

);Starts video preview achieved by decompressing the stream. Available on Windows 7 only. Please note that H264 requires significant CPU resources t

Seite 42

wchar_t *fileName, HANDLE hdev);Same as S2226_StartPreviewAndRecord, but uses widechar or Unicode filenames.MID2226_API int S2226_SetRawPreviewSi

Seite 43

Start raw preview allows viewing the raw preview while streaming. It can be used with S2226_StartRecord or S2226_StartCallback. It should not be used

Seite 44

handle to device context.hdevhandle to device (obtained from S2226_OpenBoard).Returns0 on success, negative value if error (see mid2226types.h for err

Seite 45

Limited warrantySensoray Company, Incorporated (Sensoray) warrants the hardware to be free from defects in material and workmanship and perform to app

Seite 46

handle to device (obtained from S2226_OpenBoard).Returns0 on success, negative value if error (see mid2226types.h for error codes list).MID2226_API in

Seite 47

regionmaskMID2226_REGION_MONITOR, MID2226_REGION_MPEG, MID2226_REGION_STILL.hdevhandle to device (obtained from S2226_OpenBoard).Returns0 on success,

Seite 48

0 on success, negative value if error (see mid2226types.h for error codes list).MID2226_API int S2226_OverlayImage( int xpos, int ypos, char *im

Seite 49

);Adds overlay image. If overlay already exists at that x, y position, deletes window before adding.ParametersAtIndex(0-7) sub-window position to upda

Seite 50

ImagePointer to memory containing 24-bit RGB data Row 0 firstxPosStart X positionyPosStart y positionxSizeSize of horizontal line in pixels (Each pixe

Seite 51

type1=image, 0=textregionMID2226_REGION_MONITOR, MID2226_REGION_MPEG, MID2226_REGION_STILL.grouptext with common group number is kept together.xpossta

Seite 52

NOTE: All conditions are met when sub-window position 0 is set to match the input video resolution, thereby creating a full screen overlay that can be

Seite 53

redreg component 0-255greengreen component 0-255blueblue component 0-255hdevhandle to device (obtained from S2226_OpenBoard).Returns0 on success, nega

Seite 54

MID2226_API int S2226_OverlayDelXY( int xpos, int ypos, HANDLE hdev);Delete an overlay at x, y location if one exists at that location.Parameter

Seite 55

Refresh or update the overlay to the hardware.Parametershdevhandle to device (obtained from S2226_OpenBoard).Returns0 on success, negative value if er

Seite 56

IntroductionThe 2226 product is a USB 2.0 audio video H.264 capture device. The 2226 supports many different inputs and video formats including 1080p

Seite 57

HANDLE hdev);Sets all overlays for specified region.ParametersregionmaskMID2226_REGION_MONITOR, MID2226_REGION_MPEG, MID2226_REGION_STILL.hdevhandl

Seite 58 - WinIndex

int freezetime, int wait, int qual, int unused, HANDLE hdev);Takes a snapshot and save to file in filename.Parametersfilenamefully qualifie

Seite 59

HANDLE hdev);Takes a snapshot and save to file in filename (unicode version)Parametersfilenamefully qualified unicode filename with path (without e

Seite 60

imagepointer to retrieved snapshot. (image must be preallocated).sizesize of the image buffer (image).freezetimetime in milli-seconds to freeze the im

Seite 61

pointer to the returned raw image fields.freezetimetime in milli-seconds to freeze the image( freezing is done on the video output channels of the 222

Seite 62

Returns0 on success, negative value if error (see mid2226types.h for error codes list).MID2226_API int S2226_GetSDKVersions( unsigned int num, uns

Seite 63

int type, HANDLE hdev);Sets the output control for the device for the composite outputs. Parameterstype0-scaled output off(raw preview may be use

Seite 64

MID2226_API int S2226_save_rgbW( const wchar_t *fileName, const unsigned char *rgb, int width, int height, int type);Unicode wide-char versi

Seite 65

callback mechanism is usually UYVY. This converts it to RGB format before saving the image to file as BMP. Parametersuyvypointer to UYVY image. Size

Seite 66

Demo ApplicationThe demo application is shown above.Board SelectionThe board selection allows the user to select between multiple boards in the system

Seite 67

SoftwareFeature SummarySensoray's Model 2226 is shipped with drivers for Microsoft Windows XP, Vista, Windows 7. A full-featured demo application

Seite 68

available using the 2226 termination board (2226TA). “2226S” is the default setting and displays the inputs on the boxed 2226 system.LevelsThe bright

Seite 69 - Demo Application

Settings/Audio Routing...Audio settings brings up the audio gain and output settings.Settings/Mpeg-InSelects which audio input is selected to drive th

Seite 70

Audio Meter/Left,Right/LevelThe hexadecimal values returned from a call to S2226_GetAudioMtrLevel().Audio Meter/Left,Right/dBThe values returned from

Seite 71

The allowed preview scales using S2226_SetRawPreviewSize are as follows:SDI-SD, Composite, Svideo: 320x240, 640x480, 1280x720 (reduced frame rate), 19

Seite 72 - Snapshot Demo Application

FAQQ1) Can the 2226 record one file and decode another at the same time?A1) The 2226 is half duplex. Only one operation (encode/decode) may be perfor

Seite 73

Appendix A - TCL ScriptingThe 2226 Demo application includes a TCL scripting language interface. It is accessed from the Tools menu. The version used

Seite 74

Using TCLUpon selecting TCL from the Tools menu, an interactive (console) environment is setup for running and creating TCL scripts.Command can be exe

Seite 75 - Appendix A - TCL Scripting

Integration with the 2226Integration with the 2226 is done in a single file: jim_TclShell.cppThe routines that wrap the API function's typically

Seite 76 - Using TCL

Appendix B – API wrappersThe following 2226 API routines have been wrapped, and can be called, with TCL commands.SettingsReducedclock / rc nCalls S22

Seite 77 - Interdependent

get_inputCalls S2226_GetInput()This routine returns the input number given to the input command.outputscale typeCalls S2226_SetOutput()Sets the outpu

Seite 78 - Appendix B – API wrappers

The files PushFileSource2.ax and sraywrite.ax are registered by the installer using regsvr32. If re-distributing using a custom install, these files

Seite 79 - Record / Playback

record_preview_raw filenameThis routine calls S2226_SetPreviewType() and S2226_StartPreviewAndRecord() to record the selected input to the file-filen

Seite 80

SnapshotSetmerge mCalls S2226_SetMergeMethod()This routine sets the method that an interlaced video snapshot is de-interlaced before being saved to f

Seite 81 - Snapshot

ovlimagei f i x y Calls S2226_OverlayImageIdx() and optionally S2226_UpdateOverlay() Overlay .bmp file f to location x, y using index iovlimageraw

Seite 82

ovldel iCalls S2226_OverlayDel() and optionally S2226_UpdateOverlay() This routine deletes overlay index-iovlclearCalls S2226_ClearOverlay()This rout

Seite 83 - Miscellaneous

kbhitThis routine senses whether the user presses a key on the keyboard. It can be used to break out of infinite loops.hexprThis routine, written in T

Seite 84

Appendix C - Fast graphic overlaysThe new fast graphics Overlay API consists of a single function: SN_CopyBmpToOverlayZero(...)This function can

Seite 85

gopen xsz yszThe purpose of gopen is to create the Handle to Device Context, and Handle to Bitmap of size xsz by ysz, that Windows needs to write gr

Seite 86

Graphicsgpen t w r g bThis is a simple wrapper function for the Windows CreatePen () function. It also sets a global default values for subsequent ca

Seite 87 - Graphics

gsetrop2 opThis is a simple wrapper function for the Windows SetROP2 () function.The op parameter controls how the bitmap is copied.Valid op values:

Seite 88 - Valid op values:

gbkmode modeThis is a simple wrapper function for the Windows SetBkMode () function.Valid values for mode:1=TRANSPARENT2=OPAQUEgsetbkcolor r g bThis

Seite 89 - 2=OPAQUE

• Improved demo applications and preview window.• 64 bit DLL support (in addition to previously released 64 bit driver).• Decode UDP stream from netwo

Seite 90

gellipse xL yT xR yBThis is a simple wrapper function for the Windows Ellipse () function.Arguments:xL = Horizontal coordinate for the top left pixel

Seite 91

gfont f h [wi=0][p=0][we=0][i=0][u=0][s=0][es=0][or=0]This is a simple wrapper function for the Windows CreateFont () function. It also sets a global

Seite 92

gtext t xL yT xR yB [s=0]This is a simple wrapper function for the Windows DrawText () function. It also returns Width and Height values when DrawTe

Seite 93

Bitmapgloadimage fThis is a wrapper function for the Windows LoadImage () function. It loads the image into a second Bitmap/Device Context pair, g_hb

Seite 94

gstretchblt xDest yDest wDest hDest xSrc ySrc wSrc hSrc RopThis is a simple wrapper function for the Windows BitBlt () function. The source parameter

Verwandte Modelle: 2226 Windows

Kommentare zu diesen Handbüchern

Keine Kommentare