添加项目文件。

This commit is contained in:
ldh
2026-11-13 09:51:38 +08:00
parent 35573a85eb
commit abb5d5d32f
123 changed files with 9453 additions and 0 deletions
@@ -0,0 +1,24 @@
namespace HardwareControl.Core.UsbCamera
{
/// <summary>
/// Usb相机操作类
/// </summary>
public class UsbCameraOptions
{
// 设备名称关键词,null 表示取第一个设备
public string? DeviceNameKeyword { get; set; }
// 优先使用的格式关键词,例如 "MJPG" 或 "640x480"
// 为 null 时取该设备的第一个格式
public string? PreferredFormatKeyword { get; set; }
// 重连基础间隔,单位毫秒
public int ReconnectBaseDelayMs { get; set; } = 1000;
// 重连最大间隔,单位毫秒
public int ReconnectMaxDelayMs { get; set; } = 10_000;
// 抓帧超时,单位毫秒
public int FrameTimeoutMs { get; set; } = 5000;
}
}