29 lines
988 B
C#
29 lines
988 B
C#
|
|
namespace SHH.CameraSdk
|
|||
|
|
{
|
|||
|
|
public class ProcessingOptions
|
|||
|
|
{
|
|||
|
|
// --- 缩放控制 ---
|
|||
|
|
|
|||
|
|
/// <summary> 是否允许缩小 (默认 True: 节约性能与带宽) </summary>
|
|||
|
|
public bool EnableShrink { get; set; } = true;
|
|||
|
|
|
|||
|
|
/// <summary> 是否允许放大 (默认 False: 防止性能浪费与失真) </summary>
|
|||
|
|
public bool EnableExpand { get; set; } = false;
|
|||
|
|
|
|||
|
|
/// <summary> 目标宽度 </summary>
|
|||
|
|
public int TargetWidth { get; set; } = 640;
|
|||
|
|
|
|||
|
|
/// <summary> 目标高度 </summary>
|
|||
|
|
public int TargetHeight { get; set; } = 360;
|
|||
|
|
|
|||
|
|
// --- 增亮控制 ---
|
|||
|
|
|
|||
|
|
/// <summary> 是否启用图像增强 </summary>
|
|||
|
|
public bool EnableEnhance { get; set; } = false; // 默认关闭,按需开启
|
|||
|
|
|
|||
|
|
/// <summary> 增亮强度 (0-100, 默认30) </summary>
|
|||
|
|
public double BrightnessLevel { get; set; } = 30.0;
|
|||
|
|
|
|||
|
|
public static ProcessingOptions Default => new ProcessingOptions();
|
|||
|
|
}
|
|||
|
|
}
|