
Technical Manual
© 2006-2010 by HIKVISION. All rights reserved.
12
4.
Encoding Card SDK
4.1. Order of Function Call
A
.
Set the default video standard
SetDefaultVideoStandard()
B
.
Init system
InitDSPs()
C
.
Get total encode channels
GetTotalChannels()
Open encode channel
ChannelOpen()
Register the call back to get the raw stream data
RegisterImageStreamCallback()
Start video preview
StartVideoPreview ()
D
.
Set OSD
Set the mode for OSD(just support 2lines)
SetOsdDisplayMode()
Set the mode for OSD(support 8 lines)
SetOsdDisplayModeEx ()
Start OSD
SetOsd()
set Logo
Convert 24 bits bmp file to yuv data
LoadYUVFromBmpFile()
Set logo display mode
SetLogoDisplayMode()
Set the logo for data and location
SetLogo()
Set the mask
Enable the mask
SetupMask()
E
.
Set the encode format for master channel
:
SetEncoderPictureFormat()
Set the stream type for master channel
:
SetStreamType()
Set the image quality
:
SetDefaultQuant()
Set the structon for encode and frame rate:
SetIBPMode()
Set the max bit rate
:
SetupBitrateControl()
Set the mode for stream
:
SetBitrateControlMode()
Set the parameter for the video as luminance, saturation, contrast,
:
SetVideoPara()
F
.
Motion detection mode 1
Set the precision for the detect
:
AdjustMotionDetectPrecision()
Set the area and amount
:
SetupMotionDetection()
Start motion detect
:
StartMotionDetection()
Analyzer
:
MotionAnalyzer()
G
.
Motion detection mode 2
Set motion detection
:
SetupMotionDetectionEx()