2020-09-10 21:23:57 +00:00
|
|
|
.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
|
2020-09-14 18:37:20 +00:00
|
|
|
.field public final d:Lf/a/h/r/b$a;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
.field public e:Lco/discord/media_engine/NativeCapturerObserver;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
.field public f:I
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
.field public g:I
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
.field public h:Ljava/lang/Long;
|
|
|
|
|
|
|
|
.field public i:Lorg/webrtc/SurfaceTextureHelper;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iput-object p1, p0, Lf/a/h/r/b;->d:Lf/a/h/r/b$a;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-09-14 18:37:20 +00:00
|
|
|
.method public final a()V
|
2020-09-10 21:23:57 +00:00
|
|
|
.locals 6
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iget v0, p0, Lf/a/h/r/b;->f:I
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iget-object v0, p0, Lf/a/h/r/b;->i:Lorg/webrtc/SurfaceTextureHelper;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lorg/webrtc/SurfaceTextureHelper;->getHandler()Landroid/os/Handler;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iget-object v1, p0, Lf/a/h/r/b;->d:Lf/a/h/r/b$a;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iget v2, p0, Lf/a/h/r/b;->g:I
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iput p1, p0, Lf/a/h/r/b;->f:I
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iput p1, p0, Lf/a/h/r/b;->g:I
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-09-14 18:37:20 +00:00
|
|
|
iput p3, p0, Lf/a/h/r/b;->f:I
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
const p1, 0x3b9aca00
|
|
|
|
|
|
|
|
div-int/2addr p1, p3
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iput p1, p0, Lf/a/h/r/b;->g:I
|
2020-09-10 21:23:57 +00:00
|
|
|
: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
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
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;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
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
|
2020-09-14 18:37:20 +00:00
|
|
|
.locals 2
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-virtual {p1}, Lorg/webrtc/VideoFrame;->getTimestampNs()J
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
move-result-wide v0
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v0
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
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
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iput p1, p0, Lf/a/h/r/b;->f:I
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iput p1, p0, Lf/a/h/r/b;->g:I
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-09-14 18:37:20 +00:00
|
|
|
iput p3, p0, Lf/a/h/r/b;->f:I
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
const p1, 0x3b9aca00
|
|
|
|
|
|
|
|
div-int/2addr p1, p3
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iput p1, p0, Lf/a/h/r/b;->g:I
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-virtual {p0}, Lf/a/h/r/b;->a()V
|
2020-09-10 21:23:57 +00:00
|
|
|
: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
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iput v0, p0, Lf/a/h/r/b;->f:I
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iput-object v0, p0, Lf/a/h/r/b;->h:Ljava/lang/Long;
|
2020-09-10 21:23:57 +00:00
|
|
|
: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
|