Camera2: Add 3A maxRegions tag to legacy device

Change-Id: I8ab4164a7f4c6f210b000cb623cbc686e0e79a35
This commit is contained in:
Yin-Chia Yeh
2014-06-25 15:37:24 -07:00
committed by Igor Murashkin
parent 7ecb42fb65
commit 0cd62d65dc

View File

@@ -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
}