?? hikserver32.pas
字號:
{-------------------------------------------------------------------------------
過程名: Get_Video_Para
功 能: 獲取視頻參數
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte; var P_Ld, P_Dbd, P_Bhd, P_Sd: Byte
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Get_Video_Para
(
Channels_Index: Byte; //通道索引號
var P_Ld, P_Dbd, P_Bhd, P_Sd: Byte //返回通道號,亮度,對比度,飽和度,色度
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Set_Video_Para
功 能: 設置視頻參數
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte; P_Ld, P_Dbd, P_Bhd, P_Sd: Byte
返回值: Integer
備 注: 亮度值(0—255)對比度(0—127)飽和度(0—127)色調(0—255)
-------------------------------------------------------------------------------}
function Set_Video_Para
(
Channels_Index: Byte; //通道索引號
P_Ld, P_Dbd, P_Bhd, P_Sd: Byte //指定的亮度,對比度,飽和度,色度值
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Set_Video_NoColor
功 能: 快速黑白、彩色圖像切換
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte; IsNoColor: Boolean = True
返回值: Integer
備 注: 無須設置視頻參數,調用后直接在黑白彩色圖像間轉換
-------------------------------------------------------------------------------}
function Set_Video_NoColor
(
Channels_Index: Byte; //通道索引號
IsNoColor: Boolean = True //默認轉換成黑白圖像
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Reset_Video_Para
功 能: 復位視頻圖像的標準參數
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte
返回值: Integer
備 注: 快速切換成默認的標準視頻值
-------------------------------------------------------------------------------}
function Reset_Video_Para
(
Channels_Index: Byte //通道索引號
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Set_Screen_Black
功 能: 讓指定的通道視頻變成全黑
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte
返回值: Integer
備 注: 不同于無視頻信號,調用后錄像視頻也變成黑色
-------------------------------------------------------------------------------}
function Set_Screen_Black
(
Channels_Index: Byte //通道索引號
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Set_Screen_White
功 能: 讓指定的通道視頻變成全白
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte
返回值: Integer
備 注: 調用后錄像視頻也變成白色
-------------------------------------------------------------------------------}
function Set_Screen_White
(
Channels_Index: Byte //通道索引號
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Set_Screen_Para
功 能: 調整屏幕分辨率
開 發: SelonSoft
日 期: 2007.07.01
參 數: X, Y: Word; Frequency: Byte = 60
返回值: Boolean
備 注: 針對個別品牌的LCD不能顯示60HZ以上的刷新率設計
-------------------------------------------------------------------------------}
function Set_Screen_Para
(
X, Y: Word; //分辨率寬高比例值
Frequency: Byte = 60 //屏幕刷新率,默認60HZ
): Boolean; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Start_Video_FullScreen
功 能: 全屏顯示視頻圖像
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte; AutoCircuit: Byte = 0
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Start_Video_FullScreen
(
Channels_Index: Byte; //通道索引號
AutoCircuit: Byte = 0 //全屏狀態下是否自動巡回顯示各通道監控畫面,默認不自動切換
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Set_EncoderPicture_Format
功 能: 設置編碼分辨率格式
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte; PictureFormat: PictureFormat_t
返回值: Integer
備 注: 設置主通道的編碼格式,編碼分辨率可以在錄像的時候動態更改,而不必停止錄像
-------------------------------------------------------------------------------}
function Set_EncoderPicture_Format
(
Channels_Index: Byte; //通道索引號
PictureFormat: PictureFormat_t //編碼圖象大小:4CIF、2CIF、DCIF、CIF 、QCIF
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Get_Frames_Statistics
功 能: 獲取幀統計信息
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte; var frame_Statistic: PFRAMES_STATISTICS
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Get_Frames_Statistics
(
Channels_Index: Byte; //通道索引號
var frame_Statistic: PFRAMES_STATISTICS //返回幀統計信息
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Restore_Overlay
功 能: 恢復 OVERLAY表面
開 發: SelonSoft
日 期: 2007.07.01
參 數:
返回值: Integer
備 注: 當系統按下 CTRL+ALT+DEL 時系統的 OVERLAY 表面會被強制關閉,調用該函數時可以恢復 OVERLAY表面
-------------------------------------------------------------------------------}
function Restore_Overlay(): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Set_WatchDog
功 能: 設置看門狗
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte; IsWatch: Boolean = False
返回值: Integer
備 注: 可以實現對上層軟件和系統中所有壓縮板卡的運行狀態監控
-------------------------------------------------------------------------------}
function Set_WatchDog
(
Channels_Index: Byte; //通道索引號
IsWatch: Boolean = False //是否打開看門狗
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Start_Video_Mask
功 能: 開始屏幕遮擋
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte; T_Left, T_Top, T_Right, T_Bottom: Integer
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Start_Video_Mask
(
Channels_Index: Byte; //通道索引號
T_Left, T_Top, T_Right, T_Bottom: Integer //遮擋區域座標:左,上,右,下
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Stop_Video_Mask
功 能: 停止屏幕遮擋
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Stop_Video_Mask
(
Channels_Index: Byte //通道索引號
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Start_Motion_Detection
功 能: 開始對視頻畫面的移動偵測
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte; T_Left: Integer = 0; T_Top: Integer = 0; T_Right: Integer = 703; T_Bottom: Integer = 575; DetectPrec: Byte = 2; IsAlarmFile: Boolean = False; framesBeforeAlarm: ULong = 100; AlarmFilename: string = 'AlarmFile'
返回值: Integer
備 注: 移動偵測靈敏度默認值為2,等級 0 最靈敏,6 最遲鈍;推薦值為 2;
-------------------------------------------------------------------------------}
function Start_Motion_Detection
(
Channels_Index: Byte; //通道索引號
T_Left: Integer = 0; //左
T_Top: Integer = 0; //上
T_Right: Integer = 703; //右
T_Bottom: Integer = 575; //下
DetectPrec: Byte = 2; //移動偵測度
IsAlarmFile: Boolean = False; //是否預錄像(暫無效)
framesBeforeAlarm: ULong = 100; //警前幀數,默認預錄前100幀起(暫無效)
AlarmFilename: string = 'AlarmFile' //預錄文件名(暫無效)
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Stop_Motion_Detection
功 能: 停止對視頻畫面的移動偵測
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Stop_Motion_Detection
(
Channels_Index: Byte //通道索引號
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Start_Audio_Warnning
功 能: 啟動音頻丟失報警
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte
返回值: Integer
備 注: SDK2內部采用多線程方式,效率高,可迅速作出反應
-------------------------------------------------------------------------------}
function Start_Audio_Warnning
(
Channels_Index: Byte; //通道索引號
MuteLimit: Byte = 20; //音頻強度下限(用于檢測音頻丟失報警用 1-255)
PlaySound: Boolean = False //是否啟動聲音報警,默認不啟動
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Stop_Audio_Warnning
功 能: 停止音頻丟失報警
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte = 0
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Stop_Audio_Warnning
(
Channels_Index: Byte = 0 //通道索引號
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Start_Video_Warnning
功 能: 啟動視頻丟失報警
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte
返回值: Integer
備 注: SDK2內部采用多線程方式,效率高,可迅速作出反應
-------------------------------------------------------------------------------}
function Start_Video_Warnning
(
Channels_Index: Byte; //通道索引號
PlaySound: Boolean = False //是否啟動聲音報警,默認不啟動
): Integer; stdcall; external HikRunSDK;
{-------------------------------------------------------------------------------
過程名: Stop_Video_Warnning
功 能: 停止視頻丟失報警
開 發: SelonSoft
日 期: 2007.07.01
參 數: Channels_Index: Byte = 0
返回值: Integer
備 注:
-------------------------------------------------------------------------------}
function Stop_Video_Warnning
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -