namespace SHH.CameraSdk
{
public class ProcessingOptions
{
// ==========================================
// 1. 尺寸控制参数
// ==========================================
/// 目标宽度
public int TargetWidth { get; set; } = 1280;
/// 目标高度
public int TargetHeight { get; set; } = 720;
/// 仅允许缩小 (如果原图比目标大,则缩放;否则不处理)
public bool EnableShrink { get; set; } = true;
/// 仅允许放大 (如果原图比目标小,则缩放;否则不处理)
public bool EnableExpand { get; set; } = false;
// ==========================================
// 2. 画质增强参数
// ==========================================
/// 是否启用图像增亮
public bool EnableBrightness { get; set; } = false;
/// 增亮百分比 (建议范围 0-100,对应增加的像素亮度值)
public int Brightness { get; set; } = 0;
// 默认实例
[JsonIgnore]
public static ProcessingOptions Default => new ProcessingOptions();
}
}