新增 Mjpegplayer 用来播放 Web 流

This commit is contained in:
2026-01-21 19:03:59 +08:00
parent f79cb6e74d
commit c438edfa0d
71 changed files with 4538 additions and 452 deletions

View File

@@ -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);
}