f$c.smali

.class public Lp7/f$c;
.super Ljava/lang/Object;
.source "TextureCameraPreview.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lp7/f;->a(I)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = null
.end annotation


# instance fields
.field public final synthetic a:I

.field public final synthetic b:Lcom/google/android/gms/tasks/TaskCompletionSource;

.field public final synthetic c:Lp7/f;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method public constructor <init>(Lp7/f;ILcom/google/android/gms/tasks/TaskCompletionSource;)V
    .registers 4

    iput-object p1, p0, Lp7/f$c;->c:Lp7/f;

    iput p2, p0, Lp7/f$c;->a:I

    iput-object p3, p0, Lp7/f$c;->b:Lcom/google/android/gms/tasks/TaskCompletionSource;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 6

    new-instance v0, Landroid/graphics/Matrix;

    invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V

    iget-object v1, p0, Lp7/f$c;->c:Lp7/f;

    iget v2, v1, Lp7/a;->e:I

    int-to-float v2, v2

    const/high16 v3, 0x40000000    # 2.0f

    div-float/2addr v2, v3

    iget v1, v1, Lp7/a;->f:I

    int-to-float v1, v1

    div-float/2addr v1, v3

    iget v3, p0, Lp7/f$c;->a:I

    rem-int/lit16 v3, v3, 0xb4

    if-eqz v3, :cond_19

    const/4 v3, 0x1

    goto :goto_1a

    :cond_19
    const/4 v3, 0x0

    :goto_1a
    if-eqz v3, :cond_2b

    iget-object v3, p0, Lp7/f$c;->c:Lp7/f;

    iget v4, v3, Lp7/a;->f:I

    int-to-float v4, v4

    iget v3, v3, Lp7/a;->e:I

    int-to-float v3, v3

    div-float/2addr v4, v3

    const/high16 v3, 0x3f800000    # 1.0f

    div-float/2addr v3, v4

    invoke-virtual {v0, v4, v3, v2, v1}, Landroid/graphics/Matrix;->postScale(FFFF)Z

    :cond_2b
    iget v3, p0, Lp7/f$c;->a:I

    int-to-float v3, v3

    invoke-virtual {v0, v3, v2, v1}, Landroid/graphics/Matrix;->postRotate(FFF)Z

    iget-object v1, p0, Lp7/f$c;->c:Lp7/f;

    invoke-virtual {v1}, Lp7/a;->f()Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/view/TextureView;

    invoke-virtual {v1, v0}, Landroid/view/TextureView;->setTransform(Landroid/graphics/Matrix;)V

    iget-object v0, p0, Lp7/f$c;->b:Lcom/google/android/gms/tasks/TaskCompletionSource;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/google/android/gms/tasks/TaskCompletionSource;->setResult(Ljava/lang/Object;)V

    return-void
.end method