针对界面显示的优化

This commit is contained in:
2025-12-27 14:16:50 +08:00
parent 127b07343e
commit 3718465463
14 changed files with 495 additions and 128 deletions

View File

@@ -0,0 +1,29 @@
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();
}
}