6014 lines
134 KiB
Smali
6014 lines
134 KiB
Smali
.class public Lcom/otaliastudios/cameraview/CameraView;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "CameraView.java"
|
|
|
|
# interfaces
|
|
.implements Landroidx/lifecycle/LifecycleObserver;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/otaliastudios/cameraview/CameraView$b;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final F:Ljava/lang/String;
|
|
|
|
.field public static final G:Lf/m/a/b;
|
|
|
|
|
|
# instance fields
|
|
.field public A:Lf/m/a/p/c;
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public B:Lf/m/a/q/c;
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public C:Z
|
|
|
|
.field public D:Z
|
|
|
|
.field public E:Lf/m/a/s/b;
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public d:Z
|
|
|
|
.field public e:Z
|
|
|
|
.field public f:Z
|
|
|
|
.field public g:Ljava/util/HashMap;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/HashMap<",
|
|
"Lf/m/a/o/a;",
|
|
"Lf/m/a/o/b;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public h:Lf/m/a/k/k;
|
|
|
|
.field public i:Lf/m/a/k/d;
|
|
|
|
.field public j:Lf/m/a/m/b;
|
|
|
|
.field public k:I
|
|
|
|
.field public l:Landroid/os/Handler;
|
|
|
|
.field public m:Ljava/util/concurrent/Executor;
|
|
|
|
.field public n:Lcom/otaliastudios/cameraview/CameraView$b;
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public o:Lf/m/a/u/a;
|
|
|
|
.field public p:Lf/m/a/p/d;
|
|
|
|
.field public q:Lf/m/a/l/l;
|
|
|
|
.field public r:Lf/m/a/v/b;
|
|
|
|
.field public s:Landroid/media/MediaActionSound;
|
|
|
|
.field public t:Lf/m/a/q/a;
|
|
|
|
.field public u:Ljava/util/List;
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lf/m/a/a;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public v:Ljava/util/List;
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lf/m/a/n/d;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public w:Landroidx/lifecycle/Lifecycle;
|
|
|
|
.field public x:Lf/m/a/o/f;
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public y:Lf/m/a/o/h;
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public z:Lf/m/a/o/g;
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
const-class v0, Lcom/otaliastudios/cameraview/CameraView;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/otaliastudios/cameraview/CameraView;->F:Ljava/lang/String;
|
|
|
|
new-instance v1, Lf/m/a/b;
|
|
|
|
invoke-direct {v1, v0}, Lf/m/a/b;-><init>(Ljava/lang/String;)V
|
|
|
|
sput-object v1, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 42
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
invoke-direct/range {p0 .. p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
new-instance v2, Ljava/util/HashMap;
|
|
|
|
const/4 v3, 0x4
|
|
|
|
invoke-direct {v2, v3}, Ljava/util/HashMap;-><init>(I)V
|
|
|
|
iput-object v2, v0, Lcom/otaliastudios/cameraview/CameraView;->g:Ljava/util/HashMap;
|
|
|
|
new-instance v2, Ljava/util/concurrent/CopyOnWriteArrayList;
|
|
|
|
invoke-direct {v2}, Ljava/util/concurrent/CopyOnWriteArrayList;-><init>()V
|
|
|
|
iput-object v2, v0, Lcom/otaliastudios/cameraview/CameraView;->u:Ljava/util/List;
|
|
|
|
new-instance v2, Ljava/util/concurrent/CopyOnWriteArrayList;
|
|
|
|
invoke-direct {v2}, Ljava/util/concurrent/CopyOnWriteArrayList;-><init>()V
|
|
|
|
iput-object v2, v0, Lcom/otaliastudios/cameraview/CameraView;->v:Ljava/util/List;
|
|
|
|
sget-object v2, Lf/m/a/k/k;->f:Lf/m/a/k/k;
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->isInEditMode()Z
|
|
|
|
move-result v3
|
|
|
|
iput-boolean v3, v0, Lcom/otaliastudios/cameraview/CameraView;->D:Z
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
goto/16 :goto_22
|
|
|
|
:cond_0
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v0, v3}, Landroid/widget/FrameLayout;->setWillNotDraw(Z)V
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
move-result-object v4
|
|
|
|
sget-object v5, Lcom/otaliastudios/cameraview/R$c;->CameraView:[I
|
|
|
|
move-object/from16 v6, p2
|
|
|
|
invoke-virtual {v4, v6, v5, v3, v3}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object v4
|
|
|
|
sget v5, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPreview:I
|
|
|
|
iget v6, v2, Lf/m/a/k/k;->value:I
|
|
|
|
invoke-virtual {v4, v5, v6}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v5
|
|
|
|
sget v6, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraFacing:I
|
|
|
|
sget-object v7, Lf/m/a/k/e;->e:Lf/m/a/k/e;
|
|
|
|
sget-object v8, Lf/m/a/k/e;->d:Lf/m/a/k/e;
|
|
|
|
invoke-static {v1, v8}, Lf/m/a/d;->a(Landroid/content/Context;Lf/m/a/k/e;)Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-static {v1, v7}, Lf/m/a/d;->a(Landroid/content/Context;Lf/m/a/k/e;)Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
move-object v7, v8
|
|
|
|
:goto_1
|
|
iget v7, v7, Lf/m/a/k/e;->value:I
|
|
|
|
invoke-virtual {v4, v6, v7}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v6
|
|
|
|
sget v7, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraFlash:I
|
|
|
|
sget-object v8, Lf/m/a/k/f;->h:Lf/m/a/k/f;
|
|
|
|
iget v8, v8, Lf/m/a/k/f;->value:I
|
|
|
|
invoke-virtual {v4, v7, v8}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v7
|
|
|
|
sget v8, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraGrid:I
|
|
|
|
sget-object v9, Lf/m/a/k/g;->h:Lf/m/a/k/g;
|
|
|
|
iget v9, v9, Lf/m/a/k/g;->value:I
|
|
|
|
invoke-virtual {v4, v8, v9}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v8
|
|
|
|
sget v9, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraWhiteBalance:I
|
|
|
|
sget-object v10, Lf/m/a/k/m;->i:Lf/m/a/k/m;
|
|
|
|
iget v10, v10, Lf/m/a/k/m;->value:I
|
|
|
|
invoke-virtual {v4, v9, v10}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v9
|
|
|
|
sget v10, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraMode:I
|
|
|
|
sget-object v11, Lf/m/a/k/i;->f:Lf/m/a/k/i;
|
|
|
|
iget v11, v11, Lf/m/a/k/i;->value:I
|
|
|
|
invoke-virtual {v4, v10, v11}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v10
|
|
|
|
sget v11, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraHdr:I
|
|
|
|
sget-object v12, Lf/m/a/k/h;->f:Lf/m/a/k/h;
|
|
|
|
iget v12, v12, Lf/m/a/k/h;->value:I
|
|
|
|
invoke-virtual {v4, v11, v12}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v11
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraAudio:I
|
|
|
|
sget-object v13, Lf/m/a/k/a;->h:Lf/m/a/k/a;
|
|
|
|
iget v13, v13, Lf/m/a/k/a;->value:I
|
|
|
|
invoke-virtual {v4, v12, v13}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v12
|
|
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoCodec:I
|
|
|
|
sget-object v14, Lf/m/a/k/l;->g:Lf/m/a/k/l;
|
|
|
|
iget v14, v14, Lf/m/a/k/l;->value:I
|
|
|
|
invoke-virtual {v4, v13, v14}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v13
|
|
|
|
sget v14, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraAudioCodec:I
|
|
|
|
sget-object v15, Lf/m/a/k/b;->h:Lf/m/a/k/b;
|
|
|
|
iget v15, v15, Lf/m/a/k/b;->value:I
|
|
|
|
invoke-virtual {v4, v14, v15}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v14
|
|
|
|
sget v15, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraEngine:I
|
|
|
|
sget-object v3, Lf/m/a/k/d;->f:Lf/m/a/k/d;
|
|
|
|
iget v3, v3, Lf/m/a/k/d;->value:I
|
|
|
|
invoke-virtual {v4, v15, v3}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v3
|
|
|
|
sget v15, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureFormat:I
|
|
|
|
move-object/from16 v17, v2
|
|
|
|
sget-object v2, Lf/m/a/k/j;->f:Lf/m/a/k/j;
|
|
|
|
iget v2, v2, Lf/m/a/k/j;->value:I
|
|
|
|
invoke-virtual {v4, v15, v2}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v2
|
|
|
|
sget v15, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPlaySounds:I
|
|
|
|
move/from16 p2, v13
|
|
|
|
const/4 v13, 0x1
|
|
|
|
invoke-virtual {v4, v15, v13}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v15
|
|
|
|
move/from16 v18, v2
|
|
|
|
sget v2, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraUseDeviceOrientation:I
|
|
|
|
invoke-virtual {v4, v2, v13}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v2
|
|
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraExperimental:I
|
|
|
|
move/from16 v20, v14
|
|
|
|
const/4 v14, 0x0
|
|
|
|
invoke-virtual {v4, v13, v14}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v13
|
|
|
|
iput-boolean v13, v0, Lcom/otaliastudios/cameraview/CameraView;->C:Z
|
|
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraRequestPermissions:I
|
|
|
|
const/4 v14, 0x1
|
|
|
|
invoke-virtual {v4, v13, v14}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v13
|
|
|
|
iput-boolean v13, v0, Lcom/otaliastudios/cameraview/CameraView;->f:Z
|
|
|
|
invoke-static {}, Lf/m/a/k/k;->values()[Lf/m/a/k/k;
|
|
|
|
move-result-object v13
|
|
|
|
array-length v14, v13
|
|
|
|
move/from16 v21, v12
|
|
|
|
const/4 v12, 0x0
|
|
|
|
:goto_2
|
|
if-ge v12, v14, :cond_4
|
|
|
|
move/from16 v22, v14
|
|
|
|
aget-object v14, v13, v12
|
|
|
|
move-object/from16 v23, v13
|
|
|
|
iget v13, v14, Lf/m/a/k/k;->value:I
|
|
|
|
if-ne v13, v5, :cond_3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
add-int/lit8 v12, v12, 0x1
|
|
|
|
move/from16 v14, v22
|
|
|
|
move-object/from16 v13, v23
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
move-object/from16 v14, v17
|
|
|
|
:goto_3
|
|
iput-object v14, v0, Lcom/otaliastudios/cameraview/CameraView;->h:Lf/m/a/k/k;
|
|
|
|
invoke-static {}, Lf/m/a/k/d;->values()[Lf/m/a/k/d;
|
|
|
|
move-result-object v5
|
|
|
|
array-length v12, v5
|
|
|
|
const/4 v13, 0x0
|
|
|
|
:goto_4
|
|
if-ge v13, v12, :cond_6
|
|
|
|
aget-object v14, v5, v13
|
|
|
|
move-object/from16 v17, v5
|
|
|
|
iget v5, v14, Lf/m/a/k/d;->value:I
|
|
|
|
if-ne v5, v3, :cond_5
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
add-int/lit8 v13, v13, 0x1
|
|
|
|
move-object/from16 v5, v17
|
|
|
|
goto :goto_4
|
|
|
|
:cond_6
|
|
sget-object v14, Lf/m/a/k/d;->f:Lf/m/a/k/d;
|
|
|
|
:goto_5
|
|
iput-object v14, v0, Lcom/otaliastudios/cameraview/CameraView;->i:Lf/m/a/k/d;
|
|
|
|
sget v3, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraGridColor:I
|
|
|
|
sget v5, Lf/m/a/p/c;->i:I
|
|
|
|
invoke-virtual {v4, v3, v5}, Landroid/content/res/TypedArray;->getColor(II)I
|
|
|
|
move-result v3
|
|
|
|
sget v5, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoMaxSize:I
|
|
|
|
const/4 v12, 0x0
|
|
|
|
invoke-virtual {v4, v5, v12}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
|
|
|
move-result v5
|
|
|
|
float-to-long v13, v5
|
|
|
|
sget v5, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoMaxDuration:I
|
|
|
|
const/4 v12, 0x0
|
|
|
|
invoke-virtual {v4, v5, v12}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v5
|
|
|
|
move/from16 v22, v5
|
|
|
|
sget v5, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoBitRate:I
|
|
|
|
invoke-virtual {v4, v5, v12}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v5
|
|
|
|
move/from16 v23, v5
|
|
|
|
sget v5, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraAudioBitRate:I
|
|
|
|
invoke-virtual {v4, v5, v12}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v5
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPreviewFrameRate:I
|
|
|
|
move-wide/from16 v24, v13
|
|
|
|
const/4 v13, 0x0
|
|
|
|
invoke-virtual {v4, v12, v13}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
|
|
|
move-result v12
|
|
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPreviewFrameRateExact:I
|
|
|
|
const/4 v14, 0x0
|
|
|
|
invoke-virtual {v4, v13, v14}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v13
|
|
|
|
sget v14, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraAutoFocusResetDelay:I
|
|
|
|
move/from16 v26, v12
|
|
|
|
const/16 v12, 0xbb8
|
|
|
|
invoke-virtual {v4, v14, v12}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v12
|
|
|
|
move v14, v13
|
|
|
|
int-to-long v12, v12
|
|
|
|
move/from16 v27, v14
|
|
|
|
sget v14, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureMetering:I
|
|
|
|
move-wide/from16 v28, v12
|
|
|
|
const/4 v12, 0x1
|
|
|
|
invoke-virtual {v4, v14, v12}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v13
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSnapshotMetering:I
|
|
|
|
const/4 v14, 0x0
|
|
|
|
invoke-virtual {v4, v12, v14}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v12
|
|
|
|
move/from16 v30, v12
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraSnapshotMaxWidth:I
|
|
|
|
invoke-virtual {v4, v12, v14}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v12
|
|
|
|
move/from16 v31, v12
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraSnapshotMaxHeight:I
|
|
|
|
invoke-virtual {v4, v12, v14}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v12
|
|
|
|
move/from16 v32, v12
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraFrameProcessingMaxWidth:I
|
|
|
|
invoke-virtual {v4, v12, v14}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v12
|
|
|
|
move/from16 v33, v12
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraFrameProcessingMaxHeight:I
|
|
|
|
invoke-virtual {v4, v12, v14}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v12
|
|
|
|
move/from16 v34, v12
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraFrameProcessingFormat:I
|
|
|
|
invoke-virtual {v4, v12, v14}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v12
|
|
|
|
sget v14, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraFrameProcessingPoolSize:I
|
|
|
|
move/from16 v35, v12
|
|
|
|
const/4 v12, 0x2
|
|
|
|
invoke-virtual {v4, v14, v12}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v12
|
|
|
|
sget v14, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraFrameProcessingExecutors:I
|
|
|
|
move/from16 v36, v12
|
|
|
|
const/4 v12, 0x1
|
|
|
|
invoke-virtual {v4, v14, v12}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v12
|
|
|
|
new-instance v14, Ljava/util/ArrayList;
|
|
|
|
move/from16 v19, v12
|
|
|
|
const/4 v12, 0x3
|
|
|
|
invoke-direct {v14, v12}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeMinWidth:I
|
|
|
|
invoke-virtual {v4, v12}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_7
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeMinWidth:I
|
|
|
|
move/from16 v38, v13
|
|
|
|
const/4 v13, 0x0
|
|
|
|
invoke-virtual {v4, v12, v13}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v12
|
|
|
|
invoke-static {v12}, Lf/h/a/c/i1/e;->f1(I)Lf/m/a/v/c;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-virtual {v14, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_6
|
|
|
|
:cond_7
|
|
move/from16 v38, v13
|
|
|
|
const/4 v13, 0x0
|
|
|
|
:goto_6
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeMaxWidth:I
|
|
|
|
invoke-virtual {v4, v12}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_8
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeMaxWidth:I
|
|
|
|
invoke-virtual {v4, v12, v13}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v12
|
|
|
|
invoke-static {v12}, Lf/h/a/c/i1/e;->d1(I)Lf/m/a/v/c;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-virtual {v14, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_8
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeMinHeight:I
|
|
|
|
invoke-virtual {v4, v12}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_9
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeMinHeight:I
|
|
|
|
invoke-virtual {v4, v12, v13}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v12
|
|
|
|
invoke-static {v12}, Lf/h/a/c/i1/e;->e1(I)Lf/m/a/v/c;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-virtual {v14, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_9
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeMaxHeight:I
|
|
|
|
invoke-virtual {v4, v12}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_a
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeMaxHeight:I
|
|
|
|
invoke-virtual {v4, v12, v13}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v12
|
|
|
|
invoke-static {v12}, Lf/h/a/c/i1/e;->c1(I)Lf/m/a/v/c;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-virtual {v14, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_a
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeMinArea:I
|
|
|
|
invoke-virtual {v4, v12}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_b
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeMinArea:I
|
|
|
|
invoke-virtual {v4, v12, v13}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v12
|
|
|
|
new-instance v13, Lf/m/a/v/l;
|
|
|
|
invoke-direct {v13, v12}, Lf/m/a/v/l;-><init>(I)V
|
|
|
|
invoke-static {v13}, Lf/h/a/c/i1/e;->A1(Lf/m/a/v/n;)Lf/m/a/v/c;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-virtual {v14, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_b
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeMaxArea:I
|
|
|
|
invoke-virtual {v4, v12}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_c
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeMaxArea:I
|
|
|
|
const/4 v13, 0x0
|
|
|
|
invoke-virtual {v4, v12, v13}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v12
|
|
|
|
new-instance v13, Lf/m/a/v/k;
|
|
|
|
invoke-direct {v13, v12}, Lf/m/a/v/k;-><init>(I)V
|
|
|
|
invoke-static {v13}, Lf/h/a/c/i1/e;->A1(Lf/m/a/v/n;)Lf/m/a/v/c;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-virtual {v14, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_c
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeAspectRatio:I
|
|
|
|
invoke-virtual {v4, v12}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_d
|
|
|
|
sget v12, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeAspectRatio:I
|
|
|
|
invoke-virtual {v4, v12}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-static {v12}, Lf/m/a/v/a;->h(Ljava/lang/String;)Lf/m/a/v/a;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-virtual {v12}, Lf/m/a/v/a;->i()F
|
|
|
|
move-result v12
|
|
|
|
new-instance v13, Lf/m/a/v/h;
|
|
|
|
move/from16 v39, v5
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-direct {v13, v12, v5}, Lf/m/a/v/h;-><init>(FF)V
|
|
|
|
invoke-static {v13}, Lf/h/a/c/i1/e;->A1(Lf/m/a/v/n;)Lf/m/a/v/c;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v14, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_7
|
|
|
|
:cond_d
|
|
move/from16 v39, v5
|
|
|
|
:goto_7
|
|
sget v5, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeSmallest:I
|
|
|
|
const/4 v12, 0x0
|
|
|
|
invoke-virtual {v4, v5, v12}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_e
|
|
|
|
new-instance v5, Lf/m/a/v/j;
|
|
|
|
invoke-direct {v5}, Lf/m/a/v/j;-><init>()V
|
|
|
|
invoke-virtual {v14, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_e
|
|
sget v5, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraPictureSizeBiggest:I
|
|
|
|
invoke-virtual {v4, v5, v12}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_f
|
|
|
|
new-instance v5, Lf/m/a/v/i;
|
|
|
|
invoke-direct {v5}, Lf/m/a/v/i;-><init>()V
|
|
|
|
invoke-virtual {v14, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_f
|
|
invoke-virtual {v14}, Ljava/util/ArrayList;->isEmpty()Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_10
|
|
|
|
new-array v5, v12, [Lf/m/a/v/c;
|
|
|
|
invoke-virtual {v14, v5}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, [Lf/m/a/v/c;
|
|
|
|
invoke-static {v5}, Lf/h/a/c/i1/e;->f([Lf/m/a/v/c;)Lf/m/a/v/c;
|
|
|
|
move-result-object v5
|
|
|
|
goto :goto_8
|
|
|
|
:cond_10
|
|
new-instance v5, Lf/m/a/v/i;
|
|
|
|
invoke-direct {v5}, Lf/m/a/v/i;-><init>()V
|
|
|
|
:goto_8
|
|
new-instance v12, Ljava/util/ArrayList;
|
|
|
|
const/4 v13, 0x3
|
|
|
|
invoke-direct {v12, v13}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeMinWidth:I
|
|
|
|
invoke-virtual {v4, v13}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_11
|
|
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeMinWidth:I
|
|
|
|
const/4 v14, 0x0
|
|
|
|
invoke-virtual {v4, v13, v14}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v13
|
|
|
|
invoke-static {v13}, Lf/h/a/c/i1/e;->f1(I)Lf/m/a/v/c;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-virtual {v12, v13}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_9
|
|
|
|
:cond_11
|
|
const/4 v14, 0x0
|
|
|
|
:goto_9
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeMaxWidth:I
|
|
|
|
invoke-virtual {v4, v13}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_12
|
|
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeMaxWidth:I
|
|
|
|
invoke-virtual {v4, v13, v14}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v13
|
|
|
|
invoke-static {v13}, Lf/h/a/c/i1/e;->d1(I)Lf/m/a/v/c;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-virtual {v12, v13}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_12
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeMinHeight:I
|
|
|
|
invoke-virtual {v4, v13}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_13
|
|
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeMinHeight:I
|
|
|
|
invoke-virtual {v4, v13, v14}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v13
|
|
|
|
invoke-static {v13}, Lf/h/a/c/i1/e;->e1(I)Lf/m/a/v/c;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-virtual {v12, v13}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_13
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeMaxHeight:I
|
|
|
|
invoke-virtual {v4, v13}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_14
|
|
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeMaxHeight:I
|
|
|
|
invoke-virtual {v4, v13, v14}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v13
|
|
|
|
invoke-static {v13}, Lf/h/a/c/i1/e;->c1(I)Lf/m/a/v/c;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-virtual {v12, v13}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_14
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeMinArea:I
|
|
|
|
invoke-virtual {v4, v13}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_15
|
|
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeMinArea:I
|
|
|
|
invoke-virtual {v4, v13, v14}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v13
|
|
|
|
new-instance v14, Lf/m/a/v/l;
|
|
|
|
invoke-direct {v14, v13}, Lf/m/a/v/l;-><init>(I)V
|
|
|
|
invoke-static {v14}, Lf/h/a/c/i1/e;->A1(Lf/m/a/v/n;)Lf/m/a/v/c;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-virtual {v12, v13}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_15
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeMaxArea:I
|
|
|
|
invoke-virtual {v4, v13}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_16
|
|
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeMaxArea:I
|
|
|
|
const/4 v14, 0x0
|
|
|
|
invoke-virtual {v4, v13, v14}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v13
|
|
|
|
new-instance v14, Lf/m/a/v/k;
|
|
|
|
invoke-direct {v14, v13}, Lf/m/a/v/k;-><init>(I)V
|
|
|
|
invoke-static {v14}, Lf/h/a/c/i1/e;->A1(Lf/m/a/v/n;)Lf/m/a/v/c;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-virtual {v12, v13}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_16
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeAspectRatio:I
|
|
|
|
invoke-virtual {v4, v13}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_17
|
|
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeAspectRatio:I
|
|
|
|
invoke-virtual {v4, v13}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-static {v13}, Lf/m/a/v/a;->h(Ljava/lang/String;)Lf/m/a/v/a;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-virtual {v13}, Lf/m/a/v/a;->i()F
|
|
|
|
move-result v13
|
|
|
|
new-instance v14, Lf/m/a/v/h;
|
|
|
|
move-object/from16 v37, v5
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-direct {v14, v13, v5}, Lf/m/a/v/h;-><init>(FF)V
|
|
|
|
invoke-static {v14}, Lf/h/a/c/i1/e;->A1(Lf/m/a/v/n;)Lf/m/a/v/c;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v12, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_a
|
|
|
|
:cond_17
|
|
move-object/from16 v37, v5
|
|
|
|
:goto_a
|
|
sget v5, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeSmallest:I
|
|
|
|
const/4 v14, 0x0
|
|
|
|
invoke-virtual {v4, v5, v14}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_18
|
|
|
|
new-instance v5, Lf/m/a/v/j;
|
|
|
|
invoke-direct {v5}, Lf/m/a/v/j;-><init>()V
|
|
|
|
invoke-virtual {v12, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_18
|
|
sget v5, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraVideoSizeBiggest:I
|
|
|
|
invoke-virtual {v4, v5, v14}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_19
|
|
|
|
new-instance v5, Lf/m/a/v/i;
|
|
|
|
invoke-direct {v5}, Lf/m/a/v/i;-><init>()V
|
|
|
|
invoke-virtual {v12, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_19
|
|
invoke-virtual {v12}, Ljava/util/ArrayList;->isEmpty()Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_1a
|
|
|
|
new-array v5, v14, [Lf/m/a/v/c;
|
|
|
|
invoke-virtual {v12, v5}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, [Lf/m/a/v/c;
|
|
|
|
invoke-static {v5}, Lf/h/a/c/i1/e;->f([Lf/m/a/v/c;)Lf/m/a/v/c;
|
|
|
|
move-result-object v5
|
|
|
|
goto :goto_b
|
|
|
|
:cond_1a
|
|
new-instance v5, Lf/m/a/v/i;
|
|
|
|
invoke-direct {v5}, Lf/m/a/v/i;-><init>()V
|
|
|
|
:goto_b
|
|
new-instance v12, Lf/m/a/o/d;
|
|
|
|
invoke-direct {v12, v4}, Lf/m/a/o/d;-><init>(Landroid/content/res/TypedArray;)V
|
|
|
|
sget v13, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraAutoFocusMarker:I
|
|
|
|
invoke-virtual {v4, v13}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v13
|
|
|
|
const/16 v16, 0x0
|
|
|
|
if-eqz v13, :cond_1b
|
|
|
|
:try_start_0
|
|
invoke-static {v13}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-virtual {v13}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
|
|
|
|
move-result-object v13
|
|
|
|
check-cast v13, Lf/m/a/q/a;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_c
|
|
|
|
:catch_0
|
|
:cond_1b
|
|
move-object/from16 v13, v16
|
|
|
|
:goto_c
|
|
sget v14, Lcom/otaliastudios/cameraview/R$c;->CameraView_cameraFilter:I
|
|
|
|
invoke-virtual {v4, v14}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v14
|
|
|
|
:try_start_1
|
|
invoke-static {v14}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v14
|
|
|
|
invoke-virtual {v14}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
|
|
|
|
move-result-object v14
|
|
|
|
check-cast v14, Lf/m/a/m/b;
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
goto :goto_d
|
|
|
|
:catch_1
|
|
new-instance v14, Lf/m/a/m/c;
|
|
|
|
invoke-direct {v14}, Lf/m/a/m/c;-><init>()V
|
|
|
|
:goto_d
|
|
invoke-virtual {v4}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
new-instance v4, Lcom/otaliastudios/cameraview/CameraView$b;
|
|
|
|
invoke-direct {v4, v0}, Lcom/otaliastudios/cameraview/CameraView$b;-><init>(Lcom/otaliastudios/cameraview/CameraView;)V
|
|
|
|
iput-object v4, v0, Lcom/otaliastudios/cameraview/CameraView;->n:Lcom/otaliastudios/cameraview/CameraView$b;
|
|
|
|
new-instance v4, Landroid/os/Handler;
|
|
|
|
move-object/from16 v40, v14
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v14
|
|
|
|
invoke-direct {v4, v14}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
|
|
|
iput-object v4, v0, Lcom/otaliastudios/cameraview/CameraView;->l:Landroid/os/Handler;
|
|
|
|
new-instance v4, Lf/m/a/o/f;
|
|
|
|
iget-object v14, v0, Lcom/otaliastudios/cameraview/CameraView;->n:Lcom/otaliastudios/cameraview/CameraView$b;
|
|
|
|
invoke-direct {v4, v14}, Lf/m/a/o/f;-><init>(Lf/m/a/o/c$a;)V
|
|
|
|
iput-object v4, v0, Lcom/otaliastudios/cameraview/CameraView;->x:Lf/m/a/o/f;
|
|
|
|
new-instance v4, Lf/m/a/o/h;
|
|
|
|
iget-object v14, v0, Lcom/otaliastudios/cameraview/CameraView;->n:Lcom/otaliastudios/cameraview/CameraView$b;
|
|
|
|
invoke-direct {v4, v14}, Lf/m/a/o/h;-><init>(Lf/m/a/o/c$a;)V
|
|
|
|
iput-object v4, v0, Lcom/otaliastudios/cameraview/CameraView;->y:Lf/m/a/o/h;
|
|
|
|
new-instance v4, Lf/m/a/o/g;
|
|
|
|
iget-object v14, v0, Lcom/otaliastudios/cameraview/CameraView;->n:Lcom/otaliastudios/cameraview/CameraView$b;
|
|
|
|
invoke-direct {v4, v14}, Lf/m/a/o/g;-><init>(Lf/m/a/o/c$a;)V
|
|
|
|
iput-object v4, v0, Lcom/otaliastudios/cameraview/CameraView;->z:Lf/m/a/o/g;
|
|
|
|
new-instance v4, Lf/m/a/p/c;
|
|
|
|
invoke-direct {v4, v1}, Lf/m/a/p/c;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v4, v0, Lcom/otaliastudios/cameraview/CameraView;->A:Lf/m/a/p/c;
|
|
|
|
new-instance v4, Lf/m/a/s/b;
|
|
|
|
invoke-direct {v4, v1}, Lf/m/a/s/b;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v4, v0, Lcom/otaliastudios/cameraview/CameraView;->E:Lf/m/a/s/b;
|
|
|
|
new-instance v4, Lf/m/a/q/c;
|
|
|
|
invoke-direct {v4, v1}, Lf/m/a/q/c;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v4, v0, Lcom/otaliastudios/cameraview/CameraView;->B:Lf/m/a/q/c;
|
|
|
|
iget-object v4, v0, Lcom/otaliastudios/cameraview/CameraView;->A:Lf/m/a/p/c;
|
|
|
|
invoke-virtual {v0, v4}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
|
|
|
|
iget-object v4, v0, Lcom/otaliastudios/cameraview/CameraView;->B:Lf/m/a/q/c;
|
|
|
|
invoke-virtual {v0, v4}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
|
|
|
|
iget-object v4, v0, Lcom/otaliastudios/cameraview/CameraView;->E:Lf/m/a/s/b;
|
|
|
|
invoke-virtual {v0, v4}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/otaliastudios/cameraview/CameraView;->b()V
|
|
|
|
invoke-virtual {v0, v15}, Lcom/otaliastudios/cameraview/CameraView;->setPlaySounds(Z)V
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setUseDeviceOrientation(Z)V
|
|
|
|
invoke-static {}, Lf/m/a/k/g;->values()[Lf/m/a/k/g;
|
|
|
|
move-result-object v2
|
|
|
|
array-length v4, v2
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:goto_e
|
|
if-ge v14, v4, :cond_1d
|
|
|
|
aget-object v15, v2, v14
|
|
|
|
move-object/from16 v41, v2
|
|
|
|
iget v2, v15, Lf/m/a/k/g;->value:I
|
|
|
|
if-ne v2, v8, :cond_1c
|
|
|
|
goto :goto_f
|
|
|
|
:cond_1c
|
|
add-int/lit8 v14, v14, 0x1
|
|
|
|
move-object/from16 v2, v41
|
|
|
|
goto :goto_e
|
|
|
|
:cond_1d
|
|
sget-object v15, Lf/m/a/k/g;->h:Lf/m/a/k/g;
|
|
|
|
:goto_f
|
|
invoke-virtual {v0, v15}, Lcom/otaliastudios/cameraview/CameraView;->setGrid(Lf/m/a/k/g;)V
|
|
|
|
invoke-virtual {v0, v3}, Lcom/otaliastudios/cameraview/CameraView;->setGridColor(I)V
|
|
|
|
invoke-static {}, Lf/m/a/k/e;->values()[Lf/m/a/k/e;
|
|
|
|
move-result-object v2
|
|
|
|
array-length v3, v2
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:goto_10
|
|
if-ge v14, v3, :cond_1f
|
|
|
|
aget-object v4, v2, v14
|
|
|
|
iget v8, v4, Lf/m/a/k/e;->value:I
|
|
|
|
if-ne v8, v6, :cond_1e
|
|
|
|
goto :goto_11
|
|
|
|
:cond_1e
|
|
add-int/lit8 v14, v14, 0x1
|
|
|
|
goto :goto_10
|
|
|
|
:cond_1f
|
|
move-object/from16 v4, v16
|
|
|
|
:goto_11
|
|
invoke-virtual {v0, v4}, Lcom/otaliastudios/cameraview/CameraView;->setFacing(Lf/m/a/k/e;)V
|
|
|
|
invoke-static {}, Lf/m/a/k/f;->values()[Lf/m/a/k/f;
|
|
|
|
move-result-object v2
|
|
|
|
array-length v3, v2
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:goto_12
|
|
if-ge v14, v3, :cond_21
|
|
|
|
aget-object v4, v2, v14
|
|
|
|
iget v6, v4, Lf/m/a/k/f;->value:I
|
|
|
|
if-ne v6, v7, :cond_20
|
|
|
|
goto :goto_13
|
|
|
|
:cond_20
|
|
add-int/lit8 v14, v14, 0x1
|
|
|
|
goto :goto_12
|
|
|
|
:cond_21
|
|
sget-object v4, Lf/m/a/k/f;->h:Lf/m/a/k/f;
|
|
|
|
:goto_13
|
|
invoke-virtual {v0, v4}, Lcom/otaliastudios/cameraview/CameraView;->setFlash(Lf/m/a/k/f;)V
|
|
|
|
invoke-static {}, Lf/m/a/k/i;->values()[Lf/m/a/k/i;
|
|
|
|
move-result-object v2
|
|
|
|
array-length v3, v2
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:goto_14
|
|
if-ge v14, v3, :cond_23
|
|
|
|
aget-object v4, v2, v14
|
|
|
|
iget v6, v4, Lf/m/a/k/i;->value:I
|
|
|
|
if-ne v6, v10, :cond_22
|
|
|
|
goto :goto_15
|
|
|
|
:cond_22
|
|
add-int/lit8 v14, v14, 0x1
|
|
|
|
goto :goto_14
|
|
|
|
:cond_23
|
|
sget-object v4, Lf/m/a/k/i;->f:Lf/m/a/k/i;
|
|
|
|
:goto_15
|
|
invoke-virtual {v0, v4}, Lcom/otaliastudios/cameraview/CameraView;->setMode(Lf/m/a/k/i;)V
|
|
|
|
invoke-static {}, Lf/m/a/k/m;->values()[Lf/m/a/k/m;
|
|
|
|
move-result-object v2
|
|
|
|
array-length v3, v2
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:goto_16
|
|
if-ge v14, v3, :cond_25
|
|
|
|
aget-object v4, v2, v14
|
|
|
|
iget v6, v4, Lf/m/a/k/m;->value:I
|
|
|
|
if-ne v6, v9, :cond_24
|
|
|
|
goto :goto_17
|
|
|
|
:cond_24
|
|
add-int/lit8 v14, v14, 0x1
|
|
|
|
goto :goto_16
|
|
|
|
:cond_25
|
|
sget-object v4, Lf/m/a/k/m;->i:Lf/m/a/k/m;
|
|
|
|
:goto_17
|
|
invoke-virtual {v0, v4}, Lcom/otaliastudios/cameraview/CameraView;->setWhiteBalance(Lf/m/a/k/m;)V
|
|
|
|
invoke-static {}, Lf/m/a/k/h;->values()[Lf/m/a/k/h;
|
|
|
|
move-result-object v2
|
|
|
|
array-length v3, v2
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:goto_18
|
|
if-ge v14, v3, :cond_27
|
|
|
|
aget-object v4, v2, v14
|
|
|
|
iget v6, v4, Lf/m/a/k/h;->value:I
|
|
|
|
if-ne v6, v11, :cond_26
|
|
|
|
goto :goto_19
|
|
|
|
:cond_26
|
|
add-int/lit8 v14, v14, 0x1
|
|
|
|
goto :goto_18
|
|
|
|
:cond_27
|
|
sget-object v4, Lf/m/a/k/h;->f:Lf/m/a/k/h;
|
|
|
|
:goto_19
|
|
invoke-virtual {v0, v4}, Lcom/otaliastudios/cameraview/CameraView;->setHdr(Lf/m/a/k/h;)V
|
|
|
|
invoke-static {}, Lf/m/a/k/a;->values()[Lf/m/a/k/a;
|
|
|
|
move-result-object v2
|
|
|
|
array-length v3, v2
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:goto_1a
|
|
if-ge v14, v3, :cond_29
|
|
|
|
aget-object v4, v2, v14
|
|
|
|
iget v6, v4, Lf/m/a/k/a;->value:I
|
|
|
|
move/from16 v7, v21
|
|
|
|
if-ne v6, v7, :cond_28
|
|
|
|
goto :goto_1b
|
|
|
|
:cond_28
|
|
add-int/lit8 v14, v14, 0x1
|
|
|
|
move/from16 v21, v7
|
|
|
|
goto :goto_1a
|
|
|
|
:cond_29
|
|
sget-object v4, Lf/m/a/k/a;->h:Lf/m/a/k/a;
|
|
|
|
:goto_1b
|
|
invoke-virtual {v0, v4}, Lcom/otaliastudios/cameraview/CameraView;->setAudio(Lf/m/a/k/a;)V
|
|
|
|
move/from16 v2, v39
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setAudioBitRate(I)V
|
|
|
|
invoke-static {}, Lf/m/a/k/b;->values()[Lf/m/a/k/b;
|
|
|
|
move-result-object v2
|
|
|
|
array-length v3, v2
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:goto_1c
|
|
if-ge v14, v3, :cond_2b
|
|
|
|
aget-object v4, v2, v14
|
|
|
|
iget v6, v4, Lf/m/a/k/b;->value:I
|
|
|
|
move/from16 v7, v20
|
|
|
|
if-ne v6, v7, :cond_2a
|
|
|
|
goto :goto_1d
|
|
|
|
:cond_2a
|
|
add-int/lit8 v14, v14, 0x1
|
|
|
|
move/from16 v20, v7
|
|
|
|
goto :goto_1c
|
|
|
|
:cond_2b
|
|
sget-object v4, Lf/m/a/k/b;->h:Lf/m/a/k/b;
|
|
|
|
:goto_1d
|
|
invoke-virtual {v0, v4}, Lcom/otaliastudios/cameraview/CameraView;->setAudioCodec(Lf/m/a/k/b;)V
|
|
|
|
move-object/from16 v2, v37
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setPictureSize(Lf/m/a/v/c;)V
|
|
|
|
move/from16 v2, v38
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setPictureMetering(Z)V
|
|
|
|
move/from16 v2, v30
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setPictureSnapshotMetering(Z)V
|
|
|
|
invoke-static {}, Lf/m/a/k/j;->values()[Lf/m/a/k/j;
|
|
|
|
move-result-object v2
|
|
|
|
array-length v3, v2
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:goto_1e
|
|
if-ge v14, v3, :cond_2d
|
|
|
|
aget-object v4, v2, v14
|
|
|
|
iget v6, v4, Lf/m/a/k/j;->value:I
|
|
|
|
move/from16 v7, v18
|
|
|
|
if-ne v6, v7, :cond_2c
|
|
|
|
goto :goto_1f
|
|
|
|
:cond_2c
|
|
add-int/lit8 v14, v14, 0x1
|
|
|
|
move/from16 v18, v7
|
|
|
|
goto :goto_1e
|
|
|
|
:cond_2d
|
|
sget-object v4, Lf/m/a/k/j;->f:Lf/m/a/k/j;
|
|
|
|
:goto_1f
|
|
invoke-virtual {v0, v4}, Lcom/otaliastudios/cameraview/CameraView;->setPictureFormat(Lf/m/a/k/j;)V
|
|
|
|
invoke-virtual {v0, v5}, Lcom/otaliastudios/cameraview/CameraView;->setVideoSize(Lf/m/a/v/c;)V
|
|
|
|
invoke-static {}, Lf/m/a/k/l;->values()[Lf/m/a/k/l;
|
|
|
|
move-result-object v2
|
|
|
|
array-length v3, v2
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:goto_20
|
|
if-ge v4, v3, :cond_2f
|
|
|
|
aget-object v5, v2, v4
|
|
|
|
iget v6, v5, Lf/m/a/k/l;->value:I
|
|
|
|
move/from16 v7, p2
|
|
|
|
if-ne v6, v7, :cond_2e
|
|
|
|
goto :goto_21
|
|
|
|
:cond_2e
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
move/from16 p2, v7
|
|
|
|
goto :goto_20
|
|
|
|
:cond_2f
|
|
sget-object v5, Lf/m/a/k/l;->g:Lf/m/a/k/l;
|
|
|
|
:goto_21
|
|
invoke-virtual {v0, v5}, Lcom/otaliastudios/cameraview/CameraView;->setVideoCodec(Lf/m/a/k/l;)V
|
|
|
|
move-wide/from16 v2, v24
|
|
|
|
invoke-virtual {v0, v2, v3}, Lcom/otaliastudios/cameraview/CameraView;->setVideoMaxSize(J)V
|
|
|
|
move/from16 v2, v22
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setVideoMaxDuration(I)V
|
|
|
|
move/from16 v2, v23
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setVideoBitRate(I)V
|
|
|
|
move-wide/from16 v2, v28
|
|
|
|
invoke-virtual {v0, v2, v3}, Lcom/otaliastudios/cameraview/CameraView;->setAutoFocusResetDelay(J)V
|
|
|
|
move/from16 v2, v27
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setPreviewFrameRateExact(Z)V
|
|
|
|
move/from16 v2, v26
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setPreviewFrameRate(F)V
|
|
|
|
move/from16 v2, v31
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setSnapshotMaxWidth(I)V
|
|
|
|
move/from16 v2, v32
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setSnapshotMaxHeight(I)V
|
|
|
|
move/from16 v2, v33
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setFrameProcessingMaxWidth(I)V
|
|
|
|
move/from16 v2, v34
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setFrameProcessingMaxHeight(I)V
|
|
|
|
move/from16 v2, v35
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setFrameProcessingFormat(I)V
|
|
|
|
move/from16 v2, v36
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setFrameProcessingPoolSize(I)V
|
|
|
|
move/from16 v2, v19
|
|
|
|
invoke-virtual {v0, v2}, Lcom/otaliastudios/cameraview/CameraView;->setFrameProcessingExecutors(I)V
|
|
|
|
sget-object v2, Lf/m/a/o/a;->e:Lf/m/a/o/a;
|
|
|
|
iget v3, v12, Lf/m/a/o/d;->a:I
|
|
|
|
invoke-virtual {v12, v3}, Lf/m/a/o/d;->a(I)Lf/m/a/o/b;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lcom/otaliastudios/cameraview/CameraView;->e(Lf/m/a/o/a;Lf/m/a/o/b;)Z
|
|
|
|
sget-object v2, Lf/m/a/o/a;->f:Lf/m/a/o/a;
|
|
|
|
iget v3, v12, Lf/m/a/o/d;->b:I
|
|
|
|
invoke-virtual {v12, v3}, Lf/m/a/o/d;->a(I)Lf/m/a/o/b;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lcom/otaliastudios/cameraview/CameraView;->e(Lf/m/a/o/a;Lf/m/a/o/b;)Z
|
|
|
|
sget-object v2, Lf/m/a/o/a;->d:Lf/m/a/o/a;
|
|
|
|
iget v3, v12, Lf/m/a/o/d;->c:I
|
|
|
|
invoke-virtual {v12, v3}, Lf/m/a/o/d;->a(I)Lf/m/a/o/b;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lcom/otaliastudios/cameraview/CameraView;->e(Lf/m/a/o/a;Lf/m/a/o/b;)Z
|
|
|
|
sget-object v2, Lf/m/a/o/a;->g:Lf/m/a/o/a;
|
|
|
|
iget v3, v12, Lf/m/a/o/d;->d:I
|
|
|
|
invoke-virtual {v12, v3}, Lf/m/a/o/d;->a(I)Lf/m/a/o/b;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lcom/otaliastudios/cameraview/CameraView;->e(Lf/m/a/o/a;Lf/m/a/o/b;)Z
|
|
|
|
sget-object v2, Lf/m/a/o/a;->h:Lf/m/a/o/a;
|
|
|
|
iget v3, v12, Lf/m/a/o/d;->e:I
|
|
|
|
invoke-virtual {v12, v3}, Lf/m/a/o/d;->a(I)Lf/m/a/o/b;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lcom/otaliastudios/cameraview/CameraView;->e(Lf/m/a/o/a;Lf/m/a/o/b;)Z
|
|
|
|
invoke-virtual {v0, v13}, Lcom/otaliastudios/cameraview/CameraView;->setAutoFocusMarker(Lf/m/a/q/a;)V
|
|
|
|
move-object/from16 v14, v40
|
|
|
|
invoke-virtual {v0, v14}, Lcom/otaliastudios/cameraview/CameraView;->setFilter(Lf/m/a/m/b;)V
|
|
|
|
new-instance v2, Lf/m/a/p/d;
|
|
|
|
iget-object v3, v0, Lcom/otaliastudios/cameraview/CameraView;->n:Lcom/otaliastudios/cameraview/CameraView$b;
|
|
|
|
invoke-direct {v2, v1, v3}, Lf/m/a/p/d;-><init>(Landroid/content/Context;Lf/m/a/p/d$c;)V
|
|
|
|
iput-object v2, v0, Lcom/otaliastudios/cameraview/CameraView;->p:Lf/m/a/p/d;
|
|
|
|
:goto_22
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lf/m/a/k/a;)Z
|
|
.locals 10
|
|
.param p1 # Lf/m/a/k/a;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
value = {
|
|
"NewApi"
|
|
}
|
|
.end annotation
|
|
|
|
sget-object v0, Lf/m/a/k/a;->g:Lf/m/a/k/a;
|
|
|
|
sget-object v1, Lf/m/a/k/a;->f:Lf/m/a/k/a;
|
|
|
|
sget-object v2, Lf/m/a/k/a;->e:Lf/m/a/k/a;
|
|
|
|
const-string v3, "android.permission.RECORD_AUDIO"
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-eq p1, v2, :cond_0
|
|
|
|
if-eq p1, v1, :cond_0
|
|
|
|
if-ne p1, v0, :cond_3
|
|
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v7}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const/16 v8, 0x1000
|
|
|
|
invoke-virtual {v6, v7, v8}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
|
|
|
|
move-result-object v6
|
|
|
|
iget-object v6, v6, Landroid/content/pm/PackageInfo;->requestedPermissions:[Ljava/lang/String;
|
|
|
|
array-length v7, v6
|
|
|
|
const/4 v8, 0x0
|
|
|
|
:goto_0
|
|
if-ge v8, v7, :cond_2
|
|
|
|
aget-object v9, v6, v8
|
|
|
|
invoke-virtual {v9, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
add-int/lit8 v8, v8, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
sget-object v6, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
new-array v7, v4, [Ljava/lang/Object;
|
|
|
|
const-string v8, "Permission error: when audio is enabled (Audio.ON) the RECORD_AUDIO permission should be added to the app manifest file."
|
|
|
|
aput-object v8, v7, v5
|
|
|
|
const/4 v8, 0x3
|
|
|
|
invoke-virtual {v6, v8, v7}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
new-instance v7, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-direct {v7, v6}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v7
|
|
:try_end_0
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
:cond_3
|
|
:goto_1
|
|
sget v6, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v7, 0x17
|
|
|
|
if-ge v6, v7, :cond_4
|
|
|
|
return v4
|
|
|
|
:cond_4
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v6
|
|
|
|
if-eq p1, v2, :cond_6
|
|
|
|
if-eq p1, v1, :cond_6
|
|
|
|
if-ne p1, v0, :cond_5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
:goto_2
|
|
const/4 p1, 0x1
|
|
|
|
:goto_3
|
|
const-string v0, "android.permission.CAMERA"
|
|
|
|
invoke-virtual {v6, v0}, Landroid/content/Context;->checkSelfPermission(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
const/4 v1, 0x0
|
|
|
|
:goto_4
|
|
if-eqz p1, :cond_8
|
|
|
|
invoke-virtual {v6, v3}, Landroid/content/Context;->checkSelfPermission(Ljava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_8
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_8
|
|
const/4 p1, 0x0
|
|
|
|
:goto_5
|
|
if-nez v1, :cond_9
|
|
|
|
if-nez p1, :cond_9
|
|
|
|
return v4
|
|
|
|
:cond_9
|
|
iget-boolean v2, p0, Lcom/otaliastudios/cameraview/CameraView;->f:Z
|
|
|
|
if-eqz v2, :cond_e
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:goto_6
|
|
instance-of v6, v2, Landroid/content/ContextWrapper;
|
|
|
|
if-eqz v6, :cond_b
|
|
|
|
instance-of v6, v2, Landroid/app/Activity;
|
|
|
|
if-eqz v6, :cond_a
|
|
|
|
move-object v4, v2
|
|
|
|
check-cast v4, Landroid/app/Activity;
|
|
|
|
:cond_a
|
|
check-cast v2, Landroid/content/ContextWrapper;
|
|
|
|
invoke-virtual {v2}, Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_6
|
|
|
|
:cond_b
|
|
new-instance v2, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
if-eqz v1, :cond_c
|
|
|
|
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_c
|
|
if-eqz p1, :cond_d
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_d
|
|
if-eqz v4, :cond_e
|
|
|
|
new-array p1, v5, [Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, p1}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, [Ljava/lang/String;
|
|
|
|
const/16 v0, 0x10
|
|
|
|
invoke-virtual {v4, p1, v0}, Landroid/app/Activity;->requestPermissions([Ljava/lang/String;I)V
|
|
|
|
:cond_e
|
|
return v5
|
|
.end method
|
|
|
|
.method public addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Lcom/otaliastudios/cameraview/CameraView;->D:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->E:Lf/m/a/s/b;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
instance-of v1, p3, Lf/m/a/s/b$a;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {v0, p1, p3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
invoke-super {p0, p1, p2, p3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b()V
|
|
.locals 8
|
|
|
|
sget-object v0, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
const/4 v1, 0x3
|
|
|
|
new-array v2, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const-string v4, "doInstantiateEngine:"
|
|
|
|
aput-object v4, v2, v3
|
|
|
|
const-string v5, "instantiating. engine:"
|
|
|
|
const/4 v6, 0x1
|
|
|
|
aput-object v5, v2, v6
|
|
|
|
iget-object v5, p0, Lcom/otaliastudios/cameraview/CameraView;->i:Lf/m/a/k/d;
|
|
|
|
const/4 v7, 0x2
|
|
|
|
aput-object v5, v2, v7
|
|
|
|
invoke-virtual {v0, v7, v2}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->i:Lf/m/a/k/d;
|
|
|
|
iget-object v2, p0, Lcom/otaliastudios/cameraview/CameraView;->n:Lcom/otaliastudios/cameraview/CameraView$b;
|
|
|
|
iget-boolean v5, p0, Lcom/otaliastudios/cameraview/CameraView;->C:Z
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
sget-object v5, Lf/m/a/k/d;->e:Lf/m/a/k/d;
|
|
|
|
if-ne v0, v5, :cond_0
|
|
|
|
new-instance v0, Lf/m/a/l/d;
|
|
|
|
invoke-direct {v0, v2}, Lf/m/a/l/d;-><init>(Lf/m/a/l/l$g;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object v0, Lf/m/a/k/d;->d:Lf/m/a/k/d;
|
|
|
|
iput-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->i:Lf/m/a/k/d;
|
|
|
|
new-instance v0, Lf/m/a/l/b;
|
|
|
|
invoke-direct {v0, v2}, Lf/m/a/l/b;-><init>(Lf/m/a/l/l$g;)V
|
|
|
|
:goto_0
|
|
iput-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
sget-object v2, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
aput-object v4, v1, v3
|
|
|
|
const-string v3, "instantiated. engine:"
|
|
|
|
aput-object v3, v1, v6
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
aput-object v0, v1, v7
|
|
|
|
invoke-virtual {v2, v7, v1}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final c()Z
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
iget-object v1, v0, Lf/m/a/l/l;->g:Lf/m/a/l/x/c;
|
|
|
|
iget-object v1, v1, Lf/m/a/l/x/c;->f:Lf/m/a/l/x/b;
|
|
|
|
sget-object v2, Lf/m/a/l/x/b;->d:Lf/m/a/l/x/b;
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
invoke-virtual {v0}, Lf/m/a/l/l;->i()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public close()V
|
|
.locals 2
|
|
.annotation runtime Landroidx/lifecycle/OnLifecycleEvent;
|
|
value = .enum Landroidx/lifecycle/Lifecycle$Event;->ON_PAUSE:Landroidx/lifecycle/Lifecycle$Event;
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lcom/otaliastudios/cameraview/CameraView;->D:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Lf/m/a/l/l;->J(Z)Lcom/google/android/gms/tasks/Task;
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->o:Lf/m/a/u/a;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Lf/m/a/u/a;->n()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public d()Z
|
|
.locals 5
|
|
|
|
sget-object v0, Lf/m/a/l/x/b;->e:Lf/m/a/l/x/b;
|
|
|
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
iget-object v1, v1, Lf/m/a/l/l;->g:Lf/m/a/l/x/c;
|
|
|
|
iget-object v1, v1, Lf/m/a/l/x/c;->f:Lf/m/a/l/x/b;
|
|
|
|
iget v1, v1, Lf/m/a/l/x/b;->mState:I
|
|
|
|
iget v2, v0, Lf/m/a/l/x/b;->mState:I
|
|
|
|
const/4 v3, 0x1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-lt v1, v2, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
iget-object v1, v1, Lf/m/a/l/l;->g:Lf/m/a/l/x/c;
|
|
|
|
iget-object v1, v1, Lf/m/a/l/x/c;->g:Lf/m/a/l/x/b;
|
|
|
|
iget v1, v1, Lf/m/a/l/x/b;->mState:I
|
|
|
|
iget v0, v0, Lf/m/a/l/x/b;->mState:I
|
|
|
|
if-lt v1, v0, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v0, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v3, 0x0
|
|
|
|
:goto_2
|
|
return v3
|
|
.end method
|
|
|
|
.method public destroy()V
|
|
.locals 4
|
|
.annotation runtime Landroidx/lifecycle/OnLifecycleEvent;
|
|
value = .enum Landroidx/lifecycle/Lifecycle$Event;->ON_DESTROY:Landroidx/lifecycle/Lifecycle$Event;
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lcom/otaliastudios/cameraview/CameraView;->D:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->u:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->clear()V
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->v:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iget-object v3, p0, Lcom/otaliastudios/cameraview/CameraView;->v:Ljava/util/List;
|
|
|
|
invoke-interface {v3}, Ljava/util/List;->clear()V
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {v0, v2}, Lf/m/a/l/l;->x(Z)V
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {v0, v1, v2}, Lf/m/a/l/l;->f(ZI)V
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->o:Lf/m/a/u/a;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
invoke-virtual {v0}, Lf/m/a/u/a;->m()V
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public e(Lf/m/a/o/a;Lf/m/a/o/b;)Z
|
|
.locals 5
|
|
.param p1 # Lf/m/a/o/a;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lf/m/a/o/b;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
sget-object v0, Lf/m/a/o/b;->d:Lf/m/a/o/b;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eq p2, v0, :cond_1
|
|
|
|
iget-object v3, p2, Lf/m/a/o/b;->type:Lf/m/a/o/e;
|
|
|
|
iget-object v4, p1, Lf/m/a/o/a;->type:Lf/m/a/o/e;
|
|
|
|
if-ne v3, v4, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v3, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v3, 0x1
|
|
|
|
:goto_1
|
|
if-eqz v3, :cond_a
|
|
|
|
iget-object v3, p0, Lcom/otaliastudios/cameraview/CameraView;->g:Ljava/util/HashMap;
|
|
|
|
invoke-virtual {v3, p1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_8
|
|
|
|
if-eq p1, v2, :cond_5
|
|
|
|
const/4 p2, 0x2
|
|
|
|
if-eq p1, p2, :cond_5
|
|
|
|
const/4 p2, 0x3
|
|
|
|
if-eq p1, p2, :cond_2
|
|
|
|
const/4 p2, 0x4
|
|
|
|
if-eq p1, p2, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
iget-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->z:Lf/m/a/o/g;
|
|
|
|
iget-object p2, p0, Lcom/otaliastudios/cameraview/CameraView;->g:Ljava/util/HashMap;
|
|
|
|
sget-object v3, Lf/m/a/o/a;->g:Lf/m/a/o/a;
|
|
|
|
invoke-virtual {p2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
if-ne p2, v0, :cond_3
|
|
|
|
iget-object p2, p0, Lcom/otaliastudios/cameraview/CameraView;->g:Ljava/util/HashMap;
|
|
|
|
sget-object v3, Lf/m/a/o/a;->h:Lf/m/a/o/a;
|
|
|
|
invoke-virtual {p2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
if-eq p2, v0, :cond_4
|
|
|
|
:cond_3
|
|
const/4 v1, 0x1
|
|
|
|
:cond_4
|
|
iput-boolean v1, p1, Lf/m/a/o/c;->a:Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
iget-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->y:Lf/m/a/o/h;
|
|
|
|
iget-object p2, p0, Lcom/otaliastudios/cameraview/CameraView;->g:Ljava/util/HashMap;
|
|
|
|
sget-object v3, Lf/m/a/o/a;->e:Lf/m/a/o/a;
|
|
|
|
invoke-virtual {p2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
if-ne p2, v0, :cond_6
|
|
|
|
iget-object p2, p0, Lcom/otaliastudios/cameraview/CameraView;->g:Ljava/util/HashMap;
|
|
|
|
sget-object v3, Lf/m/a/o/a;->f:Lf/m/a/o/a;
|
|
|
|
invoke-virtual {p2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
if-eq p2, v0, :cond_7
|
|
|
|
:cond_6
|
|
const/4 v1, 0x1
|
|
|
|
:cond_7
|
|
iput-boolean v1, p1, Lf/m/a/o/c;->a:Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
iget-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->x:Lf/m/a/o/f;
|
|
|
|
iget-object p2, p0, Lcom/otaliastudios/cameraview/CameraView;->g:Ljava/util/HashMap;
|
|
|
|
sget-object v3, Lf/m/a/o/a;->d:Lf/m/a/o/a;
|
|
|
|
invoke-virtual {p2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
if-eq p2, v0, :cond_9
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_9
|
|
iput-boolean v1, p1, Lf/m/a/o/c;->a:Z
|
|
|
|
:goto_2
|
|
return v2
|
|
|
|
:cond_a
|
|
invoke-virtual {p0, p1, v0}, Lcom/otaliastudios/cameraview/CameraView;->e(Lf/m/a/o/a;Lf/m/a/o/b;)Z
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method public final f(I)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const/high16 v0, -0x80000000
|
|
|
|
if-eq p1, v0, :cond_2
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const-string p1, "EXACTLY"
|
|
|
|
return-object p1
|
|
|
|
:cond_1
|
|
const-string p1, "UNSPECIFIED"
|
|
|
|
return-object p1
|
|
|
|
:cond_2
|
|
const-string p1, "AT_MOST"
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final g(Lf/m/a/o/c;Lf/m/a/c;)V
|
|
.locals 13
|
|
.param p1 # Lf/m/a/o/c;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lf/m/a/c;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p1, Lf/m/a/o/c;->b:Lf/m/a/o/a;
|
|
|
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView;->g:Ljava/util/HashMap;
|
|
|
|
invoke-virtual {v1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lf/m/a/o/b;
|
|
|
|
iget-object v2, p1, Lf/m/a/o/c;->c:[Landroid/graphics/PointF;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v3, 0x1
|
|
|
|
const/high16 v4, 0x3f800000 # 1.0f
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
packed-switch v1, :pswitch_data_0
|
|
|
|
goto/16 :goto_1
|
|
|
|
:pswitch_0
|
|
invoke-virtual {p0}, Lcom/otaliastudios/cameraview/CameraView;->getFilter()Lf/m/a/m/b;
|
|
|
|
move-result-object p2
|
|
|
|
instance-of p2, p2, Lf/m/a/m/e;
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
invoke-virtual {p0}, Lcom/otaliastudios/cameraview/CameraView;->getFilter()Lf/m/a/m/b;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lf/m/a/m/e;
|
|
|
|
invoke-interface {p2}, Lf/m/a/m/e;->f()F
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v0, v6, v4}, Lf/m/a/o/c;->a(FFF)F
|
|
|
|
move-result p1
|
|
|
|
cmpl-float v0, p1, v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-interface {p2, p1}, Lf/m/a/m/e;->a(F)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:pswitch_1
|
|
invoke-virtual {p0}, Lcom/otaliastudios/cameraview/CameraView;->getFilter()Lf/m/a/m/b;
|
|
|
|
move-result-object p2
|
|
|
|
instance-of p2, p2, Lf/m/a/m/d;
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
invoke-virtual {p0}, Lcom/otaliastudios/cameraview/CameraView;->getFilter()Lf/m/a/m/b;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lf/m/a/m/d;
|
|
|
|
invoke-interface {p2}, Lf/m/a/m/d;->h()F
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v0, v6, v4}, Lf/m/a/o/c;->a(FFF)F
|
|
|
|
move-result p1
|
|
|
|
cmpl-float v0, p1, v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-interface {p2, p1}, Lf/m/a/m/d;->c(F)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:pswitch_2
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget v0, v0, Lf/m/a/l/k;->z:F
|
|
|
|
iget v1, p2, Lf/m/a/c;->m:F
|
|
|
|
iget p2, p2, Lf/m/a/c;->n:F
|
|
|
|
invoke-virtual {p1, v0, v1, p2}, Lf/m/a/o/c;->a(FFF)F
|
|
|
|
move-result p1
|
|
|
|
cmpl-float v0, p1, v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v0, v0, [F
|
|
|
|
aput v1, v0, v5
|
|
|
|
aput p2, v0, v3
|
|
|
|
iget-object p2, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {p2, p1, v0, v2, v3}, Lf/m/a/l/l;->u(F[F[Landroid/graphics/PointF;Z)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:pswitch_3
|
|
iget-object p2, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast p2, Lf/m/a/l/k;
|
|
|
|
iget p2, p2, Lf/m/a/l/k;->y:F
|
|
|
|
invoke-virtual {p1, p2, v6, v4}, Lf/m/a/o/c;->a(FFF)F
|
|
|
|
move-result p1
|
|
|
|
cmpl-float p2, p1, p2
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
iget-object p2, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {p2, p1, v2, v3}, Lf/m/a/l/l;->E(F[Landroid/graphics/PointF;Z)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:pswitch_4
|
|
invoke-virtual {p0}, Lcom/otaliastudios/cameraview/CameraView;->h()V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:pswitch_5
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getWidth()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getHeight()I
|
|
|
|
move-result p2
|
|
|
|
aget-object v1, v2, v5
|
|
|
|
int-to-float p1, p1
|
|
|
|
const v3, 0x3d4ccccd # 0.05f
|
|
|
|
mul-float v4, p1, v3
|
|
|
|
int-to-float p2, p2
|
|
|
|
mul-float v3, v3, p2
|
|
|
|
invoke-static {v1, v4, v3}, Lf/m/a/r/b;->a(Landroid/graphics/PointF;FF)Landroid/graphics/RectF;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v3, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
new-instance v4, Landroid/graphics/PointF;
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/RectF;->centerX()F
|
|
|
|
move-result v7
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/RectF;->centerY()F
|
|
|
|
move-result v8
|
|
|
|
invoke-direct {v4, v7, v8}, Landroid/graphics/PointF;-><init>(FF)V
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/RectF;->width()F
|
|
|
|
move-result v7
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/RectF;->height()F
|
|
|
|
move-result v8
|
|
|
|
new-instance v9, Lf/m/a/r/a;
|
|
|
|
const/16 v10, 0x3e8
|
|
|
|
invoke-direct {v9, v1, v10}, Lf/m/a/r/a;-><init>(Landroid/graphics/RectF;I)V
|
|
|
|
invoke-virtual {v3, v9}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
const/high16 v1, 0x3fc00000 # 1.5f
|
|
|
|
mul-float v7, v7, v1
|
|
|
|
mul-float v8, v8, v1
|
|
|
|
invoke-static {v4, v7, v8}, Lf/m/a/r/b;->a(Landroid/graphics/PointF;FF)Landroid/graphics/RectF;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v4, Lf/m/a/r/a;
|
|
|
|
const v7, 0x3dcccccd # 0.1f
|
|
|
|
int-to-float v8, v10
|
|
|
|
mul-float v8, v8, v7
|
|
|
|
invoke-static {v8}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v7
|
|
|
|
invoke-direct {v4, v1, v7}, Lf/m/a/r/a;-><init>(Landroid/graphics/RectF;I)V
|
|
|
|
invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
invoke-virtual {v3}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v3
|
|
|
|
:goto_0
|
|
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Lf/m/a/r/a;
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
new-instance v7, Landroid/graphics/RectF;
|
|
|
|
invoke-direct {v7, v6, v6, p1, p2}, Landroid/graphics/RectF;-><init>(FFFF)V
|
|
|
|
new-instance v8, Landroid/graphics/RectF;
|
|
|
|
invoke-direct {v8}, Landroid/graphics/RectF;-><init>()V
|
|
|
|
iget v9, v7, Landroid/graphics/RectF;->left:F
|
|
|
|
iget-object v10, v4, Lf/m/a/r/a;->d:Landroid/graphics/RectF;
|
|
|
|
iget v10, v10, Landroid/graphics/RectF;->left:F
|
|
|
|
invoke-static {v9, v10}, Ljava/lang/Math;->max(FF)F
|
|
|
|
move-result v9
|
|
|
|
iget v10, v7, Landroid/graphics/RectF;->top:F
|
|
|
|
iget-object v11, v4, Lf/m/a/r/a;->d:Landroid/graphics/RectF;
|
|
|
|
iget v11, v11, Landroid/graphics/RectF;->top:F
|
|
|
|
invoke-static {v10, v11}, Ljava/lang/Math;->max(FF)F
|
|
|
|
move-result v10
|
|
|
|
iget v11, v7, Landroid/graphics/RectF;->right:F
|
|
|
|
iget-object v12, v4, Lf/m/a/r/a;->d:Landroid/graphics/RectF;
|
|
|
|
iget v12, v12, Landroid/graphics/RectF;->right:F
|
|
|
|
invoke-static {v11, v12}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result v11
|
|
|
|
iget v7, v7, Landroid/graphics/RectF;->bottom:F
|
|
|
|
iget-object v12, v4, Lf/m/a/r/a;->d:Landroid/graphics/RectF;
|
|
|
|
iget v12, v12, Landroid/graphics/RectF;->bottom:F
|
|
|
|
invoke-static {v7, v12}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result v7
|
|
|
|
invoke-virtual {v8, v9, v10, v11, v7}, Landroid/graphics/RectF;->set(FFFF)V
|
|
|
|
new-instance v7, Lf/m/a/r/a;
|
|
|
|
iget v4, v4, Lf/m/a/r/a;->e:I
|
|
|
|
invoke-direct {v7, v8, v4}, Lf/m/a/r/a;-><init>(Landroid/graphics/RectF;I)V
|
|
|
|
invoke-virtual {v1, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
new-instance p1, Lf/m/a/r/b;
|
|
|
|
invoke-direct {p1, v1}, Lf/m/a/r/b;-><init>(Ljava/util/List;)V
|
|
|
|
iget-object p2, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
aget-object v1, v2, v5
|
|
|
|
invoke-virtual {p2, v0, p1, v1}, Lf/m/a/l/l;->G(Lf/m/a/o/a;Lf/m/a/r/b;Landroid/graphics/PointF;)V
|
|
|
|
:cond_2
|
|
:goto_1
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public bridge synthetic generateLayoutParams(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Lcom/otaliastudios/cameraview/CameraView;->generateLayoutParams(Landroid/util/AttributeSet;)Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public generateLayoutParams(Landroid/util/AttributeSet;)Landroid/widget/FrameLayout$LayoutParams;
|
|
.locals 3
|
|
|
|
iget-boolean v0, p0, Lcom/otaliastudios/cameraview/CameraView;->D:Z
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->E:Lf/m/a/s/b;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v2, Lcom/otaliastudios/cameraview/R$c;->CameraView_Layout:[I
|
|
|
|
invoke-virtual {v0, p1, v2}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object v0
|
|
|
|
sget v2, Lcom/otaliastudios/cameraview/R$c;->CameraView_Layout_layout_drawOnPreview:I
|
|
|
|
invoke-virtual {v0, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
sget v2, Lcom/otaliastudios/cameraview/R$c;->CameraView_Layout_layout_drawOnPictureSnapshot:I
|
|
|
|
invoke-virtual {v0, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
sget v2, Lcom/otaliastudios/cameraview/R$c;->CameraView_Layout_layout_drawOnVideoSnapshot:I
|
|
|
|
invoke-virtual {v0, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
:cond_1
|
|
const/4 v1, 0x1
|
|
|
|
:cond_2
|
|
invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_4
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->E:Lf/m/a/s/b;
|
|
|
|
invoke-virtual {v0, p1}, Lf/m/a/s/b;->a(Landroid/util/AttributeSet;)Lf/m/a/s/b$a;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_3
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
|
|
:cond_4
|
|
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->generateLayoutParams(Landroid/util/AttributeSet;)Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public getAudio()Lf/m/a/k/a;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v0, v0, Lf/m/a/l/k;->M:Lf/m/a/k/a;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getAudioBitRate()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget v0, v0, Lf/m/a/l/k;->Q:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getAudioCodec()Lf/m/a/k/b;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v0, v0, Lf/m/a/l/k;->u:Lf/m/a/k/b;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getAutoFocusResetDelay()J
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-wide v0, v0, Lf/m/a/l/k;->R:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public getCameraOptions()Lf/m/a/c;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v0, v0, Lf/m/a/l/k;->j:Lf/m/a/c;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getEngine()Lf/m/a/k/d;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->i:Lf/m/a/k/d;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getExposureCorrection()F
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget v0, v0, Lf/m/a/l/k;->z:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getFacing()Lf/m/a/k/e;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v0, v0, Lf/m/a/l/k;->K:Lf/m/a/k/e;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getFilter()Lf/m/a/m/b;
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->o:Lf/m/a/u/a;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->j:Lf/m/a/m/b;
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
instance-of v1, v0, Lf/m/a/u/b;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
check-cast v0, Lf/m/a/u/b;
|
|
|
|
invoke-interface {v0}, Lf/m/a/u/b;->b()Lf/m/a/m/b;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
const-string v1, "Filters are only supported by the GL_SURFACE preview. Current:"
|
|
|
|
invoke-static {v1}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lcom/otaliastudios/cameraview/CameraView;->h:Lf/m/a/k/k;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public getFlash()Lf/m/a/k/f;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v0, v0, Lf/m/a/l/k;->r:Lf/m/a/k/f;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getFrameProcessingExecutors()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/otaliastudios/cameraview/CameraView;->k:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getFrameProcessingFormat()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget v0, v0, Lf/m/a/l/k;->p:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getFrameProcessingMaxHeight()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget v0, v0, Lf/m/a/l/k;->V:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getFrameProcessingMaxWidth()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget v0, v0, Lf/m/a/l/k;->U:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getFrameProcessingPoolSize()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget v0, v0, Lf/m/a/l/k;->W:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getGrid()Lf/m/a/k/g;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->A:Lf/m/a/p/c;
|
|
|
|
invoke-virtual {v0}, Lf/m/a/p/c;->getGridMode()Lf/m/a/k/g;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getGridColor()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->A:Lf/m/a/p/c;
|
|
|
|
invoke-virtual {v0}, Lf/m/a/p/c;->getGridColor()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getHdr()Lf/m/a/k/h;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v0, v0, Lf/m/a/l/k;->v:Lf/m/a/k/h;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getLocation()Landroid/location/Location;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v0, v0, Lf/m/a/l/k;->x:Landroid/location/Location;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getMode()Lf/m/a/k/i;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v0, v0, Lf/m/a/l/k;->L:Lf/m/a/k/i;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getPictureFormat()Lf/m/a/k/j;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v0, v0, Lf/m/a/l/k;->w:Lf/m/a/k/j;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getPictureMetering()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-boolean v0, v0, Lf/m/a/l/k;->B:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPictureSize()Lf/m/a/v/b;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
sget-object v1, Lf/m/a/l/v/c;->g:Lf/m/a/l/v/c;
|
|
|
|
invoke-virtual {v0, v1}, Lf/m/a/l/l;->g(Lf/m/a/l/v/c;)Lf/m/a/v/b;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getPictureSnapshotMetering()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-boolean v0, v0, Lf/m/a/l/k;->C:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPlaySounds()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/otaliastudios/cameraview/CameraView;->d:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPreview()Lf/m/a/k/k;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->h:Lf/m/a/k/k;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getPreviewFrameRate()F
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget v0, v0, Lf/m/a/l/k;->D:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPreviewFrameRateExact()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-boolean v0, v0, Lf/m/a/l/k;->E:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSnapshotMaxHeight()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget v0, v0, Lf/m/a/l/k;->T:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSnapshotMaxWidth()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget v0, v0, Lf/m/a/l/k;->S:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSnapshotSize()Lf/m/a/v/b;
|
|
.locals 9
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
sget-object v0, Lf/m/a/l/v/c;->f:Lf/m/a/l/v/c;
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getWidth()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_b
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getHeight()I
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
goto/16 :goto_6
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v1, Lf/m/a/l/k;
|
|
|
|
invoke-virtual {v1, v0}, Lf/m/a/l/k;->h(Lf/m/a/l/v/c;)Lf/m/a/v/b;
|
|
|
|
move-result-object v3
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
move-object v4, v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
iget-object v4, v1, Lf/m/a/l/k;->G:Lf/m/a/l/v/a;
|
|
|
|
invoke-virtual {v4, v0, v0}, Lf/m/a/l/v/a;->b(Lf/m/a/l/v/c;Lf/m/a/l/v/c;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
iget v5, v1, Lf/m/a/l/k;->T:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget v5, v1, Lf/m/a/l/k;->S:I
|
|
|
|
:goto_0
|
|
if-eqz v4, :cond_3
|
|
|
|
iget v1, v1, Lf/m/a/l/k;->S:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
iget v1, v1, Lf/m/a/l/k;->T:I
|
|
|
|
:goto_1
|
|
const v4, 0x7fffffff
|
|
|
|
if-gtz v5, :cond_4
|
|
|
|
const v5, 0x7fffffff
|
|
|
|
:cond_4
|
|
if-gtz v1, :cond_5
|
|
|
|
const v1, 0x7fffffff
|
|
|
|
:cond_5
|
|
invoke-static {v3}, Lf/m/a/v/a;->g(Lf/m/a/v/b;)Lf/m/a/v/a;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4}, Lf/m/a/v/a;->i()F
|
|
|
|
move-result v4
|
|
|
|
invoke-static {v5, v1}, Lf/m/a/v/a;->f(II)Lf/m/a/v/a;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6}, Lf/m/a/v/a;->i()F
|
|
|
|
move-result v6
|
|
|
|
cmpl-float v6, v6, v4
|
|
|
|
if-ltz v6, :cond_6
|
|
|
|
iget v3, v3, Lf/m/a/v/b;->e:I
|
|
|
|
invoke-static {v3, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v3, v1
|
|
|
|
mul-float v3, v3, v4
|
|
|
|
float-to-double v3, v3
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/Math;->floor(D)D
|
|
|
|
move-result-wide v3
|
|
|
|
double-to-int v3, v3
|
|
|
|
new-instance v4, Lf/m/a/v/b;
|
|
|
|
invoke-direct {v4, v3, v1}, Lf/m/a/v/b;-><init>(II)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
iget v1, v3, Lf/m/a/v/b;->d:I
|
|
|
|
invoke-static {v1, v5}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v3, v1
|
|
|
|
div-float/2addr v3, v4
|
|
|
|
float-to-double v3, v3
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/Math;->floor(D)D
|
|
|
|
move-result-wide v3
|
|
|
|
double-to-int v3, v3
|
|
|
|
new-instance v4, Lf/m/a/v/b;
|
|
|
|
invoke-direct {v4, v1, v3}, Lf/m/a/v/b;-><init>(II)V
|
|
|
|
:goto_2
|
|
if-nez v4, :cond_7
|
|
|
|
return-object v2
|
|
|
|
:cond_7
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getWidth()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getHeight()I
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v1, v2}, Lf/m/a/v/a;->f(II)Lf/m/a/v/a;
|
|
|
|
move-result-object v1
|
|
|
|
iget v2, v4, Lf/m/a/v/b;->d:I
|
|
|
|
iget v3, v4, Lf/m/a/v/b;->e:I
|
|
|
|
const v5, 0x3a03126f # 5.0E-4f
|
|
|
|
invoke-virtual {v1}, Lf/m/a/v/a;->i()F
|
|
|
|
move-result v6
|
|
|
|
iget v7, v4, Lf/m/a/v/b;->d:I
|
|
|
|
int-to-float v7, v7
|
|
|
|
iget v4, v4, Lf/m/a/v/b;->e:I
|
|
|
|
int-to-float v4, v4
|
|
|
|
div-float/2addr v7, v4
|
|
|
|
sub-float/2addr v6, v7
|
|
|
|
invoke-static {v6}, Ljava/lang/Math;->abs(F)F
|
|
|
|
move-result v4
|
|
|
|
const/4 v6, 0x0
|
|
|
|
cmpg-float v4, v4, v5
|
|
|
|
if-gtz v4, :cond_8
|
|
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_8
|
|
const/4 v4, 0x0
|
|
|
|
:goto_3
|
|
if-eqz v4, :cond_9
|
|
|
|
new-instance v1, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {v1, v6, v6, v2, v3}, Landroid/graphics/Rect;-><init>(IIII)V
|
|
|
|
goto :goto_5
|
|
|
|
:cond_9
|
|
invoke-static {v2, v3}, Lf/m/a/v/a;->f(II)Lf/m/a/v/a;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4}, Lf/m/a/v/a;->i()F
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {v1}, Lf/m/a/v/a;->i()F
|
|
|
|
move-result v5
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
cmpl-float v4, v4, v5
|
|
|
|
if-lez v4, :cond_a
|
|
|
|
int-to-float v4, v3
|
|
|
|
invoke-virtual {v1}, Lf/m/a/v/a;->i()F
|
|
|
|
move-result v1
|
|
|
|
mul-float v1, v1, v4
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v2, v1
|
|
|
|
int-to-float v2, v2
|
|
|
|
div-float/2addr v2, v7
|
|
|
|
invoke-static {v2}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v2
|
|
|
|
move v6, v2
|
|
|
|
move v2, v1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_4
|
|
|
|
:cond_a
|
|
int-to-float v4, v2
|
|
|
|
invoke-virtual {v1}, Lf/m/a/v/a;->i()F
|
|
|
|
move-result v1
|
|
|
|
div-float/2addr v4, v1
|
|
|
|
invoke-static {v4}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v3, v1
|
|
|
|
int-to-float v3, v3
|
|
|
|
div-float/2addr v3, v7
|
|
|
|
invoke-static {v3}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v3
|
|
|
|
move v8, v3
|
|
|
|
move v3, v1
|
|
|
|
move v1, v8
|
|
|
|
:goto_4
|
|
new-instance v4, Landroid/graphics/Rect;
|
|
|
|
add-int/2addr v2, v6
|
|
|
|
add-int/2addr v3, v1
|
|
|
|
invoke-direct {v4, v6, v1, v2, v3}, Landroid/graphics/Rect;-><init>(IIII)V
|
|
|
|
move-object v1, v4
|
|
|
|
:goto_5
|
|
new-instance v2, Lf/m/a/v/b;
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/Rect;->width()I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/Rect;->height()I
|
|
|
|
move-result v1
|
|
|
|
invoke-direct {v2, v3, v1}, Lf/m/a/v/b;-><init>(II)V
|
|
|
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v1, Lf/m/a/l/k;
|
|
|
|
iget-object v1, v1, Lf/m/a/l/k;->G:Lf/m/a/l/v/a;
|
|
|
|
sget-object v3, Lf/m/a/l/v/c;->g:Lf/m/a/l/v/c;
|
|
|
|
invoke-virtual {v1, v0, v3}, Lf/m/a/l/v/a;->b(Lf/m/a/l/v/c;Lf/m/a/l/v/c;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_b
|
|
|
|
invoke-virtual {v2}, Lf/m/a/v/b;->f()Lf/m/a/v/b;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_b
|
|
:goto_6
|
|
return-object v2
|
|
.end method
|
|
|
|
.method public getUseDeviceOrientation()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/otaliastudios/cameraview/CameraView;->e:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getVideoBitRate()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget v0, v0, Lf/m/a/l/k;->P:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getVideoCodec()Lf/m/a/k/l;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v0, v0, Lf/m/a/l/k;->t:Lf/m/a/k/l;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getVideoMaxDuration()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget v0, v0, Lf/m/a/l/k;->O:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getVideoMaxSize()J
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-wide v0, v0, Lf/m/a/l/k;->N:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public getVideoSize()Lf/m/a/v/b;
|
|
.locals 5
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
sget-object v1, Lf/m/a/l/v/c;->g:Lf/m/a/l/v/c;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v2, v0, Lf/m/a/l/k;->m:Lf/m/a/v/b;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget-object v3, v0, Lf/m/a/l/k;->L:Lf/m/a/k/i;
|
|
|
|
sget-object v4, Lf/m/a/k/i;->d:Lf/m/a/k/i;
|
|
|
|
if-ne v3, v4, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, v0, Lf/m/a/l/k;->G:Lf/m/a/l/v/a;
|
|
|
|
sget-object v3, Lf/m/a/l/v/c;->e:Lf/m/a/l/v/c;
|
|
|
|
invoke-virtual {v0, v3, v1}, Lf/m/a/l/v/a;->b(Lf/m/a/l/v/c;Lf/m/a/l/v/c;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {v2}, Lf/m/a/v/b;->f()Lf/m/a/v/b;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v2, 0x0
|
|
|
|
:cond_2
|
|
:goto_1
|
|
return-object v2
|
|
.end method
|
|
|
|
.method public getWhiteBalance()Lf/m/a/k/m;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v0, v0, Lf/m/a/l/k;->s:Lf/m/a/k/m;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getZoom()F
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget v0, v0, Lf/m/a/l/k;->y:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public h()V
|
|
.locals 6
|
|
|
|
new-instance v0, Lf/m/a/j;
|
|
|
|
invoke-direct {v0}, Lf/m/a/j;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v1, Lf/m/a/l/k;
|
|
|
|
iget-boolean v2, v1, Lf/m/a/l/k;->B:Z
|
|
|
|
iget-object v3, v1, Lf/m/a/l/l;->g:Lf/m/a/l/x/c;
|
|
|
|
sget-object v4, Lf/m/a/l/x/b;->f:Lf/m/a/l/x/b;
|
|
|
|
new-instance v5, Lf/m/a/l/j;
|
|
|
|
invoke-direct {v5, v1, v0, v2}, Lf/m/a/l/j;-><init>(Lf/m/a/l/k;Lf/m/a/j;Z)V
|
|
|
|
const-string v0, "take picture"
|
|
|
|
invoke-virtual {v3, v0, v4, v5}, Lf/m/a/l/x/c;->h(Ljava/lang/String;Lf/m/a/l/x/b;Ljava/lang/Runnable;)Lcom/google/android/gms/tasks/Task;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onAttachedToWindow()V
|
|
.locals 8
|
|
|
|
invoke-super {p0}, Landroid/widget/FrameLayout;->onAttachedToWindow()V
|
|
|
|
iget-boolean v0, p0, Lcom/otaliastudios/cameraview/CameraView;->D:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->o:Lf/m/a/u/a;
|
|
|
|
if-nez v0, :cond_5
|
|
|
|
sget-object v0, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
const/4 v1, 0x3
|
|
|
|
new-array v2, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const-string v4, "doInstantiateEngine:"
|
|
|
|
aput-object v4, v2, v3
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const-string v6, "instantiating. preview:"
|
|
|
|
aput-object v6, v2, v5
|
|
|
|
iget-object v6, p0, Lcom/otaliastudios/cameraview/CameraView;->h:Lf/m/a/k/k;
|
|
|
|
const/4 v7, 0x2
|
|
|
|
aput-object v6, v2, v7
|
|
|
|
invoke-virtual {v0, v7, v2}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->h:Lf/m/a/k/k;
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
if-eq v0, v5, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->isHardwareAccelerated()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
new-instance v0, Lf/m/a/u/i;
|
|
|
|
invoke-direct {v0, v2, p0}, Lf/m/a/u/i;-><init>(Landroid/content/Context;Landroid/view/ViewGroup;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
sget-object v0, Lf/m/a/k/k;->f:Lf/m/a/k/k;
|
|
|
|
iput-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->h:Lf/m/a/k/k;
|
|
|
|
new-instance v0, Lf/m/a/u/d;
|
|
|
|
invoke-direct {v0, v2, p0}, Lf/m/a/u/d;-><init>(Landroid/content/Context;Landroid/view/ViewGroup;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
new-instance v0, Lf/m/a/u/g;
|
|
|
|
invoke-direct {v0, v2, p0}, Lf/m/a/u/g;-><init>(Landroid/content/Context;Landroid/view/ViewGroup;)V
|
|
|
|
:goto_1
|
|
iput-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->o:Lf/m/a/u/a;
|
|
|
|
sget-object v2, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
aput-object v4, v1, v3
|
|
|
|
const-string v3, "instantiated. preview:"
|
|
|
|
aput-object v3, v1, v5
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
aput-object v0, v1, v7
|
|
|
|
invoke-virtual {v2, v7, v1}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView;->o:Lf/m/a/u/a;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v2, v0, Lf/m/a/l/k;->i:Lf/m/a/u/a;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
invoke-virtual {v2, v3}, Lf/m/a/u/a;->r(Lf/m/a/u/a$c;)V
|
|
|
|
:cond_4
|
|
iput-object v1, v0, Lf/m/a/l/k;->i:Lf/m/a/u/a;
|
|
|
|
invoke-virtual {v1, v0}, Lf/m/a/u/a;->r(Lf/m/a/u/a$c;)V
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->j:Lf/m/a/m/b;
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setFilter(Lf/m/a/m/b;)V
|
|
|
|
iput-object v3, p0, Lcom/otaliastudios/cameraview/CameraView;->j:Lf/m/a/m/b;
|
|
|
|
:cond_5
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->p:Lf/m/a/p/d;
|
|
|
|
invoke-virtual {v0}, Lf/m/a/p/d;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDetachedFromWindow()V
|
|
.locals 3
|
|
|
|
iget-boolean v0, p0, Lcom/otaliastudios/cameraview/CameraView;->D:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->p:Lf/m/a/p/d;
|
|
|
|
iget-object v1, v0, Lf/m/a/p/d;->c:Landroid/view/OrientationEventListener;
|
|
|
|
invoke-virtual {v1}, Landroid/view/OrientationEventListener;->disable()V
|
|
|
|
iget-object v1, v0, Lf/m/a/p/d;->a:Landroid/content/Context;
|
|
|
|
const-string v2, "display"
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/hardware/display/DisplayManager;
|
|
|
|
iget-object v2, v0, Lf/m/a/p/d;->e:Landroid/hardware/display/DisplayManager$DisplayListener;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/hardware/display/DisplayManager;->unregisterDisplayListener(Landroid/hardware/display/DisplayManager$DisplayListener;)V
|
|
|
|
const/4 v1, -0x1
|
|
|
|
iput v1, v0, Lf/m/a/p/d;->f:I
|
|
|
|
iput v1, v0, Lf/m/a/p/d;->d:I
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->r:Lf/m/a/v/b;
|
|
|
|
invoke-super {p0}, Landroid/widget/FrameLayout;->onDetachedFromWindow()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onMeasure(II)V
|
|
.locals 16
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
iget-boolean v1, v0, Lcom/otaliastudios/cameraview/CameraView;->D:Z
|
|
|
|
const/high16 v2, 0x40000000 # 2.0f
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-static/range {p1 .. p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result v3
|
|
|
|
invoke-static {v1, v2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v3, v2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v2
|
|
|
|
invoke-super {v0, v1, v2}, Landroid/widget/FrameLayout;->onMeasure(II)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v1, v0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
sget-object v3, Lf/m/a/l/v/c;->f:Lf/m/a/l/v/c;
|
|
|
|
invoke-virtual {v1, v3}, Lf/m/a/l/l;->h(Lf/m/a/l/v/c;)Lf/m/a/v/b;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Lcom/otaliastudios/cameraview/CameraView;->r:Lf/m/a/v/b;
|
|
|
|
const-string v3, "onMeasure:"
|
|
|
|
const/4 v4, 0x2
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
sget-object v1, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
new-array v2, v4, [Ljava/lang/Object;
|
|
|
|
aput-object v3, v2, v5
|
|
|
|
const-string v3, "surface is not ready. Calling default behavior."
|
|
|
|
aput-object v3, v2, v6
|
|
|
|
invoke-virtual {v1, v4, v2}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
invoke-super/range {p0 .. p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-static/range {p1 .. p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result v7
|
|
|
|
invoke-static/range {p1 .. p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result v8
|
|
|
|
invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result v9
|
|
|
|
iget-object v10, v0, Lcom/otaliastudios/cameraview/CameraView;->r:Lf/m/a/v/b;
|
|
|
|
iget v11, v10, Lf/m/a/v/b;->d:I
|
|
|
|
int-to-float v11, v11
|
|
|
|
iget v10, v10, Lf/m/a/v/b;->e:I
|
|
|
|
int-to-float v10, v10
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v12
|
|
|
|
iget-object v13, v0, Lcom/otaliastudios/cameraview/CameraView;->o:Lf/m/a/u/a;
|
|
|
|
invoke-virtual {v13}, Lf/m/a/u/a;->s()Z
|
|
|
|
move-result v13
|
|
|
|
const/high16 v14, -0x80000000
|
|
|
|
if-nez v13, :cond_3
|
|
|
|
if-ne v1, v2, :cond_2
|
|
|
|
const/high16 v1, -0x80000000
|
|
|
|
:cond_2
|
|
if-ne v7, v2, :cond_5
|
|
|
|
const/high16 v7, -0x80000000
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const/4 v2, -0x1
|
|
|
|
if-ne v1, v14, :cond_4
|
|
|
|
iget v13, v12, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
if-ne v13, v2, :cond_4
|
|
|
|
const/high16 v1, 0x40000000 # 2.0f
|
|
|
|
:cond_4
|
|
if-ne v7, v14, :cond_5
|
|
|
|
iget v12, v12, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
if-ne v12, v2, :cond_5
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
:cond_5
|
|
:goto_0
|
|
sget-object v2, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
new-array v12, v4, [Ljava/lang/Object;
|
|
|
|
aput-object v3, v12, v5
|
|
|
|
const-string v13, "requested dimensions are ("
|
|
|
|
const-string v14, "["
|
|
|
|
invoke-static {v13, v8, v14}, Lf/e/b/a/a;->E(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-virtual {v0, v1}, Lcom/otaliastudios/cameraview/CameraView;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v15
|
|
|
|
invoke-virtual {v13, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v15, "]x"
|
|
|
|
invoke-virtual {v13, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v13, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v13, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v7}, Lcom/otaliastudios/cameraview/CameraView;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v14
|
|
|
|
invoke-virtual {v13, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v14, "])"
|
|
|
|
invoke-virtual {v13, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v13
|
|
|
|
aput-object v13, v12, v6
|
|
|
|
invoke-virtual {v2, v6, v12}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
sget-object v2, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
const/4 v12, 0x3
|
|
|
|
new-array v12, v12, [Ljava/lang/Object;
|
|
|
|
aput-object v3, v12, v5
|
|
|
|
const-string v5, "previewSize is"
|
|
|
|
aput-object v5, v12, v6
|
|
|
|
new-instance v5, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v13, "("
|
|
|
|
invoke-virtual {v5, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v5, v11}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
|
|
|
|
const-string v14, "x"
|
|
|
|
invoke-virtual {v5, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v5, v10}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
|
|
|
|
const-string v15, ")"
|
|
|
|
invoke-virtual {v5, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
aput-object v5, v12, v4
|
|
|
|
invoke-virtual {v2, v6, v12}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
const/4 v2, 0x4
|
|
|
|
const/high16 v5, 0x40000000 # 2.0f
|
|
|
|
if-ne v1, v5, :cond_6
|
|
|
|
if-ne v7, v5, :cond_6
|
|
|
|
sget-object v1, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
aput-object v3, v2, v5
|
|
|
|
const-string v3, "both are MATCH_PARENT or fixed value. We adapt."
|
|
|
|
aput-object v3, v2, v6
|
|
|
|
const-string v3, "This means CROP_CENTER."
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-static {v13, v8, v14, v9, v15}, Lf/e/b/a/a;->k(Ljava/lang/String;ILjava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x3
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-virtual {v1, v6, v2}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
invoke-super/range {p0 .. p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
|
|
|
|
return-void
|
|
|
|
:cond_6
|
|
if-nez v1, :cond_7
|
|
|
|
if-nez v7, :cond_7
|
|
|
|
sget-object v1, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
aput-object v3, v2, v5
|
|
|
|
const-string v3, "both are completely free."
|
|
|
|
aput-object v3, v2, v6
|
|
|
|
const-string v3, "We respect that and extend to the whole preview size."
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v3, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v11}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v10}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x3
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-virtual {v1, v6, v2}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
float-to-int v1, v11
|
|
|
|
const/high16 v2, 0x40000000 # 2.0f
|
|
|
|
invoke-static {v1, v2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v1
|
|
|
|
float-to-int v3, v10
|
|
|
|
invoke-static {v3, v2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v2
|
|
|
|
invoke-super {v0, v1, v2}, Landroid/widget/FrameLayout;->onMeasure(II)V
|
|
|
|
return-void
|
|
|
|
:cond_7
|
|
const/high16 v5, 0x40000000 # 2.0f
|
|
|
|
div-float/2addr v10, v11
|
|
|
|
if-eqz v1, :cond_e
|
|
|
|
if-nez v7, :cond_8
|
|
|
|
goto/16 :goto_5
|
|
|
|
:cond_8
|
|
if-eq v1, v5, :cond_b
|
|
|
|
if-ne v7, v5, :cond_9
|
|
|
|
goto :goto_2
|
|
|
|
:cond_9
|
|
int-to-float v1, v9
|
|
|
|
int-to-float v5, v8
|
|
|
|
div-float v7, v1, v5
|
|
|
|
cmpl-float v7, v7, v10
|
|
|
|
if-ltz v7, :cond_a
|
|
|
|
mul-float v5, v5, v10
|
|
|
|
invoke-static {v5}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v9
|
|
|
|
goto :goto_1
|
|
|
|
:cond_a
|
|
div-float/2addr v1, v10
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v8
|
|
|
|
:goto_1
|
|
sget-object v1, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
aput-object v3, v2, v5
|
|
|
|
const-string v3, "both dimension were AT_MOST."
|
|
|
|
aput-object v3, v2, v6
|
|
|
|
const-string v3, "We fit the preview aspect ratio."
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-static {v13, v8, v14, v9, v15}, Lf/e/b/a/a;->k(Ljava/lang/String;ILjava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x3
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-virtual {v1, v6, v2}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
const/high16 v1, 0x40000000 # 2.0f
|
|
|
|
invoke-static {v8, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v9, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v1
|
|
|
|
invoke-super {v0, v2, v1}, Landroid/widget/FrameLayout;->onMeasure(II)V
|
|
|
|
return-void
|
|
|
|
:cond_b
|
|
:goto_2
|
|
const/high16 v5, -0x80000000
|
|
|
|
if-ne v1, v5, :cond_c
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_c
|
|
const/4 v1, 0x0
|
|
|
|
:goto_3
|
|
if-eqz v1, :cond_d
|
|
|
|
int-to-float v1, v9
|
|
|
|
div-float/2addr v1, v10
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1, v8}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v8
|
|
|
|
goto :goto_4
|
|
|
|
:cond_d
|
|
int-to-float v1, v8
|
|
|
|
mul-float v1, v1, v10
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1, v9}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v9
|
|
|
|
:goto_4
|
|
sget-object v1, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
aput-object v3, v2, v5
|
|
|
|
const-string v3, "one dimension was EXACTLY, another AT_MOST."
|
|
|
|
aput-object v3, v2, v6
|
|
|
|
const-string v3, "We have TRIED to fit the aspect ratio, but it\'s not guaranteed."
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-static {v13, v8, v14, v9, v15}, Lf/e/b/a/a;->k(Ljava/lang/String;ILjava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x3
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-virtual {v1, v6, v2}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
const/high16 v1, 0x40000000 # 2.0f
|
|
|
|
invoke-static {v8, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v9, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v1
|
|
|
|
invoke-super {v0, v2, v1}, Landroid/widget/FrameLayout;->onMeasure(II)V
|
|
|
|
return-void
|
|
|
|
:cond_e
|
|
:goto_5
|
|
if-nez v1, :cond_f
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_6
|
|
|
|
:cond_f
|
|
const/4 v1, 0x0
|
|
|
|
:goto_6
|
|
if-eqz v1, :cond_10
|
|
|
|
int-to-float v1, v9
|
|
|
|
div-float/2addr v1, v10
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v8
|
|
|
|
goto :goto_7
|
|
|
|
:cond_10
|
|
int-to-float v1, v8
|
|
|
|
mul-float v1, v1, v10
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v9
|
|
|
|
:goto_7
|
|
sget-object v1, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
const/4 v2, 0x3
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
aput-object v3, v2, v5
|
|
|
|
const-string v3, "one dimension was free, we adapted it to fit the ratio."
|
|
|
|
aput-object v3, v2, v6
|
|
|
|
invoke-static {v13, v8, v14, v9, v15}, Lf/e/b/a/a;->k(Ljava/lang/String;ILjava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-virtual {v1, v6, v2}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
const/high16 v1, 0x40000000 # 2.0f
|
|
|
|
invoke-static {v8, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v9, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v1
|
|
|
|
invoke-super {v0, v2, v1}, Landroid/widget/FrameLayout;->onMeasure(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 7
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
value = {
|
|
"ClickableViewAccessibility"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/otaliastudios/cameraview/CameraView;->d()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v0, v0, Lf/m/a/l/k;->j:Lf/m/a/c;
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
iget-object v2, p0, Lcom/otaliastudios/cameraview/CameraView;->x:Lf/m/a/o/f;
|
|
|
|
iget-boolean v3, v2, Lf/m/a/o/c;->a:Z
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual {v2, p1}, Lf/m/a/o/c;->c(Landroid/view/MotionEvent;)Z
|
|
|
|
move-result v2
|
|
|
|
:goto_0
|
|
const-string v3, "onTouchEvent"
|
|
|
|
const/4 v5, 0x2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
sget-object p1, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
const-string v3, "pinch!"
|
|
|
|
aput-object v3, v2, v1
|
|
|
|
invoke-virtual {p1, v1, v2}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
iget-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->x:Lf/m/a/o/f;
|
|
|
|
invoke-virtual {p0, p1, v0}, Lcom/otaliastudios/cameraview/CameraView;->g(Lf/m/a/o/c;Lf/m/a/c;)V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_2
|
|
iget-object v2, p0, Lcom/otaliastudios/cameraview/CameraView;->z:Lf/m/a/o/g;
|
|
|
|
iget-boolean v6, v2, Lf/m/a/o/c;->a:Z
|
|
|
|
if-nez v6, :cond_3
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
invoke-virtual {v2, p1}, Lf/m/a/o/c;->c(Landroid/view/MotionEvent;)Z
|
|
|
|
move-result v2
|
|
|
|
:goto_1
|
|
if-eqz v2, :cond_4
|
|
|
|
sget-object p1, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
const-string v3, "scroll!"
|
|
|
|
aput-object v3, v2, v1
|
|
|
|
invoke-virtual {p1, v1, v2}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
iget-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->z:Lf/m/a/o/g;
|
|
|
|
invoke-virtual {p0, p1, v0}, Lcom/otaliastudios/cameraview/CameraView;->g(Lf/m/a/o/c;Lf/m/a/c;)V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
iget-object v2, p0, Lcom/otaliastudios/cameraview/CameraView;->y:Lf/m/a/o/h;
|
|
|
|
iget-boolean v6, v2, Lf/m/a/o/c;->a:Z
|
|
|
|
if-nez v6, :cond_5
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
invoke-virtual {v2, p1}, Lf/m/a/o/c;->c(Landroid/view/MotionEvent;)Z
|
|
|
|
move-result p1
|
|
|
|
:goto_2
|
|
if-eqz p1, :cond_6
|
|
|
|
sget-object p1, Lcom/otaliastudios/cameraview/CameraView;->G:Lf/m/a/b;
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
const-string v3, "tap!"
|
|
|
|
aput-object v3, v2, v1
|
|
|
|
invoke-virtual {p1, v1, v2}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
iget-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->y:Lf/m/a/o/h;
|
|
|
|
invoke-virtual {p0, p1, v0}, Lcom/otaliastudios/cameraview/CameraView;->g(Lf/m/a/o/c;Lf/m/a/c;)V
|
|
|
|
:cond_6
|
|
:goto_3
|
|
return v1
|
|
|
|
:cond_7
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "Options should not be null here."
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public open()V
|
|
.locals 2
|
|
.annotation runtime Landroidx/lifecycle/OnLifecycleEvent;
|
|
value = .enum Landroidx/lifecycle/Lifecycle$Event;->ON_RESUME:Landroidx/lifecycle/Lifecycle$Event;
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lcom/otaliastudios/cameraview/CameraView;->D:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->o:Lf/m/a/u/a;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Lf/m/a/u/a;->o()V
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/otaliastudios/cameraview/CameraView;->getAudio()Lf/m/a/k/a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->a(Lf/m/a/k/a;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->p:Lf/m/a/p/d;
|
|
|
|
invoke-virtual {v0}, Lf/m/a/p/d;->a()V
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v0, v0, Lf/m/a/l/k;->G:Lf/m/a/l/v/a;
|
|
|
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView;->p:Lf/m/a/p/d;
|
|
|
|
iget v1, v1, Lf/m/a/p/d;->f:I
|
|
|
|
invoke-virtual {v0, v1}, Lf/m/a/l/v/a;->e(I)V
|
|
|
|
iput v1, v0, Lf/m/a/l/v/a;->c:I
|
|
|
|
invoke-virtual {v0}, Lf/m/a/l/v/a;->d()V
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {v0}, Lf/m/a/l/l;->F()Lcom/google/android/gms/tasks/Task;
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public removeView(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
iget-boolean v1, p0, Lcom/otaliastudios/cameraview/CameraView;->D:Z
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView;->E:Lf/m/a/s/b;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
instance-of v0, v0, Lf/m/a/s/b$a;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v1, p1}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public set(Lf/m/a/k/c;)V
|
|
.locals 1
|
|
.param p1 # Lf/m/a/k/c;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
instance-of v0, p1, Lf/m/a/k/a;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
check-cast p1, Lf/m/a/k/a;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/otaliastudios/cameraview/CameraView;->setAudio(Lf/m/a/k/a;)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_0
|
|
instance-of v0, p1, Lf/m/a/k/e;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
check-cast p1, Lf/m/a/k/e;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/otaliastudios/cameraview/CameraView;->setFacing(Lf/m/a/k/e;)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_1
|
|
instance-of v0, p1, Lf/m/a/k/f;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
check-cast p1, Lf/m/a/k/f;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/otaliastudios/cameraview/CameraView;->setFlash(Lf/m/a/k/f;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
instance-of v0, p1, Lf/m/a/k/g;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
check-cast p1, Lf/m/a/k/g;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/otaliastudios/cameraview/CameraView;->setGrid(Lf/m/a/k/g;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
instance-of v0, p1, Lf/m/a/k/h;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
check-cast p1, Lf/m/a/k/h;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/otaliastudios/cameraview/CameraView;->setHdr(Lf/m/a/k/h;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
instance-of v0, p1, Lf/m/a/k/i;
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
check-cast p1, Lf/m/a/k/i;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/otaliastudios/cameraview/CameraView;->setMode(Lf/m/a/k/i;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
instance-of v0, p1, Lf/m/a/k/m;
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
check-cast p1, Lf/m/a/k/m;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/otaliastudios/cameraview/CameraView;->setWhiteBalance(Lf/m/a/k/m;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
instance-of v0, p1, Lf/m/a/k/l;
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
check-cast p1, Lf/m/a/k/l;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/otaliastudios/cameraview/CameraView;->setVideoCodec(Lf/m/a/k/l;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_7
|
|
instance-of v0, p1, Lf/m/a/k/b;
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
check-cast p1, Lf/m/a/k/b;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/otaliastudios/cameraview/CameraView;->setAudioCodec(Lf/m/a/k/b;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_8
|
|
instance-of v0, p1, Lf/m/a/k/k;
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
check-cast p1, Lf/m/a/k/k;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/otaliastudios/cameraview/CameraView;->setPreview(Lf/m/a/k/k;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_9
|
|
instance-of v0, p1, Lf/m/a/k/d;
|
|
|
|
if-eqz v0, :cond_a
|
|
|
|
check-cast p1, Lf/m/a/k/d;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/otaliastudios/cameraview/CameraView;->setEngine(Lf/m/a/k/d;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_a
|
|
instance-of v0, p1, Lf/m/a/k/j;
|
|
|
|
if-eqz v0, :cond_b
|
|
|
|
check-cast p1, Lf/m/a/k/j;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/otaliastudios/cameraview/CameraView;->setPictureFormat(Lf/m/a/k/j;)V
|
|
|
|
:cond_b
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAudio(Lf/m/a/k/a;)V
|
|
.locals 1
|
|
.param p1 # Lf/m/a/k/a;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Lcom/otaliastudios/cameraview/CameraView;->getAudio()Lf/m/a/k/a;
|
|
|
|
move-result-object v0
|
|
|
|
if-eq p1, v0, :cond_2
|
|
|
|
invoke-virtual {p0}, Lcom/otaliastudios/cameraview/CameraView;->c()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Lcom/otaliastudios/cameraview/CameraView;->a(Lf/m/a/k/a;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {v0, p1}, Lf/m/a/l/l;->t(Lf/m/a/k/a;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/otaliastudios/cameraview/CameraView;->close()V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {v0, p1}, Lf/m/a/l/l;->t(Lf/m/a/k/a;)V
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAudioBitRate(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput p1, v0, Lf/m/a/l/k;->Q:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAudioCodec(Lf/m/a/k/b;)V
|
|
.locals 1
|
|
.param p1 # Lf/m/a/k/b;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput-object p1, v0, Lf/m/a/l/k;->u:Lf/m/a/k/b;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAutoFocusMarker(Lf/m/a/q/a;)V
|
|
.locals 4
|
|
.param p1 # Lf/m/a/q/a;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iput-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->t:Lf/m/a/q/a;
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->B:Lf/m/a/q/c;
|
|
|
|
iget-object v1, v0, Lf/m/a/q/c;->d:Ljava/util/HashMap;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v1, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/view/View;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V
|
|
|
|
:cond_0
|
|
if-nez p1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {p1, v1, v0}, Lf/m/a/q/a;->b(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
iget-object v1, v0, Lf/m/a/q/c;->d:Ljava/util/HashMap;
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAutoFocusResetDelay(J)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput-wide p1, v0, Lf/m/a/l/k;->R:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setEngine(Lf/m/a/k/d;)V
|
|
.locals 4
|
|
.param p1 # Lf/m/a/k/d;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Lcom/otaliastudios/cameraview/CameraView;->c()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iput-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->i:Lf/m/a/k/d;
|
|
|
|
iget-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {p0}, Lcom/otaliastudios/cameraview/CameraView;->b()V
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->o:Lf/m/a/u/a;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v1, Lf/m/a/l/k;
|
|
|
|
iget-object v2, v1, Lf/m/a/l/k;->i:Lf/m/a/u/a;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v2, v3}, Lf/m/a/u/a;->r(Lf/m/a/u/a$c;)V
|
|
|
|
:cond_1
|
|
iput-object v0, v1, Lf/m/a/l/k;->i:Lf/m/a/u/a;
|
|
|
|
invoke-virtual {v0, v1}, Lf/m/a/u/a;->r(Lf/m/a/u/a$c;)V
|
|
|
|
:cond_2
|
|
check-cast p1, Lf/m/a/l/k;
|
|
|
|
iget-object v0, p1, Lf/m/a/l/k;->K:Lf/m/a/k/e;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setFacing(Lf/m/a/k/e;)V
|
|
|
|
iget-object v0, p1, Lf/m/a/l/k;->r:Lf/m/a/k/f;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setFlash(Lf/m/a/k/f;)V
|
|
|
|
iget-object v0, p1, Lf/m/a/l/k;->L:Lf/m/a/k/i;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setMode(Lf/m/a/k/i;)V
|
|
|
|
iget-object v0, p1, Lf/m/a/l/k;->s:Lf/m/a/k/m;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setWhiteBalance(Lf/m/a/k/m;)V
|
|
|
|
iget-object v0, p1, Lf/m/a/l/k;->v:Lf/m/a/k/h;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setHdr(Lf/m/a/k/h;)V
|
|
|
|
iget-object v0, p1, Lf/m/a/l/k;->M:Lf/m/a/k/a;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setAudio(Lf/m/a/k/a;)V
|
|
|
|
iget v0, p1, Lf/m/a/l/k;->Q:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setAudioBitRate(I)V
|
|
|
|
iget-object v0, p1, Lf/m/a/l/k;->u:Lf/m/a/k/b;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setAudioCodec(Lf/m/a/k/b;)V
|
|
|
|
iget-object v0, p1, Lf/m/a/l/k;->I:Lf/m/a/v/c;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setPictureSize(Lf/m/a/v/c;)V
|
|
|
|
iget-object v0, p1, Lf/m/a/l/k;->w:Lf/m/a/k/j;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setPictureFormat(Lf/m/a/k/j;)V
|
|
|
|
iget-object v0, p1, Lf/m/a/l/k;->J:Lf/m/a/v/c;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setVideoSize(Lf/m/a/v/c;)V
|
|
|
|
iget-object v0, p1, Lf/m/a/l/k;->t:Lf/m/a/k/l;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setVideoCodec(Lf/m/a/k/l;)V
|
|
|
|
iget-wide v0, p1, Lf/m/a/l/k;->N:J
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/otaliastudios/cameraview/CameraView;->setVideoMaxSize(J)V
|
|
|
|
iget v0, p1, Lf/m/a/l/k;->O:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setVideoMaxDuration(I)V
|
|
|
|
iget v0, p1, Lf/m/a/l/k;->P:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setVideoBitRate(I)V
|
|
|
|
iget-wide v0, p1, Lf/m/a/l/k;->R:J
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/otaliastudios/cameraview/CameraView;->setAutoFocusResetDelay(J)V
|
|
|
|
iget v0, p1, Lf/m/a/l/k;->D:F
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setPreviewFrameRate(F)V
|
|
|
|
iget-boolean v0, p1, Lf/m/a/l/k;->E:Z
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setPreviewFrameRateExact(Z)V
|
|
|
|
iget v0, p1, Lf/m/a/l/k;->S:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setSnapshotMaxWidth(I)V
|
|
|
|
iget v0, p1, Lf/m/a/l/k;->T:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setSnapshotMaxHeight(I)V
|
|
|
|
iget v0, p1, Lf/m/a/l/k;->U:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setFrameProcessingMaxWidth(I)V
|
|
|
|
iget v0, p1, Lf/m/a/l/k;->V:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setFrameProcessingMaxHeight(I)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/otaliastudios/cameraview/CameraView;->setFrameProcessingFormat(I)V
|
|
|
|
iget p1, p1, Lf/m/a/l/k;->W:I
|
|
|
|
invoke-virtual {p0, p1}, Lcom/otaliastudios/cameraview/CameraView;->setFrameProcessingPoolSize(I)V
|
|
|
|
iget-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->v:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
invoke-virtual {p1, v0}, Lf/m/a/l/l;->x(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setExperimental(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lcom/otaliastudios/cameraview/CameraView;->C:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setExposureCorrection(F)V
|
|
.locals 4
|
|
|
|
invoke-virtual {p0}, Lcom/otaliastudios/cameraview/CameraView;->getCameraOptions()Lf/m/a/c;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget v1, v0, Lf/m/a/c;->m:F
|
|
|
|
iget v0, v0, Lf/m/a/c;->n:F
|
|
|
|
cmpg-float v2, p1, v1
|
|
|
|
if-gez v2, :cond_0
|
|
|
|
move p1, v1
|
|
|
|
:cond_0
|
|
cmpl-float v2, p1, v0
|
|
|
|
if-lez v2, :cond_1
|
|
|
|
move p1, v0
|
|
|
|
:cond_1
|
|
const/4 v2, 0x2
|
|
|
|
new-array v2, v2, [F
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput v1, v2, v3
|
|
|
|
const/4 v1, 0x1
|
|
|
|
aput v0, v2, v1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, p1, v2, v1, v3}, Lf/m/a/l/l;->u(F[F[Landroid/graphics/PointF;Z)V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public setFacing(Lf/m/a/k/e;)V
|
|
.locals 5
|
|
.param p1 # Lf/m/a/k/e;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v1, v0, Lf/m/a/l/k;->K:Lf/m/a/k/e;
|
|
|
|
if-eq p1, v1, :cond_0
|
|
|
|
iput-object p1, v0, Lf/m/a/l/k;->K:Lf/m/a/k/e;
|
|
|
|
iget-object v2, v0, Lf/m/a/l/l;->g:Lf/m/a/l/x/c;
|
|
|
|
sget-object v3, Lf/m/a/l/x/b;->e:Lf/m/a/l/x/b;
|
|
|
|
new-instance v4, Lf/m/a/l/h;
|
|
|
|
invoke-direct {v4, v0, p1, v1}, Lf/m/a/l/h;-><init>(Lf/m/a/l/k;Lf/m/a/k/e;Lf/m/a/k/e;)V
|
|
|
|
const-string p1, "facing"
|
|
|
|
invoke-virtual {v2, p1, v3, v4}, Lf/m/a/l/x/c;->h(Ljava/lang/String;Lf/m/a/l/x/b;Ljava/lang/Runnable;)Lcom/google/android/gms/tasks/Task;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setFilter(Lf/m/a/m/b;)V
|
|
.locals 2
|
|
.param p1 # Lf/m/a/m/b;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->o:Lf/m/a/u/a;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iput-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->j:Lf/m/a/m/b;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
instance-of v1, p1, Lf/m/a/m/c;
|
|
|
|
instance-of v0, v0, Lf/m/a/u/b;
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/RuntimeException;
|
|
|
|
const-string v0, "Filters are only supported by the GL_SURFACE preview. Current preview:"
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView;->h:Lf/m/a/k/k;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->o:Lf/m/a/u/a;
|
|
|
|
check-cast v0, Lf/m/a/u/b;
|
|
|
|
invoke-interface {v0, p1}, Lf/m/a/u/b;->a(Lf/m/a/m/b;)V
|
|
|
|
:cond_3
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setFlash(Lf/m/a/k/f;)V
|
|
.locals 1
|
|
.param p1 # Lf/m/a/k/f;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {v0, p1}, Lf/m/a/l/l;->v(Lf/m/a/k/f;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setFrameProcessingExecutors(I)V
|
|
.locals 10
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-lt p1, v0, :cond_0
|
|
|
|
iput p1, p0, Lcom/otaliastudios/cameraview/CameraView;->k:I
|
|
|
|
new-instance v9, Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
const-wide/16 v4, 0x4
|
|
|
|
sget-object v6, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
new-instance v7, Ljava/util/concurrent/LinkedBlockingQueue;
|
|
|
|
invoke-direct {v7}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
|
|
|
|
new-instance v8, Lcom/otaliastudios/cameraview/CameraView$a;
|
|
|
|
invoke-direct {v8, p0}, Lcom/otaliastudios/cameraview/CameraView$a;-><init>(Lcom/otaliastudios/cameraview/CameraView;)V
|
|
|
|
move-object v1, v9
|
|
|
|
move v2, p1
|
|
|
|
move v3, p1
|
|
|
|
invoke-direct/range {v1 .. v8}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
|
|
|
|
invoke-virtual {v9, v0}, Ljava/util/concurrent/ThreadPoolExecutor;->allowCoreThreadTimeOut(Z)V
|
|
|
|
iput-object v9, p0, Lcom/otaliastudios/cameraview/CameraView;->m:Ljava/util/concurrent/Executor;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "Need at least 1 executor, got "
|
|
|
|
invoke-static {v1, p1}, Lf/e/b/a/a;->h(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public setFrameProcessingFormat(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {v0, p1}, Lf/m/a/l/l;->w(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setFrameProcessingMaxHeight(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput p1, v0, Lf/m/a/l/k;->V:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setFrameProcessingMaxWidth(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput p1, v0, Lf/m/a/l/k;->U:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setFrameProcessingPoolSize(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput p1, v0, Lf/m/a/l/k;->W:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setGrid(Lf/m/a/k/g;)V
|
|
.locals 1
|
|
.param p1 # Lf/m/a/k/g;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->A:Lf/m/a/p/c;
|
|
|
|
invoke-virtual {v0, p1}, Lf/m/a/p/c;->setGridMode(Lf/m/a/k/g;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setGridColor(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->A:Lf/m/a/p/c;
|
|
|
|
invoke-virtual {v0, p1}, Lf/m/a/p/c;->setGridColor(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setHdr(Lf/m/a/k/h;)V
|
|
.locals 1
|
|
.param p1 # Lf/m/a/k/h;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {v0, p1}, Lf/m/a/l/l;->y(Lf/m/a/k/h;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLifecycleOwner(Landroidx/lifecycle/LifecycleOwner;)V
|
|
.locals 2
|
|
.param p1 # Landroidx/lifecycle/LifecycleOwner;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->w:Landroidx/lifecycle/Lifecycle;
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-virtual {p1, p0}, Landroidx/lifecycle/Lifecycle;->removeObserver(Landroidx/lifecycle/LifecycleObserver;)V
|
|
|
|
iput-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->w:Landroidx/lifecycle/Lifecycle;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView;->w:Landroidx/lifecycle/Lifecycle;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {v1, p0}, Landroidx/lifecycle/Lifecycle;->removeObserver(Landroidx/lifecycle/LifecycleObserver;)V
|
|
|
|
iput-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->w:Landroidx/lifecycle/Lifecycle;
|
|
|
|
:cond_1
|
|
invoke-interface {p1}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->w:Landroidx/lifecycle/Lifecycle;
|
|
|
|
invoke-virtual {p1, p0}, Landroidx/lifecycle/Lifecycle;->addObserver(Landroidx/lifecycle/LifecycleObserver;)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLocation(Landroid/location/Location;)V
|
|
.locals 1
|
|
.param p1 # Landroid/location/Location;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {v0, p1}, Lf/m/a/l/l;->z(Landroid/location/Location;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMode(Lf/m/a/k/i;)V
|
|
.locals 3
|
|
.param p1 # Lf/m/a/k/i;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iget-object v1, v0, Lf/m/a/l/k;->L:Lf/m/a/k/i;
|
|
|
|
if-eq p1, v1, :cond_0
|
|
|
|
iput-object p1, v0, Lf/m/a/l/k;->L:Lf/m/a/k/i;
|
|
|
|
iget-object p1, v0, Lf/m/a/l/l;->g:Lf/m/a/l/x/c;
|
|
|
|
sget-object v1, Lf/m/a/l/x/b;->e:Lf/m/a/l/x/b;
|
|
|
|
new-instance v2, Lf/m/a/l/i;
|
|
|
|
invoke-direct {v2, v0}, Lf/m/a/l/i;-><init>(Lf/m/a/l/k;)V
|
|
|
|
const-string v0, "mode"
|
|
|
|
invoke-virtual {p1, v0, v1, v2}, Lf/m/a/l/x/c;->h(Ljava/lang/String;Lf/m/a/l/x/b;Ljava/lang/Runnable;)Lcom/google/android/gms/tasks/Task;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPictureFormat(Lf/m/a/k/j;)V
|
|
.locals 1
|
|
.param p1 # Lf/m/a/k/j;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {v0, p1}, Lf/m/a/l/l;->A(Lf/m/a/k/j;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPictureMetering(Z)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput-boolean p1, v0, Lf/m/a/l/k;->B:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPictureSize(Lf/m/a/v/c;)V
|
|
.locals 1
|
|
.param p1 # Lf/m/a/v/c;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput-object p1, v0, Lf/m/a/l/k;->I:Lf/m/a/v/c;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPictureSnapshotMetering(Z)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput-boolean p1, v0, Lf/m/a/l/k;->C:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPlaySounds(Z)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iput-boolean v0, p0, Lcom/otaliastudios/cameraview/CameraView;->d:Z
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {v0, p1}, Lf/m/a/l/l;->B(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPreview(Lf/m/a/k/k;)V
|
|
.locals 3
|
|
.param p1 # Lf/m/a/k/k;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->h:Lf/m/a/k/k;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_2
|
|
|
|
iput-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->h:Lf/m/a/k/k;
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getWindowToken()Landroid/os/IBinder;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_1
|
|
if-nez v1, :cond_2
|
|
|
|
iget-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->o:Lf/m/a/u/a;
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-virtual {p1}, Lf/m/a/u/a;->m()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-object p1, p0, Lcom/otaliastudios/cameraview/CameraView;->o:Lf/m/a/u/a;
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPreviewFrameRate(F)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {v0, p1}, Lf/m/a/l/l;->C(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPreviewFrameRateExact(Z)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput-boolean p1, v0, Lf/m/a/l/k;->E:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPreviewStreamSize(Lf/m/a/v/c;)V
|
|
.locals 1
|
|
.param p1 # Lf/m/a/v/c;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput-object p1, v0, Lf/m/a/l/k;->H:Lf/m/a/v/c;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRequestPermissions(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lcom/otaliastudios/cameraview/CameraView;->f:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSnapshotMaxHeight(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput p1, v0, Lf/m/a/l/k;->T:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSnapshotMaxWidth(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput p1, v0, Lf/m/a/l/k;->S:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setUseDeviceOrientation(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lcom/otaliastudios/cameraview/CameraView;->e:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVideoBitRate(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput p1, v0, Lf/m/a/l/k;->P:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVideoCodec(Lf/m/a/k/l;)V
|
|
.locals 1
|
|
.param p1 # Lf/m/a/k/l;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput-object p1, v0, Lf/m/a/l/k;->t:Lf/m/a/k/l;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVideoMaxDuration(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput p1, v0, Lf/m/a/l/k;->O:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVideoMaxSize(J)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput-wide p1, v0, Lf/m/a/l/k;->N:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVideoSize(Lf/m/a/v/c;)V
|
|
.locals 1
|
|
.param p1 # Lf/m/a/v/c;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
check-cast v0, Lf/m/a/l/k;
|
|
|
|
iput-object p1, v0, Lf/m/a/l/k;->J:Lf/m/a/v/c;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setWhiteBalance(Lf/m/a/k/m;)V
|
|
.locals 1
|
|
.param p1 # Lf/m/a/k/m;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
invoke-virtual {v0, p1}, Lf/m/a/l/l;->D(Lf/m/a/k/m;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setZoom(F)V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
cmpg-float v1, p1, v0
|
|
|
|
if-gez v1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
:cond_0
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
cmpl-float v1, p1, v0
|
|
|
|
if-lez v1, :cond_1
|
|
|
|
const/high16 p1, 0x3f800000 # 1.0f
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, p1, v1, v2}, Lf/m/a/l/l;->E(F[Landroid/graphics/PointF;Z)V
|
|
|
|
return-void
|
|
.end method
|