?? hikserver32.pas
字號:
(
Channels_Index: Byte;
PictureFormat: LongWord = 4; //主通道圖像分辨率
SubPictureFormat: LongWord = 4; //子通道圖像分辨率
StreamType: DWORD = 3; //主通道編碼類型
SubStreamType: DWORD = 3; //子通道編碼類型
IQuantVal: Byte = 12; //I幀量化系數(shù)
BQuantVal: Byte = 12; //B幀量化系數(shù)
PQuantVal: Byte = 15; //P幀量化系數(shù)
KeyFrameIntervals: Word = 100; //關(guān)鍵幀間隔
BFrames: Byte = 2; //B幀數(shù)(默認值為 2)
PFrames: Byte = 1; //P幀數(shù)
FFrames: Byte = 25 //F幀數(shù)
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Load_Board
功 能: 初始化采集卡
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù): ApplicationHwnd, MainwindowHwnd: THandle; DSP_Div: Byte = 1; IsAutoLoadServer: Boolean = True; Port_Server: Word = 5050; Port_Client: Word = 6050
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Load_Board
(
ApplicationHwnd, MainwindowHwnd: THandle; //進程句柄,主窗體句柄
DSP_Div: Byte = 1; //通道被除數(shù)
IsAutoLoadServer: Boolean = True; //是否自動加載視頻服務(wù)
Port_Server: Word = 5050; //服務(wù)端口
Port_Client: Word = 6050 //客戶端口
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Load_BoardEx
功 能: 擴展函數(shù):初始化采集卡
開 發(fā): SelonSoft
日 期: 2007.12.18
參 數(shù): ApplicationHwnd, MainwindowHwnd: THandle; DSP_Div: Byte = 1; IsAutoLoadServer: Boolean = True; Port_Server: Word = 5050; Port_Client: Word = 6050
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Load_BoardEx
(
ApplicationHwnd, MainwindowHwnd: THandle; //進程句柄,主窗體句柄
DSP_Div: Byte = 1; //通道被除數(shù)
IsAutoLoadServer: Boolean = True; //是否自動加載視頻服務(wù)
Port_Server: Word = 5050; //服務(wù)端口
Port_Client: Word = 6050; //客戶端口
PictureFormat: LongWord = 4; //主通道圖像分辨率
SubPictureFormat: LongWord = 4; //子通道圖像分辨率
StreamType: DWORD = 3; //主通道編碼類型
SubStreamType: DWORD = 3; //子通道編碼類型
IQuantVal: Byte = 12; //I幀量化系數(shù)
BQuantVal: Byte = 12; //B幀量化系數(shù)
PQuantVal: Byte = 15; //P幀量化系數(shù)
KeyFrameIntervals: Word = 100; //關(guān)鍵幀間隔
BFrames: Byte = 2; //B幀數(shù)(默認值為 2)
PFrames: Byte = 1; //P幀數(shù)
FFrames: Byte = 25 //F幀數(shù)
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: UnLoad_Board
功 能: 卸載采集卡
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù):
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function UnLoad_Board(): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Get_Board_Info
功 能: 獲取板卡序列號等信息
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù): Channel_Indexs: Byte = 1
返回值: TBoard_Info
備 注: 通道號-決定板卡序列號的不同
-------------------------------------------------------------------------------}
function Get_Board_Info
(
Channel_Indexs: Byte = 1 //通道索引號,默認取第一塊DSP信息
): TBoard_Info; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Load_Net_Server
功 能: 啟動網(wǎng)絡(luò)服務(wù)
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù): Port_Server: Word = 5050; Port_Client: Word = 6050
返回值: Integer
備 注: 若初始化板卡時選擇自動加載服務(wù)(IsAutoLoadServer:= True)則無需調(diào)用該過程,重復(fù)調(diào)用無效
-------------------------------------------------------------------------------}
function Load_Net_Server(
Port_Server: Word = 5050; //服務(wù)端口
Port_Client: Word = 6050 //客戶端口
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: UnLoad_Net_Server
功 能: 停止網(wǎng)絡(luò)服務(wù)
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù):
返回值: Boolean
備 注:
-------------------------------------------------------------------------------}
function UnLoad_Net_Server(): Boolean; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Start_Video_Preview
功 能: 啟動視頻預(yù)覽
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù): Channels_Index: Byte; Preview_Handle: THandle; Preview_Rect: TRect; IsOverlayMode: Boolean = False
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Start_Video_Preview
(
Channels_Index: Byte; //通道索引號
Preview_Handle: THandle; //預(yù)覽控件句柄
Preview_Rect: TRect; //預(yù)覽區(qū)域(如指定預(yù)覽控件的clientRect)
IsOverlayMode: Boolean = False; //默認不采用OverlayMode顯示圖像
OverlayColorR: Byte = 10; //Overlay關(guān)鍵色R值
OverlayColorG: Byte = 10; //Overlay關(guān)鍵色G值
OverlayColorB: Byte = 10 //Overlay關(guān)鍵色B值
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Stop_Video_Preview
功 能: 停止視頻預(yù)覽
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù): Channels_Index: Byte; Is_StopAll: Boolean = False
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Stop_Video_Preview
(
Channels_Index: Byte; //通道索引號
Is_StopAll: Boolean = False //是否停止所有通道的預(yù)覽,默認只停止指定通道預(yù)覽
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Start_Video_Capture
功 能: 開始生成錄像文件
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù): Channels_Index: Byte; Filename: WideString = ''; StopMinute: Word = 0; AutoSize: Word = 600
返回值: Integer
備 注: 錄像文件名可指定,也可以保留為空,則SDK2會自動生成固定格式的文件名
自動停止錄像時間:優(yōu)先權(quán)低,自動錄像大?。簝?yōu)先權(quán)高
-------------------------------------------------------------------------------}
function Start_Video_Capture
(
Channels_Index: Byte; //通道索引號
Filename: WideString = ''; //生成的錄像文件名(不指定則自動命名)
StopMinute: Word = 0; //自動停止錄像的時間,為0表示不會自動停止
AutoSize: Word = 600 //自動分割錄像文件的大小,默認每600M自動生成一個新文件
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Stop_Video_Capture
功 能: 停止生成錄像文件
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù): Channels_Index: Byte
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Stop_Video_Capture
(
Channels_Index: Byte //通道索引號
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Start_Audio_Preview
功 能: 開始在指定通道上監(jiān)聽聲音
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù): Channels_Index: Byte
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Start_Audio_Preview
(
Channels_Index: Byte //通道索引號
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Stop_Audio_Preview
功 能: 停止在指定通道上監(jiān)聽聲音
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù): Channels_Index: Byte; Is_StopAll: Boolean = False
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Stop_Audio_Preview
(
Channels_Index: Byte; //通道索引號
Is_StopAll: Boolean = False //默認只停止指定通道的聲音
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Start_Image_Capture
功 能: 視頻截圖
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù): Channels_Index: Byte; Filename: string = ''; IsJpeg: Boolean = False; JpegQuality: Byte = 100
返回值: Integer
備 注: JPEG 圖片質(zhì)量:1 到 100,1 最差,100 最好
-------------------------------------------------------------------------------}
function Start_Image_Capture
(
Channels_Index: Byte; //通道索引號
Filename: string = ''; //保存截圖名稱(不指定則自動命名)
IsJpeg: Boolean = False; //默認保存成位圖BMP格式
JpegQuality: Byte = 100 //JPEG壓縮率,該值越大,壓縮率越低,畫質(zhì)越接近BMP
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Start_Video_OSD
功 能: 在指定通道視頻上顯示OSD
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù): Channels_Index: Byte; F_x, F_y: Integer; F_Text: PChar; T_x, T_y: Integer; T_Text: PChar; IsColorReversal: Boolean = True; Brightness: Byte = 255; IsDataTime: Boolean = False
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Start_Video_OSD
(
Channels_Index: Byte; //通道索引號
F_x, F_y: Integer; //第一行文字座標
F_Text: PChar; //第一行文字內(nèi)容
T_x, T_y: Integer; //第二行文字座標
T_Text: PChar; //第二行文字內(nèi)容
IsColorReversal: Boolean = True; //是否根據(jù)畫面自動翻轉(zhuǎn)OSD文字顏色
Brightness: Byte = 255; //OSD文字亮度 255最亮 0最暗
IsDataTime: Boolean = False //是否顯示時間(優(yōu)先權(quán)高)
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Stop_Video_OSD
功 能: 禁止顯示指定通道上的OSD
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù): Channels_Index: Byte
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Stop_Video_OSD
(
Channels_Index: Byte //通道索引號
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Start_Video_Logo
功 能: 在指定通道上顯示LOGO圖片
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù): Channels_Index: Byte; Logo_x, Logo_y: Integer; Filename: string; IsTranslucent: Boolean = False; Color_R: Byte = 255; Color_G: Byte = 255; Color_B: Byte = 255
返回值: Integer
備 注: LOGO圖片大小128*128像素,支持JPEG和BMP及ICO格式顯示,根據(jù)文件名自動轉(zhuǎn)換
通過設(shè)置最后三個參數(shù)的透明色值可實現(xiàn)原始圖像對透明色的穿透
-------------------------------------------------------------------------------}
function Start_Video_Logo
(
Channels_Index: Byte; //通道索引號
Logo_x, Logo_y: Integer; //LOGO顯示座標
Filename: string; //LOGO圖片文件名
IsTranslucent: Boolean = False; //默認不進行圖片的透明處理(原始圖像不穿透LOGO)
Color_R: Byte = 255; //透明色值(RGB) 紅值
Color_G: Byte = 255; //透明色值(RGB) 綠值
Color_B: Byte = 255 //透明色值(RGB) 藍值
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Stop_Video_Logo
功 能: 禁止在指定通道上顯示LOGO圖片
開 發(fā): SelonSoft
日 期: 2007.07.01
參 數(shù): Channels_Index: Byte
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Stop_Video_Logo
(
Channels_Index: Byte //通道索引號
): Integer; stdcall; external HikRunSDK;
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -