I'm using a Samsung Galaxy Tab A 2016 (SM-T580), so it is possible that it simply doesn't support it, but I'd rather confirm I'm not just doing something wrong. Stopping preview with stopPreview(), or triggering still image capture with takePicture(Camera.ShutterCallback, Camera.PictureCallback, Camera.PictureCallback), will not change the the lock. Later on the CaptureCallback, when I compare the request and the result, I found that on the result, the COLOR_CORRECTION_MODE has changed to COLOR_CORRECTION_MODE_FAST. If auto-white balance is already locked, setting this to true again has no effect (the driver will not recalculate white balance values). I'm using the TEMPLATE_STILL_CAPTURE and setting the controls as follows: t(CaptureRequest.CONTROL_AF_MODE, CameraMetadata.CONTROL_AF_MODE_OFF) Ĭt(CaptureRequest.CONTROL_AF_TRIGGER, CameraMetadata.CONTROL_AF_TRIGGER_CANCEL) Ĭt(CaptureRequest.CONTROL_AWB_LOCK, true) Ĭt(CaptureRequest.CONTROL_AWB_MODE, CameraMetadata.CONTROL_AWB_MODE_OFF) Ĭt(CaptureRequest.CONTROL_AE_LOCK, true) Ĭt(CaptureRequest.CONTROL_AE_MODE, CameraMetadata.CONTROL_AE_MODE_OFF) Ĭt(CaptureRequest.LENS_FOCUS_DISTANCE, numFocus) Ĭt(CaptureRequest.NOISE_REDUCTION_MODE, CameraMetadata.NOISE_REDUCTION_MODE_FAST) Ĭt(CaptureRequest.SENSOR_EXPOSURE_TIME, exposure) Ĭt(CaptureRequest.SENSOR_SENSITIVITY, sensitivity) Ĭt(CaptureRequest.TONEMAP_MODE, CameraMetadata.TONEMAP_MODE_CONTRAST_CURVE) Ĭt(CaptureRequest.TONEMAP_CURVE, tcurve) Ĭt(CaptureRequest.COLOR_CORRECTION_MODE, CameraMetadata.COLOR_CORRECTION_MODE_TRANSFORM_MATRIX) Ĭt(CaptureRequest.COLOR_CORRECTION_TRANSFORM, colorTransform) Ĭt(CaptureRequest.COLOR_CORRECTION_GAINS, rggb) Calling the activity directly from another App Reading the disassembled smali code to retrieve the password Modifying the code using smali to always jump into the codeblock Solutions available to solve these problems: Obscure your code (Worst option, but might be enough in most cases) Comparing the Hashed Password: Much more secure. However, there's just this parameter that's escaping my control and it's the color correcting features. ![]() I'm developing an app that needs a constant input of unaltered images, so I setup a preview surface to capture images constantly and configured it so I can manually adjust every control.
0 Comments
Leave a Reply. |