LowlightEnhanceOptions
暗光增强选项。
Java
public class LowLightEnhanceOptions {
public static final int LOW_LIGHT_ENHANCE_AUTO = 0;
public static final int LOW_LIGHT_ENHANCE_MANUAL = 1;
public static final int LOW_LIGHT_ENHANCE_LEVEL_HIGH_QUALITY = 0;
public static final int LOW_LIGHT_ENHANCE_LEVEL_FAST = 1;
public int lowlightEnhanceMode;
public int lowlightEnhanceLevel;
public LowLightEnhanceOptions() {
lowlightEnhanceMode = LOW_LIGHT_ENHANCE_AUTO;
lowlightEnhanceLevel = LOW_LIGHT_ENHANCE_LEVEL_HIGH_QUALITY;
}
public LowLightEnhanceOptions(int mode, int level) {
lowlightEnhanceMode = mode;
lowlightEnhanceLevel = level;
}
}
level
暗光增强等级。
- LOW_LIGHT_ENHANCE_LEVEL_HIGH_QUALITY(0):(默认)优先画质的暗光增强,会处理视频图像的亮度、细节、噪声,消耗的性能适中,处理速度适中,综合画质最优。
- LOW_LIGHT_ENHANCE_LEVEL_FAST(1):优先性能的暗光增强,会处理视频图像的亮度、细节,消耗的性能较少,处理速度较快。
mode
暗光增强模式。
- LOW_LIGHT_ENHANCE_AUTO(0):(默认)自动模式。SDK 会根据环境光亮度自动开启或关闭暗光增强功能,以适时补光和防止过曝。
- LOW_LIGHT_ENHANCE_MANUAL(1):手动模式。用户需手动开启或关闭暗光增强功能。