package com.mediatek.extservice;

import android.os.Parcel;
import android.os.Parcelable;

/* JADX INFO: loaded from: classes.dex */
public enum CapturePoint implements Parcelable {
    SRCCAP(0),
    VDEC(1),
    PQ_START(2),
    PQ_HDR(3),
    PQ_SHARPNESS(4),
    PQ_SCALING(5),
    PQ_CHROMA_COMP(6),
    PQ_CHROMA_BOOST(7),
    PQ_COLOR_MANAGER(8),
    ALL_VIDEO(9),
    ALL_VIDEO_WITH_OSD(10),
    STREAM_POST(11),
    ALL_OSD(12);

    public static final Parcelable.Creator<CapturePoint> CREATOR = new Parcelable.Creator<CapturePoint>() { // from class: com.mediatek.extservice.CapturePoint.1
        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public CapturePoint createFromParcel(Parcel parcel) {
            return CapturePoint.values()[parcel.readInt()];
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public CapturePoint[] newArray(int i2) {
            return new CapturePoint[i2];
        }
    };
    private int mValue;

    CapturePoint(int i2) {
        this.mValue = i2;
    }

    public static boolean IsVaildCapturePoint(CapturePoint capturePoint) {
        return capturePoint == SRCCAP || capturePoint == VDEC || capturePoint == PQ_START || capturePoint == PQ_HDR || capturePoint == PQ_SHARPNESS || capturePoint == PQ_SCALING || capturePoint == PQ_CHROMA_COMP || capturePoint == PQ_CHROMA_BOOST || capturePoint == PQ_COLOR_MANAGER || capturePoint == ALL_VIDEO || capturePoint == ALL_VIDEO_WITH_OSD || capturePoint == STREAM_POST || capturePoint == ALL_OSD;
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    public int getValue() {
        return this.mValue;
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i2) {
        parcel.writeInt(ordinal());
    }
}
