Changes of com.discord v1260
This commit is contained in:
parent
992e6ebb45
commit
d892b01c80
900 changed files with 21156 additions and 16097 deletions
|
@ -23,7 +23,7 @@
|
|||
|
||||
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "type"
|
||||
const-string/jumbo v0, "type"
|
||||
|
||||
invoke-static {p3, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
|
|
|
@ -40,48 +40,48 @@
|
|||
|
||||
# virtual methods
|
||||
.method public run()V
|
||||
.locals 9
|
||||
.locals 8
|
||||
|
||||
iget-object v0, p0, Lf/a/h/r/b$a;->d:Lf/a/h/r/b;
|
||||
|
||||
iget v1, v0, Lf/a/h/r/b;->d:I
|
||||
iget v1, v0, Lf/a/h/r/b;->f:I
|
||||
|
||||
if-lez v1, :cond_1
|
||||
|
||||
iget-object v0, v0, Lf/a/h/r/b;->f:Lorg/webrtc/VideoFrame;
|
||||
iget-object v0, v0, Lf/a/h/r/b;->h:Ljava/lang/Long;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Number;->longValue()J
|
||||
|
||||
move-result-wide v0
|
||||
|
||||
invoke-static {}, Lorg/webrtc/TimestampAligner;->getRtcTimeNanos()J
|
||||
|
||||
move-result-wide v1
|
||||
move-result-wide v2
|
||||
|
||||
invoke-virtual {v0}, Lorg/webrtc/VideoFrame;->getTimestampNs()J
|
||||
sub-long v0, v2, v0
|
||||
|
||||
move-result-wide v3
|
||||
iget-object v4, p0, Lf/a/h/r/b$a;->d:Lf/a/h/r/b;
|
||||
|
||||
sub-long v3, v1, v3
|
||||
iget v5, v4, Lf/a/h/r/b;->g:I
|
||||
|
||||
iget-object v5, p0, Lf/a/h/r/b$a;->d:Lf/a/h/r/b;
|
||||
int-to-long v5, v5
|
||||
|
||||
iget v6, v5, Lf/a/h/r/b;->e:I
|
||||
cmp-long v7, v0, v5
|
||||
|
||||
int-to-long v6, v6
|
||||
if-lez v7, :cond_0
|
||||
|
||||
cmp-long v8, v3, v6
|
||||
iget-object v0, v4, Lf/a/h/r/b;->e:Lco/discord/media_engine/NativeCapturerObserver;
|
||||
|
||||
if-lez v8, :cond_0
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
invoke-virtual {v5, v0, v1, v2}, Lf/a/h/r/b;->a(Lorg/webrtc/VideoFrame;J)Lorg/webrtc/VideoFrame;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v5, v0}, Lf/a/h/r/b;->b(Lorg/webrtc/VideoFrame;)V
|
||||
invoke-virtual {v0, v2, v3}, Lco/discord/media_engine/NativeCapturerObserver;->repeatLastFrame(J)V
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lf/a/h/r/b$a;->d:Lf/a/h/r/b;
|
||||
|
||||
invoke-virtual {v0}, Lf/a/h/r/b;->c()V
|
||||
invoke-virtual {v0}, Lf/a/h/r/b;->a()V
|
||||
|
||||
:cond_1
|
||||
return-void
|
||||
|
|
|
@ -12,15 +12,17 @@
|
|||
|
||||
|
||||
# instance fields
|
||||
.field public d:I
|
||||
.field public final d:Lf/a/h/r/b$a;
|
||||
|
||||
.field public e:I
|
||||
.field public e:Lco/discord/media_engine/NativeCapturerObserver;
|
||||
|
||||
.field public f:Lorg/webrtc/VideoFrame;
|
||||
.field public f:I
|
||||
|
||||
.field public g:Lorg/webrtc/SurfaceTextureHelper;
|
||||
.field public g:I
|
||||
|
||||
.field public final h:Lf/a/h/r/b$a;
|
||||
.field public h:Ljava/lang/Long;
|
||||
|
||||
.field public i:Lorg/webrtc/SurfaceTextureHelper;
|
||||
|
||||
|
||||
# direct methods
|
||||
|
@ -41,86 +43,21 @@
|
|||
|
||||
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;->h:Lf/a/h/r/b$a;
|
||||
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(Lorg/webrtc/VideoFrame;J)Lorg/webrtc/VideoFrame;
|
||||
.locals 2
|
||||
|
||||
const-string v0, "frame"
|
||||
|
||||
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {p1}, Lorg/webrtc/VideoFrame;->getBuffer()Lorg/webrtc/VideoFrame$Buffer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, "frame.buffer"
|
||||
|
||||
invoke-static {v0, v1}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v1, "buffer"
|
||||
|
||||
invoke-static {v0, v1}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-interface {v0}, Lorg/webrtc/VideoFrame$Buffer;->toI420()Lorg/webrtc/VideoFrame$I420Buffer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, "buffer.toI420()"
|
||||
|
||||
invoke-static {v0, v1}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v1, Lorg/webrtc/VideoFrame;
|
||||
|
||||
invoke-virtual {p1}, Lorg/webrtc/VideoFrame;->getRotation()I
|
||||
|
||||
move-result p1
|
||||
|
||||
invoke-direct {v1, v0, p1, p2, p3}, Lorg/webrtc/VideoFrame;-><init>(Lorg/webrtc/VideoFrame$Buffer;IJ)V
|
||||
|
||||
return-object v1
|
||||
.end method
|
||||
|
||||
.method public final b(Lorg/webrtc/VideoFrame;)V
|
||||
.locals 2
|
||||
|
||||
invoke-virtual {p1}, Lorg/webrtc/VideoFrame;->getTimestampNs()J
|
||||
|
||||
move-result-wide v0
|
||||
|
||||
invoke-virtual {p0, p1, v0, v1}, Lf/a/h/r/b;->a(Lorg/webrtc/VideoFrame;J)Lorg/webrtc/VideoFrame;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
iget-object v1, p0, Lf/a/h/r/b;->f:Lorg/webrtc/VideoFrame;
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
invoke-virtual {v1}, Lorg/webrtc/VideoFrame;->release()V
|
||||
|
||||
:cond_0
|
||||
iput-object v0, p0, Lf/a/h/r/b;->f:Lorg/webrtc/VideoFrame;
|
||||
|
||||
invoke-virtual {v0}, Lorg/webrtc/VideoFrame;->retain()V
|
||||
|
||||
invoke-super {p0, p1}, Lorg/webrtc/ScreenCapturerAndroid;->onFrame(Lorg/webrtc/VideoFrame;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public final c()V
|
||||
.method public final a()V
|
||||
.locals 6
|
||||
|
||||
iget v0, p0, Lf/a/h/r/b;->d:I
|
||||
iget v0, p0, Lf/a/h/r/b;->f:I
|
||||
|
||||
if-lez v0, :cond_0
|
||||
|
||||
iget-object v0, p0, Lf/a/h/r/b;->g:Lorg/webrtc/SurfaceTextureHelper;
|
||||
iget-object v0, p0, Lf/a/h/r/b;->i:Lorg/webrtc/SurfaceTextureHelper;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
|
@ -128,9 +65,9 @@
|
|||
|
||||
move-result-object v0
|
||||
|
||||
iget-object v1, p0, Lf/a/h/r/b;->h:Lf/a/h/r/b$a;
|
||||
iget-object v1, p0, Lf/a/h/r/b;->d:Lf/a/h/r/b$a;
|
||||
|
||||
iget v2, p0, Lf/a/h/r/b;->e:I
|
||||
iget v2, p0, Lf/a/h/r/b;->g:I
|
||||
|
||||
int-to-long v2, v2
|
||||
|
||||
|
@ -158,20 +95,20 @@
|
|||
|
||||
const/4 p1, 0x0
|
||||
|
||||
iput p1, p0, Lf/a/h/r/b;->d:I
|
||||
iput p1, p0, Lf/a/h/r/b;->f:I
|
||||
|
||||
iput p1, p0, Lf/a/h/r/b;->e:I
|
||||
iput p1, p0, Lf/a/h/r/b;->g:I
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
iput p3, p0, Lf/a/h/r/b;->d:I
|
||||
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;->e:I
|
||||
iput p1, p0, Lf/a/h/r/b;->g:I
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
|
@ -206,7 +143,13 @@
|
|||
|
||||
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;->g:Lorg/webrtc/SurfaceTextureHelper;
|
||||
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
|
||||
|
@ -225,16 +168,20 @@
|
|||
.end method
|
||||
|
||||
.method public onFrame(Lorg/webrtc/VideoFrame;)V
|
||||
.locals 1
|
||||
.locals 2
|
||||
|
||||
const-string v0, "frame"
|
||||
invoke-virtual {p1}, Lorg/webrtc/VideoFrame;->getTimestampNs()J
|
||||
|
||||
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
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
|
||||
|
||||
invoke-virtual {p0, p1}, Lf/a/h/r/b;->b(Lorg/webrtc/VideoFrame;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
@ -250,23 +197,23 @@
|
|||
|
||||
const/4 p1, 0x0
|
||||
|
||||
iput p1, p0, Lf/a/h/r/b;->d:I
|
||||
iput p1, p0, Lf/a/h/r/b;->f:I
|
||||
|
||||
iput p1, p0, Lf/a/h/r/b;->e:I
|
||||
iput p1, p0, Lf/a/h/r/b;->g:I
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
iput p3, p0, Lf/a/h/r/b;->d:I
|
||||
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;->e:I
|
||||
iput p1, p0, Lf/a/h/r/b;->g:I
|
||||
|
||||
:goto_0
|
||||
invoke-virtual {p0}, Lf/a/h/r/b;->c()V
|
||||
invoke-virtual {p0}, Lf/a/h/r/b;->a()V
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
|
@ -292,18 +239,11 @@
|
|||
|
||||
const/4 v0, 0x0
|
||||
|
||||
iput v0, p0, Lf/a/h/r/b;->d:I
|
||||
iput v0, p0, Lf/a/h/r/b;->f:I
|
||||
|
||||
iget-object v0, p0, Lf/a/h/r/b;->f:Lorg/webrtc/VideoFrame;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
invoke-virtual {v0}, Lorg/webrtc/VideoFrame;->release()V
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
iput-object v0, p0, Lf/a/h/r/b;->f:Lorg/webrtc/VideoFrame;
|
||||
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
|
||||
|
||||
|
|
|
@ -148,7 +148,7 @@
|
|||
|
||||
invoke-static {v4, v8}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v8, "type"
|
||||
const-string/jumbo v8, "type"
|
||||
|
||||
invoke-static {v5, v8}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue