ak.smali
.class public final Lcom/tencent/liteav/videoproducer/capture/ak;
.super Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/tencent/liteav/videoproducer/capture/ak$a;
}
.end annotation
# instance fields
.field public a:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;
.field private b:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;
.field private c:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera$VirtualCameraParams;
.field private d:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;
.field private e:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureSourceListener;
.field private final f:Landroid/os/Looper;
.field private final g:Landroid/content/Context;
.field private final h:Lcom/tencent/liteav/videobase/videobase/IVideoReporter;
.field private i:Ljava/lang/Object;
.field private j:Z
.field private final k:Lcom/tencent/liteav/base/util/CustomHandler;
.field private l:Lcom/tencent/liteav/videoproducer/capture/ak$a;
.field private m:Z
.field private final n:Lcom/tencent/liteav/videobase/utils/f;
.field private final o:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureSourceListener;
# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/os/Looper;Lcom/tencent/liteav/videobase/videobase/IVideoReporter;)V
.registers 6
.line 98
invoke-direct {p0}, Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;-><init>()V
const/4 v0, 0x0
.line 33
iput-boolean v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->j:Z
.line 36
sget-object v1, Lcom/tencent/liteav/videoproducer/capture/ak$a;->a:Lcom/tencent/liteav/videoproducer/capture/ak$a;
iput-object v1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->l:Lcom/tencent/liteav/videoproducer/capture/ak$a;
.line 38
iput-boolean v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->m:Z
.line 43
new-instance v0, Lcom/tencent/liteav/videoproducer/capture/ak$1;
invoke-direct {v0, p0}, Lcom/tencent/liteav/videoproducer/capture/ak$1;-><init>(Lcom/tencent/liteav/videoproducer/capture/ak;)V
iput-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->o:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureSourceListener;
.line 99
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
iput-object p1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->g:Landroid/content/Context;
.line 100
iput-object p2, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->f:Landroid/os/Looper;
.line 101
iput-object p3, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->h:Lcom/tencent/liteav/videobase/videobase/IVideoReporter;
.line 102
new-instance p1, Lcom/tencent/liteav/base/util/CustomHandler;
invoke-direct {p1, p2}, Lcom/tencent/liteav/base/util/CustomHandler;-><init>(Landroid/os/Looper;)V
iput-object p1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->k:Lcom/tencent/liteav/base/util/CustomHandler;
.line 103
new-instance p1, Lcom/tencent/liteav/videobase/utils/f;
.line 1000
new-instance p2, Lcom/tencent/liteav/videoproducer/capture/al;
invoke-direct {p2, p0}, Lcom/tencent/liteav/videoproducer/capture/al;-><init>(Lcom/tencent/liteav/videoproducer/capture/ak;)V
const-string p3, "CaptureController"
const/16 v0, 0x3e8
.line 103
invoke-direct {p1, p3, v0, p2}, Lcom/tencent/liteav/videobase/utils/f;-><init>(Ljava/lang/String;ILcom/tencent/liteav/videobase/utils/f$a;)V
iput-object p1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->n:Lcom/tencent/liteav/videobase/utils/f;
return-void
.end method
.method static synthetic a(Lcom/tencent/liteav/videoproducer/capture/ak;)V
.registers 3
.line 215
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->l:Lcom/tencent/liteav/videoproducer/capture/ak$a;
sget-object v1, Lcom/tencent/liteav/videoproducer/capture/ak$a;->a:Lcom/tencent/liteav/videoproducer/capture/ak$a;
if-ne v0, v1, :cond_e
const-string p0, "CaptureController"
const-string v0, "Stop capture but mStatus is stoped"
.line 216
invoke-static {p0, v0}, Lcom/tencent/liteav/base/util/LiteavLog;->w(Ljava/lang/String;Ljava/lang/String;)V
return-void
.line 219
:cond_e
sget-object v0, Lcom/tencent/liteav/videoproducer/capture/ak$a;->a:Lcom/tencent/liteav/videoproducer/capture/ak$a;
iput-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->l:Lcom/tencent/liteav/videoproducer/capture/ak$a;
.line 220
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->a:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;
const/4 v1, 0x0
if-eqz v0, :cond_1c
.line 221
invoke-virtual {v0}, Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;->stop()V
.line 222
iput-object v1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->a:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;
.line 224
:cond_1c
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->b:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;
if-eqz v0, :cond_25
.line 225
invoke-virtual {v0}, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;->stop()V
.line 226
iput-object v1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->b:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;
:cond_25
const/4 v0, 0x0
.line 228
iput-boolean v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->m:Z
.line 229
iget-object p0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->n:Lcom/tencent/liteav/videobase/utils/f;
invoke-virtual {p0}, Lcom/tencent/liteav/videobase/utils/f;->b()V
return-void
.end method
.method static synthetic a(Lcom/tencent/liteav/videoproducer/capture/ak;D)V
.registers 4
.line 105
iget-object p0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->h:Lcom/tencent/liteav/videobase/videobase/IVideoReporter;
sget-object v0, Lcom/tencent/liteav/videobase/videobase/i;->b:Lcom/tencent/liteav/videobase/videobase/i;
invoke-static {p1, p2}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
move-result-object p1
invoke-interface {p0, v0, p1}, Lcom/tencent/liteav/videobase/videobase/IVideoReporter;->updateStatus(Lcom/tencent/liteav/videobase/videobase/i;Ljava/lang/Object;)V
return-void
.end method
.method static synthetic a(Lcom/tencent/liteav/videoproducer/capture/ak;Landroid/graphics/Bitmap;III)V
.registers 6
.line 127
new-instance v0, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera$VirtualCameraParams;
invoke-direct {v0}, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera$VirtualCameraParams;-><init>()V
iput-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->c:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera$VirtualCameraParams;
.line 128
iput-object p1, v0, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera$VirtualCameraParams;->a:Landroid/graphics/Bitmap;
.line 129
iget-object p1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->c:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera$VirtualCameraParams;
iput p2, p1, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera$VirtualCameraParams;->b:I
.line 130
iget-object p1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->c:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera$VirtualCameraParams;
iput p3, p1, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera$VirtualCameraParams;->d:I
.line 131
iget-object p1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->c:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera$VirtualCameraParams;
iput p4, p1, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera$VirtualCameraParams;->c:I
.line 132
iget-object p1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->b:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;
if-eqz p1, :cond_1c
.line 133
invoke-virtual {p1}, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;->stop()V
.line 135
:cond_1c
new-instance p1, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;
iget-object p2, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->f:Landroid/os/Looper;
iget-object p3, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->h:Lcom/tencent/liteav/videobase/videobase/IVideoReporter;
invoke-direct {p1, p2, p3}, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;-><init>(Landroid/os/Looper;Lcom/tencent/liteav/videobase/videobase/IVideoReporter;)V
iput-object p1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->b:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;
const/4 p1, 0x1
.line 136
iput-boolean p1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->j:Z
return-void
.end method
.method static synthetic a(Lcom/tencent/liteav/videoproducer/capture/ak;Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;)V
.registers 4
.line 239
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->a:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;
if-nez v0, :cond_5
return-void
.line 242
:cond_5
iput-object p1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->d:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;
.line 243
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->l:Lcom/tencent/liteav/videoproducer/capture/ak$a;
sget-object v1, Lcom/tencent/liteav/videoproducer/capture/ak$a;->b:Lcom/tencent/liteav/videoproducer/capture/ak$a;
if-ne v0, v1, :cond_13
.line 244
iget-object p0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->a:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;
invoke-virtual {p0, p1}, Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;->updateParams(Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;)V
return-void
.line 245
:cond_13
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->l:Lcom/tencent/liteav/videoproducer/capture/ak$a;
sget-object v1, Lcom/tencent/liteav/videoproducer/capture/ak$a;->c:Lcom/tencent/liteav/videoproducer/capture/ak$a;
if-ne v0, v1, :cond_2b
.line 246
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->a:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;
invoke-virtual {v0, p1}, Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;->updateParams(Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;)V
.line 247
iget-boolean p1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->j:Z
if-eqz p1, :cond_2b
iget-object p1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->b:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;
if-eqz p1, :cond_2b
.line 248
iget-object p0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->d:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;
invoke-virtual {p1, p0}, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;->updateParams(Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;)V
:cond_2b
return-void
.end method
.method static synthetic a(Lcom/tencent/liteav/videoproducer/capture/ak;Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureSourceListener;Ljava/lang/Object;)V
.registers 8
.line 149
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->l:Lcom/tencent/liteav/videoproducer/capture/ak$a;
sget-object v1, Lcom/tencent/liteav/videoproducer/capture/ak$a;->a:Lcom/tencent/liteav/videoproducer/capture/ak$a;
const-string v2, "CaptureController"
if-eq v0, v1, :cond_1c
.line 150
new-instance p1, Ljava/lang/StringBuilder;
const-string p2, "Start capture but mStatus is "
invoke-direct {p1, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object p0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->l:Lcom/tencent/liteav/videoproducer/capture/ak$a;
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-static {v2, p0}, Lcom/tencent/liteav/base/util/LiteavLog;->w(Ljava/lang/String;Ljava/lang/String;)V
return-void
.line 153
:cond_1c
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->n:Lcom/tencent/liteav/videobase/utils/f;
invoke-virtual {v0}, Lcom/tencent/liteav/videobase/utils/f;->b()V
.line 154
sget-object v0, Lcom/tencent/liteav/videoproducer/capture/ak$a;->b:Lcom/tencent/liteav/videoproducer/capture/ak$a;
iput-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->l:Lcom/tencent/liteav/videoproducer/capture/ak$a;
.line 1109
instance-of v0, p1, Lcom/tencent/liteav/videoproducer/capture/CameraCaptureParams;
if-eqz v0, :cond_35
.line 1110
new-instance v0, Lcom/tencent/liteav/videoproducer/capture/t;
iget-object v1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->h:Lcom/tencent/liteav/videobase/videobase/IVideoReporter;
iget-object v2, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->f:Landroid/os/Looper;
invoke-direct {v0, v1, v2}, Lcom/tencent/liteav/videoproducer/capture/t;-><init>(Lcom/tencent/liteav/videobase/videobase/IVideoReporter;Landroid/os/Looper;)V
iput-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->a:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;
goto :goto_4c
.line 1111
:cond_35
instance-of v0, p1, Lcom/tencent/liteav/videoproducer/capture/ScreenCapturer$ScreenCaptureParams;
if-eqz v0, :cond_47
.line 1112
new-instance v0, Lcom/tencent/liteav/videoproducer/capture/ScreenCapturer;
iget-object v1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->g:Landroid/content/Context;
iget-object v2, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->f:Landroid/os/Looper;
iget-object v3, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->h:Lcom/tencent/liteav/videobase/videobase/IVideoReporter;
invoke-direct {v0, v1, v2, v3}, Lcom/tencent/liteav/videoproducer/capture/ScreenCapturer;-><init>(Landroid/content/Context;Landroid/os/Looper;Lcom/tencent/liteav/videobase/videobase/IVideoReporter;)V
iput-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->a:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;
goto :goto_4c
:cond_47
const-string v0, "initCaptureSource\uff1a param is VirtualCameraParams"
.line 1114
invoke-static {v2, v0}, Lcom/tencent/liteav/base/util/LiteavLog;->w(Ljava/lang/String;Ljava/lang/String;)V
.line 156
:goto_4c
iput-object p2, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->e:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureSourceListener;
.line 157
iput-object p1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->d:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;
.line 158
iput-object p3, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->i:Ljava/lang/Object;
.line 159
iget-object p2, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->a:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;
if-eqz p2, :cond_5b
.line 160
iget-object p0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->o:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureSourceListener;
invoke-virtual {p2, p3, p1, p0}, Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;->start(Ljava/lang/Object;Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureSourceListener;)V
:cond_5b
return-void
.end method
.method static synthetic b(Lcom/tencent/liteav/videoproducer/capture/ak;)V
.registers 3
.line 196
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->l:Lcom/tencent/liteav/videoproducer/capture/ak$a;
sget-object v1, Lcom/tencent/liteav/videoproducer/capture/ak$a;->c:Lcom/tencent/liteav/videoproducer/capture/ak$a;
if-eq v0, v1, :cond_1c
.line 197
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "resume capture but mStatus is "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object p0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->l:Lcom/tencent/liteav/videoproducer/capture/ak$a;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
const-string v0, "CaptureController"
invoke-static {v0, p0}, Lcom/tencent/liteav/base/util/LiteavLog;->w(Ljava/lang/String;Ljava/lang/String;)V
return-void
.line 200
:cond_1c
sget-object v0, Lcom/tencent/liteav/videoproducer/capture/ak$a;->b:Lcom/tencent/liteav/videoproducer/capture/ak$a;
iput-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->l:Lcom/tencent/liteav/videoproducer/capture/ak$a;
.line 201
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->b:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;
if-eqz v0, :cond_2a
.line 202
invoke-virtual {v0}, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;->stop()V
const/4 v0, 0x0
.line 203
iput-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->b:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;
.line 205
:cond_2a
iget-object p0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->a:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;
if-eqz p0, :cond_31
.line 206
invoke-virtual {p0}, Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;->resume()V
:cond_31
return-void
.end method
.method static synthetic c(Lcom/tencent/liteav/videoproducer/capture/ak;)V
.registers 5
.line 169
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->l:Lcom/tencent/liteav/videoproducer/capture/ak$a;
sget-object v1, Lcom/tencent/liteav/videoproducer/capture/ak$a;->b:Lcom/tencent/liteav/videoproducer/capture/ak$a;
if-eq v0, v1, :cond_1c
.line 170
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "pause capture but mStatus is "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object p0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->l:Lcom/tencent/liteav/videoproducer/capture/ak$a;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
const-string v0, "CaptureController"
invoke-static {v0, p0}, Lcom/tencent/liteav/base/util/LiteavLog;->w(Ljava/lang/String;Ljava/lang/String;)V
return-void
.line 173
:cond_1c
sget-object v0, Lcom/tencent/liteav/videoproducer/capture/ak$a;->c:Lcom/tencent/liteav/videoproducer/capture/ak$a;
iput-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->l:Lcom/tencent/liteav/videoproducer/capture/ak$a;
.line 174
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->a:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;
if-eqz v0, :cond_27
.line 175
invoke-virtual {v0}, Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;->pause()V
.line 177
:cond_27
iget-boolean v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->j:Z
if-eqz v0, :cond_56
.line 178
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->c:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera$VirtualCameraParams;
if-nez v0, :cond_3d
const/4 v0, 0x0
const/4 v1, 0x5
.line 179
iget-object v2, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->d:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;
iget v2, v2, Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;->c:I
iget-object v3, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->d:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;
iget v3, v3, Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;->d:I
invoke-virtual {p0, v0, v1, v2, v3}, Lcom/tencent/liteav/videoproducer/capture/ak;->a(Landroid/graphics/Bitmap;III)V
goto :goto_48
.line 181
:cond_3d
new-instance v0, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;
iget-object v1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->f:Landroid/os/Looper;
iget-object v2, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->h:Lcom/tencent/liteav/videobase/videobase/IVideoReporter;
invoke-direct {v0, v1, v2}, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;-><init>(Landroid/os/Looper;Lcom/tencent/liteav/videobase/videobase/IVideoReporter;)V
iput-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->b:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;
.line 183
:goto_48
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->b:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;
if-eqz v0, :cond_5b
.line 184
iget-object v1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->i:Ljava/lang/Object;
iget-object v2, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->c:Lcom/tencent/liteav/videoproducer/capture/VirtualCamera$VirtualCameraParams;
iget-object p0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->o:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureSourceListener;
invoke-virtual {v0, v1, v2, p0}, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;->start(Ljava/lang/Object;Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureSourceListener;)V
return-void
.line 187
:cond_56
iget-object p0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->n:Lcom/tencent/liteav/videobase/utils/f;
invoke-virtual {p0}, Lcom/tencent/liteav/videobase/utils/f;->b()V
:cond_5b
return-void
.end method
.method static synthetic d(Lcom/tencent/liteav/videoproducer/capture/ak;)Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureSourceListener;
.registers 1
.line 20
iget-object p0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->e:Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureSourceListener;
return-object p0
.end method
.method static synthetic e(Lcom/tencent/liteav/videoproducer/capture/ak;)Z
.registers 1
.line 20
iget-boolean p0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->m:Z
return p0
.end method
.method static synthetic f(Lcom/tencent/liteav/videoproducer/capture/ak;)Z
.registers 2
const/4 v0, 0x1
.line 20
iput-boolean v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->m:Z
return v0
.end method
.method static synthetic g(Lcom/tencent/liteav/videoproducer/capture/ak;)Lcom/tencent/liteav/videobase/utils/f;
.registers 1
.line 20
iget-object p0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->n:Lcom/tencent/liteav/videobase/utils/f;
return-object p0
.end method
# virtual methods
.method public final a(Landroid/graphics/Bitmap;III)V
.registers 7
.line 123
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "setVirtualCameraParams fps = "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ",width="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ",height="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ",bm="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "CaptureController"
invoke-static {v1, v0}, Lcom/tencent/liteav/base/util/LiteavLog;->i(Ljava/lang/String;Ljava/lang/String;)V
.line 126
invoke-static {p0, p1, p2, p4, p3}, Lcom/tencent/liteav/videoproducer/capture/am;->a(Lcom/tencent/liteav/videoproducer/capture/ak;Landroid/graphics/Bitmap;III)Ljava/lang/Runnable;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/tencent/liteav/videoproducer/capture/ak;->a(Ljava/lang/Runnable;)V
return-void
.end method
.method protected final a(Ljava/lang/Runnable;)V
.registers 4
.line 255
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
move-result-object v0
iget-object v1, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->k:Lcom/tencent/liteav/base/util/CustomHandler;
invoke-virtual {v1}, Lcom/tencent/liteav/base/util/CustomHandler;->getLooper()Landroid/os/Looper;
move-result-object v1
if-ne v0, v1, :cond_10
.line 256
invoke-interface {p1}, Ljava/lang/Runnable;->run()V
return-void
.line 258
:cond_10
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/capture/ak;->k:Lcom/tencent/liteav/base/util/CustomHandler;
invoke-virtual {v0, p1}, Lcom/tencent/liteav/base/util/CustomHandler;->post(Ljava/lang/Runnable;)Z
return-void
.end method
.method public final pause()V
.registers 3
const-string v0, "CaptureController"
const-string v1, "pause"
.line 167
invoke-static {v0, v1}, Lcom/tencent/liteav/base/util/LiteavLog;->i(Ljava/lang/String;Ljava/lang/String;)V
.line 168
invoke-static {p0}, Lcom/tencent/liteav/videoproducer/capture/ao;->a(Lcom/tencent/liteav/videoproducer/capture/ak;)Ljava/lang/Runnable;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/tencent/liteav/videoproducer/capture/ak;->a(Ljava/lang/Runnable;)V
return-void
.end method
.method public final resume()V
.registers 3
const-string v0, "CaptureController"
const-string v1, "resume"
.line 194
invoke-static {v0, v1}, Lcom/tencent/liteav/base/util/LiteavLog;->i(Ljava/lang/String;Ljava/lang/String;)V
.line 195
invoke-static {p0}, Lcom/tencent/liteav/videoproducer/capture/ap;->a(Lcom/tencent/liteav/videoproducer/capture/ak;)Ljava/lang/Runnable;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/tencent/liteav/videoproducer/capture/ak;->a(Ljava/lang/Runnable;)V
return-void
.end method
.method public final setCaptureCloudConfig(Lcom/tencent/liteav/videoproducer/capture/CaptureCloudConfig;)V
.registers 2
return-void
.end method
.method public final start(Ljava/lang/Object;Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureSourceListener;)V
.registers 6
.line 147
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Start params = "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p2}, Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ", glContext="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "CaptureController"
invoke-static {v1, v0}, Lcom/tencent/liteav/base/util/LiteavLog;->i(Ljava/lang/String;Ljava/lang/String;)V
.line 148
invoke-static {p0, p2, p3, p1}, Lcom/tencent/liteav/videoproducer/capture/an;->a(Lcom/tencent/liteav/videoproducer/capture/ak;Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureSourceListener;Ljava/lang/Object;)Ljava/lang/Runnable;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/tencent/liteav/videoproducer/capture/ak;->a(Ljava/lang/Runnable;)V
return-void
.end method
.method public final stop()V
.registers 3
const-string v0, "CaptureController"
const-string v1, "Stop"
.line 213
invoke-static {v0, v1}, Lcom/tencent/liteav/base/util/LiteavLog;->i(Ljava/lang/String;Ljava/lang/String;)V
.line 214
invoke-static {p0}, Lcom/tencent/liteav/videoproducer/capture/aq;->a(Lcom/tencent/liteav/videoproducer/capture/ak;)Ljava/lang/Runnable;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/tencent/liteav/videoproducer/capture/ak;->a(Ljava/lang/Runnable;)V
return-void
.end method
.method public final updateParams(Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;)V
.registers 2
.line 238
invoke-static {p0, p1}, Lcom/tencent/liteav/videoproducer/capture/ar;->a(Lcom/tencent/liteav/videoproducer/capture/ak;Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;)Ljava/lang/Runnable;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/tencent/liteav/videoproducer/capture/ak;->a(Ljava/lang/Runnable;)V
return-void
.end method