package com.unity3d.player;

import android.hardware.Camera;
import com.flurry.android.AdCreative;
import java.util.ArrayList;
import java.util.List;

/* loaded from: /storage/emulated/0/Documents/jadec/sources/com.UBI.A90.WW/dex-files/2.dex */
public final class f {
    public static int a(int i) {
        return 12;
    }

    public static List a(Camera.Parameters parameters) {
        ArrayList arrayList = new ArrayList();
        List<Integer> supportedPreviewFrameRates = parameters.getSupportedPreviewFrameRates();
        if (supportedPreviewFrameRates != null) {
            for (Integer num : supportedPreviewFrameRates) {
                int intValue = num.intValue();
                arrayList.add(new int[]{intValue * 1000, intValue * 1000});
            }
        }
        return arrayList;
    }

    public static void a(Camera.Parameters parameters, int[] iArr) {
        parameters.setPreviewFrameRate(iArr[0] / 1000);
    }

    public static void a(Camera camera) {
        camera.setPreviewCallback(null);
    }

    public static void a(Camera camera, Camera.PreviewCallback previewCallback) {
        camera.setPreviewCallback(previewCallback);
    }

    public static void b(Camera.Parameters parameters) {
        if (parameters.getSupportedColorEffects() != null) {
            parameters.setColorEffect(AdCreative.kFixNone);
        }
    }
}
