apkfuckery/com.discord/smali/f/a/h/r/b.smali

261 lines
5.4 KiB
Smali

.class public final Lf/a/h/r/b;
.super Lorg/webrtc/ScreenCapturerAndroid;
.source "ScreenCapturer.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lf/a/h/r/b$a;
}
.end annotation
# instance fields
.field public final d:Lf/a/h/r/b$a;
.field public e:Lco/discord/media_engine/NativeCapturerObserver;
.field public f:I
.field public g:I
.field public h:Ljava/lang/Long;
.field public i:Lorg/webrtc/SurfaceTextureHelper;
# direct methods
.method public constructor <init>(Landroid/content/Intent;Landroid/media/projection/MediaProjection$Callback;)V
.locals 1
const-string v0, "mediaProjectionPermissionResultData"
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "mediaProjectionCallback"
invoke-static {p2, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, p1, p2}, Lorg/webrtc/ScreenCapturerAndroid;-><init>(Landroid/content/Intent;Landroid/media/projection/MediaProjection$Callback;)V
new-instance p1, Lf/a/h/r/b$a;
invoke-direct {p1, p0}, Lf/a/h/r/b$a;-><init>(Lf/a/h/r/b;)V
iput-object p1, p0, Lf/a/h/r/b;->d:Lf/a/h/r/b$a;
return-void
.end method
# virtual methods
.method public final a()V
.locals 6
iget v0, p0, Lf/a/h/r/b;->f:I
if-lez v0, :cond_0
iget-object v0, p0, Lf/a/h/r/b;->i:Lorg/webrtc/SurfaceTextureHelper;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lorg/webrtc/SurfaceTextureHelper;->getHandler()Landroid/os/Handler;
move-result-object v0
iget-object v1, p0, Lf/a/h/r/b;->d:Lf/a/h/r/b$a;
iget v2, p0, Lf/a/h/r/b;->g:I
int-to-long v2, v2
const v4, 0xf4240
int-to-long v4, v4
div-long/2addr v2, v4
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
:cond_0
return-void
.end method
.method public declared-synchronized changeCaptureFormat(III)V
.locals 0
monitor-enter p0
:try_start_0
invoke-super {p0, p1, p2, p3}, Lorg/webrtc/ScreenCapturerAndroid;->changeCaptureFormat(III)V
if-gtz p3, :cond_0
const/4 p1, 0x0
iput p1, p0, Lf/a/h/r/b;->f:I
iput p1, p0, Lf/a/h/r/b;->g:I
goto :goto_0
:cond_0
iput p3, p0, Lf/a/h/r/b;->f:I
const p1, 0x3b9aca00
div-int/2addr p1, p3
iput p1, p0, Lf/a/h/r/b;->g:I
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:goto_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized initialize(Lorg/webrtc/SurfaceTextureHelper;Landroid/content/Context;Lorg/webrtc/CapturerObserver;)V
.locals 1
monitor-enter p0
:try_start_0
const-string v0, "surfaceTextureHelper"
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "applicationContext"
invoke-static {p2, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "capturerObserver"
invoke-static {p3, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p1, p0, Lf/a/h/r/b;->i:Lorg/webrtc/SurfaceTextureHelper;
move-object v0, p3
check-cast v0, Lco/discord/media_engine/NativeCapturerObserver;
iput-object v0, p0, Lf/a/h/r/b;->e:Lco/discord/media_engine/NativeCapturerObserver;
invoke-super {p0, p1, p2, p3}, Lorg/webrtc/ScreenCapturerAndroid;->initialize(Lorg/webrtc/SurfaceTextureHelper;Landroid/content/Context;Lorg/webrtc/CapturerObserver;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public onFrame(Lorg/webrtc/VideoFrame;)V
.locals 2
invoke-virtual {p1}, Lorg/webrtc/VideoFrame;->getTimestampNs()J
move-result-wide v0
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
iput-object v0, p0, Lf/a/h/r/b;->h:Ljava/lang/Long;
invoke-super {p0, p1}, Lorg/webrtc/ScreenCapturerAndroid;->onFrame(Lorg/webrtc/VideoFrame;)V
return-void
.end method
.method public declared-synchronized startCapture(III)V
.locals 0
monitor-enter p0
:try_start_0
invoke-super {p0, p1, p2, p3}, Lorg/webrtc/ScreenCapturerAndroid;->startCapture(III)V
if-gtz p3, :cond_0
const/4 p1, 0x0
iput p1, p0, Lf/a/h/r/b;->f:I
iput p1, p0, Lf/a/h/r/b;->g:I
goto :goto_0
:cond_0
iput p3, p0, Lf/a/h/r/b;->f:I
const p1, 0x3b9aca00
div-int/2addr p1, p3
iput p1, p0, Lf/a/h/r/b;->g:I
:goto_0
invoke-virtual {p0}, Lf/a/h/r/b;->a()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized stopCapture()V
.locals 1
monitor-enter p0
:try_start_0
invoke-super {p0}, Lorg/webrtc/ScreenCapturerAndroid;->stopCapture()V
const/4 v0, 0x0
iput v0, p0, Lf/a/h/r/b;->f:I
const/4 v0, 0x0
iput-object v0, p0, Lf/a/h/r/b;->h:Ljava/lang/Long;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method