Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cd62d65 authored by Yin-Chia Yeh's avatar Yin-Chia Yeh Committed by Igor Murashkin
Browse files

Camera2: Add 3A maxRegions tag to legacy device

Change-Id: I8ab4164a7f4c6f210b000cb623cbc686e0e79a35
parent 7ecb42fb
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -346,6 +346,14 @@ public class LegacyMetadataMapper {
    }

    private static void mapControlOther(CameraMetadataNative m, Camera.Parameters p) {
        /*
         * android.control.maxRegions
         */
        int[] maxRegions = new int[3];
        maxRegions[0] = p.getMaxNumMeteringAreas();
        maxRegions[1] = 0; // AWB regions not supported in API1
        maxRegions[2] = p.getMaxNumFocusAreas();
        m.set(CONTROL_MAX_REGIONS, maxRegions);
        // TODO
    }