新增 Mjpegplayer 用来播放 Web 流
This commit is contained in:
@@ -49,4 +49,25 @@ public static class DahuaPlaySDK
|
||||
|
||||
[DllImport(DLL_PATH)]
|
||||
public static extern bool PLAY_SetStreamOpenMode(int nPort, uint nMode);
|
||||
|
||||
// 解码模式枚举
|
||||
public enum DecodeType
|
||||
{
|
||||
DECODE_SW = 1, // 软解 (CPU)
|
||||
DECODE_HW = 2, // 硬解拷贝模式 (GPU解码后拷贝回内存)
|
||||
DECODE_HW_FAST = 3, // 硬解直接显示模式 (GPU解码直接渲染,最高性能)
|
||||
DECODE_HW_NV_CUDA = 7, // 英伟达显卡 CUDA 硬解 (Ayay 推荐,多路并发最强)
|
||||
DECODE_HW_D3D11 = 8 // D3D11 硬解
|
||||
}
|
||||
|
||||
// 渲染模式枚举
|
||||
public enum RenderType
|
||||
{
|
||||
RENDER_GDI = 1,
|
||||
RENDER_D3D9 = 4,
|
||||
RENDER_D3D11 = 7
|
||||
}
|
||||
|
||||
[DllImport(DLL_PATH, EntryPoint = "PLAY_SetEngine")]
|
||||
public static extern bool PLAY_SetEngine(int nPort, DecodeType decodeType, RenderType renderType);
|
||||
}
|
||||
Reference in New Issue
Block a user