我正在开发一个需要不间断输入不变图像的应用程序,因此我设置了一个预览图来不断捕获图像并对其进行配置,以便可以手动调整每个控件。
但是,只有这个参数使我无法进行控制,而它是颜色校正功能。 我正在使用TEMPLATE_STILL_CAPTURE并按如下所示设置控件:
captureRequest.set(CaptureRequest.CONTROL_AF_MODE, CameraMetadata.CONTROL_AF_MODE_OFF);
captureRequest.set(CaptureRequest.CONTROL_AF_TRIGGER, CameraMetadata.CONTROL_AF_TRIGGER_CANCEL);
captureRequest.set(CaptureRequest.CONTROL_AWB_LOCK, true);
captureRequest.set(CaptureRequest.CONTROL_AWB_MODE, CameraMetadata.CONTROL_AWB_MODE_OFF);
captureRequest.set(CaptureRequest.CONTROL_AE_LOCK, true);
captureRequest.set(CaptureRequest.CONTROL_AE_MODE, CameraMetadata.CONTROL_AE_MODE_OFF);
captureRequest.set(CaptureRequest.LENS_FOCUS_DISTANCE, numFocus);
captureRequest.set(CaptureRequest.NOISE_REDUCTION_MODE, CameraMetadata.NOISE_REDUCTION_MODE_FAST);
captureRequest.set(CaptureRequest.SENSOR_EXPOSURE_TIME, exposure);
captureRequest.set(CaptureRequest.SENSOR_SENSITIVITY, sensitivity);
captureRequest.set(CaptureRequest.TONEMAP_MODE, CameraMetadata.TONEMAP_MODE_CONTRAST_CURVE);
captureRequest.set(CaptureRequest.TONEMAP_CURVE, tcurve);
captureRequest.set(CaptureRequest.COLOR_CORRECTION_MODE, CameraMetadata.COLOR_CORRECTION_MODE_TRANSFORM_MATRIX);
captureRequest.set(CaptureRequest.COLOR_CORRECTION_TRANSFORM, colorTransform);
captureRequest.set(CaptureRequest.COLOR_CORRECTION_GAINS, rggb);
稍后在CaptureCallback上,当我比较请求和结果时,我发现在结果上,COLOR_CORRECTION_MODE已更改为COLOR_CORRECTION_MODE_FAST。 我在这里想念什么吗?
我使用的是Samsung Galaxy Tab A (SM-T580),因此它可能根本不支持它,但我想确认我不是在做错什么。