DeepuGeorgeJacob / CmrXTutorial

Mastering CameraX in Jetpack Compose: A Comprehensive Guide for Android Developers
2 stars 0 forks source link

Manual Shutter and Iso and other parameters #1

Open Akshar062 opened 4 months ago

Akshar062 commented 4 months ago

Can we change value like shutter, iso and white balance

DeepuGeorgeJacob commented 4 months ago

@Akshar062, could you please elaborate more on your requirement so that I can look into it?

Akshar062 commented 4 months ago

i want to control Shutter Speed and iso like we do in camera2-api using also if possible i also want to control white balance

        captureBuilder.set(CaptureRequest.CONTROL_MODE, CameraMetadata.CONTROL_MODE_OFF);
        captureBuilder.set(CaptureRequest.CONTROL_AE_MODE, CameraMetadata.CONTROL_AE_MODE_OFF);
        // set shutter value
        long nanoseconds = (long) (shutter * 1_000_000_000L);
        captureBuilder.set(CaptureRequest.SENSOR_EXPOSURE_TIME, nanoseconds);
        // set iso value
        captureBuilder.set(CaptureRequest.SENSOR_SENSITIVITY, iso);
        captureBuilder.set(CaptureRequest.CONTROL_AWB_MODE, whiteBalance);