discord-jadx/app/src/main/java/c/o/a/n/r/j.java
2021-06-27 22:44:35 +02:00

32 lines
1 KiB
Java

package c.o.a.n.r;
import android.hardware.camera2.CameraCharacteristics;
import android.hardware.camera2.CaptureRequest;
import android.hardware.camera2.params.MeteringRectangle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import c.o.a.b;
import c.o.a.n.d;
import c.o.a.n.o.c;
/* compiled from: WhiteBalanceReset */
@RequiresApi(21)
public class j extends b {
public static final b f = new b(j.class.getSimpleName());
public j() {
super(true);
}
@Override // c.o.a.n.r.b
public void m(@NonNull c cVar, @Nullable MeteringRectangle meteringRectangle) {
f.a(2, "onStarted:", "with area:", meteringRectangle);
int intValue = ((Integer) k(CameraCharacteristics.CONTROL_MAX_REGIONS_AWB, 0)).intValue();
if (meteringRectangle != null && intValue > 0) {
((d) cVar).f1482h0.set(CaptureRequest.CONTROL_AWB_REGIONS, new MeteringRectangle[]{meteringRectangle});
((d) cVar).k1();
}
l(Integer.MAX_VALUE);
}
}