package com.mediatek.extservice;

import a.b.c.a.a;
import android.graphics.Rect;
import android.os.Parcel;
import android.os.Parcelable;

/* JADX INFO: loaded from: classes.dex */
public final class CaptureSetQueryInfo implements Parcelable {
    public static final Parcelable.Creator<CaptureSetQueryInfo> CREATOR = new Parcelable.Creator<CaptureSetQueryInfo>() { // from class: com.mediatek.extservice.CaptureSetQueryInfo.1
        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public CaptureSetQueryInfo createFromParcel(Parcel parcel) {
            return new CaptureSetQueryInfo(parcel);
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public CaptureSetQueryInfo[] newArray(int i2) {
            return new CaptureSetQueryInfo[i2];
        }
    };
    private Rect mCropRect;
    private CaptureFormat mDstFormat;
    private int mDstHeight;
    private int mDstRotateAngle;
    private int mDstWidth;
    private boolean mIsDram2Dram;
    private CaptureFormat mSrcFormat;
    private int mSrcHeight;
    private int mSrcWidth;

    public CaptureSetQueryInfo() {
        this.mSrcWidth = 0;
        this.mSrcHeight = 0;
        this.mDstWidth = 0;
        this.mDstHeight = 0;
        this.mDstRotateAngle = 0;
        CaptureFormat captureFormat = CaptureFormat.YUV422;
        this.mSrcFormat = captureFormat;
        this.mDstFormat = captureFormat;
        this.mCropRect = null;
        this.mIsDram2Dram = true;
    }

    public CaptureSetQueryInfo(int i2, int i3, CaptureFormat captureFormat, int i4, int i5, int i6, CaptureFormat captureFormat2) {
        this(i2, i3, captureFormat, i4, i5, i6, captureFormat2, null);
    }

    public CaptureSetQueryInfo(int i2, int i3, CaptureFormat captureFormat, int i4, int i5, int i6, CaptureFormat captureFormat2, Rect rect) {
        this.mSrcWidth = 0;
        this.mSrcHeight = 0;
        this.mDstWidth = 0;
        this.mDstHeight = 0;
        this.mDstRotateAngle = 0;
        CaptureFormat captureFormat3 = CaptureFormat.YUV422;
        this.mSrcFormat = captureFormat3;
        this.mDstFormat = captureFormat3;
        this.mCropRect = null;
        this.mIsDram2Dram = true;
        this.mSrcWidth = i2;
        this.mSrcHeight = i3;
        this.mSrcFormat = captureFormat;
        this.mDstWidth = i4;
        this.mDstHeight = i5;
        this.mDstRotateAngle = i6;
        this.mDstFormat = captureFormat2;
        this.mCropRect = rect;
    }

    public CaptureSetQueryInfo(int i2, int i3, CaptureFormat captureFormat, int i4, int i5, int i6, CaptureFormat captureFormat2, Rect rect, boolean z) {
        this.mSrcWidth = 0;
        this.mSrcHeight = 0;
        this.mDstWidth = 0;
        this.mDstHeight = 0;
        this.mDstRotateAngle = 0;
        CaptureFormat captureFormat3 = CaptureFormat.YUV422;
        this.mSrcFormat = captureFormat3;
        this.mDstFormat = captureFormat3;
        this.mCropRect = null;
        this.mIsDram2Dram = true;
        this.mSrcWidth = i2;
        this.mSrcHeight = i3;
        this.mSrcFormat = captureFormat;
        this.mDstWidth = i4;
        this.mDstHeight = i5;
        this.mDstRotateAngle = i6;
        this.mDstFormat = captureFormat2;
        this.mCropRect = rect;
        this.mIsDram2Dram = z;
    }

    public CaptureSetQueryInfo(int i2, int i3, CaptureFormat captureFormat, int i4, int i5, CaptureFormat captureFormat2) {
        this(i2, i3, captureFormat, i4, i5, 0, captureFormat2);
    }

    public CaptureSetQueryInfo(Parcel parcel) {
        this.mSrcWidth = 0;
        this.mSrcHeight = 0;
        this.mDstWidth = 0;
        this.mDstHeight = 0;
        this.mDstRotateAngle = 0;
        CaptureFormat captureFormat = CaptureFormat.YUV422;
        this.mSrcFormat = captureFormat;
        this.mDstFormat = captureFormat;
        this.mCropRect = null;
        this.mIsDram2Dram = true;
        this.mSrcWidth = parcel.readInt();
        this.mSrcHeight = parcel.readInt();
        this.mDstWidth = parcel.readInt();
        this.mDstHeight = parcel.readInt();
        this.mDstRotateAngle = parcel.readInt();
        this.mSrcFormat = (CaptureFormat) parcel.readParcelable(CaptureFormat.class.getClassLoader());
        this.mDstFormat = (CaptureFormat) parcel.readParcelable(CaptureFormat.class.getClassLoader());
        this.mCropRect = (Rect) parcel.readParcelable(CaptureFormat.class.getClassLoader());
    }

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

    public Rect getCropRect() {
        return this.mCropRect;
    }

    public CaptureFormat getDstFormat() {
        return this.mDstFormat;
    }

    public int getDstHeight() {
        return this.mDstHeight;
    }

    public int getDstRotateAngle() {
        return this.mDstRotateAngle;
    }

    public int getDstWidth() {
        return this.mDstWidth;
    }

    public CaptureFormat getSrcFormat() {
        return this.mSrcFormat;
    }

    public int getSrcHeight() {
        return this.mSrcHeight;
    }

    public int getSrcWidth() {
        return this.mSrcWidth;
    }

    public boolean isDram2Dram() {
        return this.mIsDram2Dram;
    }

    public void setCropRect(Rect rect) {
        this.mCropRect = rect;
    }

    public void setDstFormat(CaptureFormat captureFormat) {
        this.mDstFormat = captureFormat;
    }

    public void setDstHeight(int i2) {
        this.mDstHeight = i2;
    }

    public void setDstRotateAngle(int i2) {
        this.mDstRotateAngle = i2;
    }

    public void setDstWidth(int i2) {
        this.mDstWidth = i2;
    }

    public void setSrcFormat(CaptureFormat captureFormat) {
        this.mSrcFormat = captureFormat;
    }

    public void setSrcHeight(int i2) {
        this.mSrcHeight = i2;
    }

    public void setSrcWidth(int i2) {
        this.mSrcWidth = i2;
    }

    public String toString() {
        StringBuilder sbC = a.C("CaptureSetQueryInfo{mSrcWidth=");
        sbC.append(this.mSrcWidth);
        sbC.append(", mSrcHeight=");
        sbC.append(this.mSrcHeight);
        sbC.append(", mDstWidth=");
        sbC.append(this.mDstWidth);
        sbC.append(", mDstHeight=");
        sbC.append(this.mDstHeight);
        sbC.append(", mDstRotateAngle=");
        sbC.append(this.mDstRotateAngle);
        sbC.append(", mSrcFormat=");
        sbC.append(this.mSrcFormat);
        sbC.append(", mDstFormat=");
        sbC.append(this.mDstFormat);
        sbC.append(", mCropRect=");
        sbC.append(this.mCropRect);
        sbC.append(", mIsDram2Dram=");
        return a.w(sbC, this.mIsDram2Dram, '}');
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i2) {
        parcel.writeInt(this.mSrcWidth);
        parcel.writeInt(this.mSrcHeight);
        parcel.writeInt(this.mDstWidth);
        parcel.writeInt(this.mDstHeight);
        parcel.writeInt(this.mDstRotateAngle);
        parcel.writeParcelable(this.mSrcFormat, i2);
        parcel.writeParcelable(this.mDstFormat, i2);
        parcel.writeParcelable(this.mCropRect, i2);
    }
}
