2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lco/discord/media_engine/internal/OutboundVideo;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "NativeStatistics.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final avgEncodeTime:I
|
|
|
|
|
|
|
|
.field public final bwLimitedResolution:Z
|
|
|
|
|
|
|
|
.field public final codecName:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public final codecPayloadType:I
|
|
|
|
|
|
|
|
.field public final cpuLimitedResolution:Z
|
|
|
|
|
|
|
|
.field public final encodeFrameRate:I
|
|
|
|
|
|
|
|
.field public final encodeUsage:I
|
|
|
|
|
|
|
|
.field public final encoderImplementationName:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public final framesEncoded:I
|
|
|
|
|
|
|
|
.field public final inputFrameRate:I
|
|
|
|
|
|
|
|
.field public final mediaBitrate:I
|
|
|
|
|
|
|
|
.field public final numberOfCPUAdaptChanges:I
|
|
|
|
|
|
|
|
.field public final numberOfQualityAdaptChanges:I
|
|
|
|
|
|
|
|
.field public final preferredMediaBitrate:I
|
|
|
|
|
|
|
|
.field public final qpSum:I
|
|
|
|
|
|
|
|
.field public final substreams:[Lco/discord/media_engine/internal/Substream;
|
|
|
|
|
|
|
|
.field public final suspended:Z
|
|
|
|
|
|
|
|
.field public final targetMediaBitrate:I
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Ljava/lang/String;IIZZIILjava/lang/String;IIIIIII[Lco/discord/media_engine/internal/Substream;ZI)V
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
move-object v1, p1
|
|
|
|
|
|
|
|
move-object v2, p8
|
|
|
|
|
|
|
|
move-object/from16 v3, p16
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-object v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->codecName:Ljava/lang/String;
|
|
|
|
|
|
|
|
move v1, p2
|
|
|
|
|
|
|
|
iput v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->codecPayloadType:I
|
|
|
|
|
|
|
|
move v1, p3
|
|
|
|
|
|
|
|
iput v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->avgEncodeTime:I
|
|
|
|
|
|
|
|
move v1, p4
|
|
|
|
|
|
|
|
iput-boolean v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->bwLimitedResolution:Z
|
|
|
|
|
|
|
|
move v1, p5
|
|
|
|
|
|
|
|
iput-boolean v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->cpuLimitedResolution:Z
|
|
|
|
|
|
|
|
move v1, p6
|
|
|
|
|
|
|
|
iput v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->encodeFrameRate:I
|
|
|
|
|
|
|
|
move v1, p7
|
|
|
|
|
|
|
|
iput v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->encodeUsage:I
|
|
|
|
|
|
|
|
iput-object v2, v0, Lco/discord/media_engine/internal/OutboundVideo;->encoderImplementationName:Ljava/lang/String;
|
|
|
|
|
|
|
|
move v1, p9
|
|
|
|
|
|
|
|
iput v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->framesEncoded:I
|
|
|
|
|
|
|
|
move v1, p10
|
|
|
|
|
|
|
|
iput v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->inputFrameRate:I
|
|
|
|
|
|
|
|
move/from16 v1, p11
|
|
|
|
|
|
|
|
iput v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->mediaBitrate:I
|
|
|
|
|
|
|
|
move/from16 v1, p12
|
|
|
|
|
|
|
|
iput v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->numberOfCPUAdaptChanges:I
|
|
|
|
|
|
|
|
move/from16 v1, p13
|
|
|
|
|
|
|
|
iput v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->numberOfQualityAdaptChanges:I
|
|
|
|
|
|
|
|
move/from16 v1, p14
|
|
|
|
|
|
|
|
iput v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->preferredMediaBitrate:I
|
|
|
|
|
|
|
|
move/from16 v1, p15
|
|
|
|
|
|
|
|
iput v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->qpSum:I
|
|
|
|
|
|
|
|
iput-object v3, v0, Lco/discord/media_engine/internal/OutboundVideo;->substreams:[Lco/discord/media_engine/internal/Substream;
|
|
|
|
|
|
|
|
move/from16 v1, p17
|
|
|
|
|
|
|
|
iput-boolean v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->suspended:Z
|
|
|
|
|
|
|
|
move/from16 v1, p18
|
|
|
|
|
|
|
|
iput v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->targetMediaBitrate:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v1, "substreams"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v4
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string v1, "encoderImplementationName"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v4
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string v1, "codecName"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v4
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic copy$default(Lco/discord/media_engine/internal/OutboundVideo;Ljava/lang/String;IIZZIILjava/lang/String;IIIIIII[Lco/discord/media_engine/internal/Substream;ZIILjava/lang/Object;)Lco/discord/media_engine/internal/OutboundVideo;
|
|
|
|
.locals 17
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
move/from16 v1, p19
|
|
|
|
|
|
|
|
and-int/lit8 v2, v1, 0x1
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
iget-object v2, v0, Lco/discord/media_engine/internal/OutboundVideo;->codecName:Ljava/lang/String;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-object/from16 v2, p1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
and-int/lit8 v3, v1, 0x2
|
|
|
|
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
|
|
|
|
iget v3, v0, Lco/discord/media_engine/internal/OutboundVideo;->codecPayloadType:I
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move/from16 v3, p2
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
and-int/lit8 v4, v1, 0x4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
|
|
|
|
iget v4, v0, Lco/discord/media_engine/internal/OutboundVideo;->avgEncodeTime:I
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move/from16 v4, p3
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
and-int/lit8 v5, v1, 0x8
|
|
|
|
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
|
|
|
|
iget-boolean v5, v0, Lco/discord/media_engine/internal/OutboundVideo;->bwLimitedResolution:Z
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
move/from16 v5, p4
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
and-int/lit8 v6, v1, 0x10
|
|
|
|
|
|
|
|
if-eqz v6, :cond_4
|
|
|
|
|
|
|
|
iget-boolean v6, v0, Lco/discord/media_engine/internal/OutboundVideo;->cpuLimitedResolution:Z
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
move/from16 v6, p5
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
and-int/lit8 v7, v1, 0x20
|
|
|
|
|
|
|
|
if-eqz v7, :cond_5
|
|
|
|
|
|
|
|
iget v7, v0, Lco/discord/media_engine/internal/OutboundVideo;->encodeFrameRate:I
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
move/from16 v7, p6
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
and-int/lit8 v8, v1, 0x40
|
|
|
|
|
|
|
|
if-eqz v8, :cond_6
|
|
|
|
|
|
|
|
iget v8, v0, Lco/discord/media_engine/internal/OutboundVideo;->encodeUsage:I
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
move/from16 v8, p7
|
|
|
|
|
|
|
|
:goto_6
|
|
|
|
and-int/lit16 v9, v1, 0x80
|
|
|
|
|
|
|
|
if-eqz v9, :cond_7
|
|
|
|
|
|
|
|
iget-object v9, v0, Lco/discord/media_engine/internal/OutboundVideo;->encoderImplementationName:Ljava/lang/String;
|
|
|
|
|
|
|
|
goto :goto_7
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
move-object/from16 v9, p8
|
|
|
|
|
|
|
|
:goto_7
|
|
|
|
and-int/lit16 v10, v1, 0x100
|
|
|
|
|
|
|
|
if-eqz v10, :cond_8
|
|
|
|
|
|
|
|
iget v10, v0, Lco/discord/media_engine/internal/OutboundVideo;->framesEncoded:I
|
|
|
|
|
|
|
|
goto :goto_8
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
move/from16 v10, p9
|
|
|
|
|
|
|
|
:goto_8
|
|
|
|
and-int/lit16 v11, v1, 0x200
|
|
|
|
|
|
|
|
if-eqz v11, :cond_9
|
|
|
|
|
|
|
|
iget v11, v0, Lco/discord/media_engine/internal/OutboundVideo;->inputFrameRate:I
|
|
|
|
|
|
|
|
goto :goto_9
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
move/from16 v11, p10
|
|
|
|
|
|
|
|
:goto_9
|
|
|
|
and-int/lit16 v12, v1, 0x400
|
|
|
|
|
|
|
|
if-eqz v12, :cond_a
|
|
|
|
|
|
|
|
iget v12, v0, Lco/discord/media_engine/internal/OutboundVideo;->mediaBitrate:I
|
|
|
|
|
|
|
|
goto :goto_a
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
move/from16 v12, p11
|
|
|
|
|
|
|
|
:goto_a
|
|
|
|
and-int/lit16 v13, v1, 0x800
|
|
|
|
|
|
|
|
if-eqz v13, :cond_b
|
|
|
|
|
|
|
|
iget v13, v0, Lco/discord/media_engine/internal/OutboundVideo;->numberOfCPUAdaptChanges:I
|
|
|
|
|
|
|
|
goto :goto_b
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
move/from16 v13, p12
|
|
|
|
|
|
|
|
:goto_b
|
|
|
|
and-int/lit16 v14, v1, 0x1000
|
|
|
|
|
|
|
|
if-eqz v14, :cond_c
|
|
|
|
|
|
|
|
iget v14, v0, Lco/discord/media_engine/internal/OutboundVideo;->numberOfQualityAdaptChanges:I
|
|
|
|
|
|
|
|
goto :goto_c
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
move/from16 v14, p13
|
|
|
|
|
|
|
|
:goto_c
|
|
|
|
and-int/lit16 v15, v1, 0x2000
|
|
|
|
|
|
|
|
if-eqz v15, :cond_d
|
|
|
|
|
|
|
|
iget v15, v0, Lco/discord/media_engine/internal/OutboundVideo;->preferredMediaBitrate:I
|
|
|
|
|
|
|
|
goto :goto_d
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
move/from16 v15, p14
|
|
|
|
|
|
|
|
:goto_d
|
|
|
|
move/from16 p14, v15
|
|
|
|
|
|
|
|
and-int/lit16 v15, v1, 0x4000
|
|
|
|
|
|
|
|
if-eqz v15, :cond_e
|
|
|
|
|
|
|
|
iget v15, v0, Lco/discord/media_engine/internal/OutboundVideo;->qpSum:I
|
|
|
|
|
|
|
|
goto :goto_e
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
move/from16 v15, p15
|
|
|
|
|
|
|
|
:goto_e
|
|
|
|
const v16, 0x8000
|
|
|
|
|
|
|
|
and-int v16, v1, v16
|
|
|
|
|
|
|
|
move/from16 p15, v15
|
|
|
|
|
|
|
|
if-eqz v16, :cond_f
|
|
|
|
|
|
|
|
iget-object v15, v0, Lco/discord/media_engine/internal/OutboundVideo;->substreams:[Lco/discord/media_engine/internal/Substream;
|
|
|
|
|
|
|
|
goto :goto_f
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
move-object/from16 v15, p16
|
|
|
|
|
|
|
|
:goto_f
|
|
|
|
const/high16 v16, 0x10000
|
|
|
|
|
|
|
|
and-int v16, v1, v16
|
|
|
|
|
|
|
|
move-object/from16 p16, v15
|
|
|
|
|
|
|
|
if-eqz v16, :cond_10
|
|
|
|
|
|
|
|
iget-boolean v15, v0, Lco/discord/media_engine/internal/OutboundVideo;->suspended:Z
|
|
|
|
|
|
|
|
goto :goto_10
|
|
|
|
|
|
|
|
:cond_10
|
|
|
|
move/from16 v15, p17
|
|
|
|
|
|
|
|
:goto_10
|
|
|
|
const/high16 v16, 0x20000
|
|
|
|
|
|
|
|
and-int v1, v1, v16
|
|
|
|
|
|
|
|
if-eqz v1, :cond_11
|
|
|
|
|
|
|
|
iget v1, v0, Lco/discord/media_engine/internal/OutboundVideo;->targetMediaBitrate:I
|
|
|
|
|
|
|
|
goto :goto_11
|
|
|
|
|
|
|
|
:cond_11
|
|
|
|
move/from16 v1, p18
|
|
|
|
|
|
|
|
:goto_11
|
|
|
|
move-object/from16 p1, v2
|
|
|
|
|
|
|
|
move/from16 p2, v3
|
|
|
|
|
|
|
|
move/from16 p3, v4
|
|
|
|
|
|
|
|
move/from16 p4, v5
|
|
|
|
|
|
|
|
move/from16 p5, v6
|
|
|
|
|
|
|
|
move/from16 p6, v7
|
|
|
|
|
|
|
|
move/from16 p7, v8
|
|
|
|
|
|
|
|
move-object/from16 p8, v9
|
|
|
|
|
|
|
|
move/from16 p9, v10
|
|
|
|
|
|
|
|
move/from16 p10, v11
|
|
|
|
|
|
|
|
move/from16 p11, v12
|
|
|
|
|
|
|
|
move/from16 p12, v13
|
|
|
|
|
|
|
|
move/from16 p13, v14
|
|
|
|
|
|
|
|
move/from16 p17, v15
|
|
|
|
|
|
|
|
move/from16 p18, v1
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p18}, Lco/discord/media_engine/internal/OutboundVideo;->copy(Ljava/lang/String;IIZZIILjava/lang/String;IIIIIII[Lco/discord/media_engine/internal/Substream;ZI)Lco/discord/media_engine/internal/OutboundVideo;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final component1()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->codecName:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component10()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->inputFrameRate:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component11()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->mediaBitrate:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component12()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->numberOfCPUAdaptChanges:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component13()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->numberOfQualityAdaptChanges:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component14()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->preferredMediaBitrate:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component15()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->qpSum:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component16()[Lco/discord/media_engine/internal/Substream;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->substreams:[Lco/discord/media_engine/internal/Substream;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component17()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->suspended:Z
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component18()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->targetMediaBitrate:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component2()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->codecPayloadType:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component3()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->avgEncodeTime:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component4()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->bwLimitedResolution:Z
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component5()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->cpuLimitedResolution:Z
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component6()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->encodeFrameRate:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component7()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->encodeUsage:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component8()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->encoderImplementationName:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component9()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->framesEncoded:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final copy(Ljava/lang/String;IIZZIILjava/lang/String;IIIIIII[Lco/discord/media_engine/internal/Substream;ZI)Lco/discord/media_engine/internal/OutboundVideo;
|
|
|
|
.locals 20
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
if-eqz p8, :cond_1
|
|
|
|
|
|
|
|
if-eqz p16, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Lco/discord/media_engine/internal/OutboundVideo;
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
move-object/from16 v2, p1
|
|
|
|
|
|
|
|
move/from16 v3, p2
|
|
|
|
|
|
|
|
move/from16 v4, p3
|
|
|
|
|
|
|
|
move/from16 v5, p4
|
|
|
|
|
|
|
|
move/from16 v6, p5
|
|
|
|
|
|
|
|
move/from16 v7, p6
|
|
|
|
|
|
|
|
move/from16 v8, p7
|
|
|
|
|
|
|
|
move-object/from16 v9, p8
|
|
|
|
|
|
|
|
move/from16 v10, p9
|
|
|
|
|
|
|
|
move/from16 v11, p10
|
|
|
|
|
|
|
|
move/from16 v12, p11
|
|
|
|
|
|
|
|
move/from16 v13, p12
|
|
|
|
|
|
|
|
move/from16 v14, p13
|
|
|
|
|
|
|
|
move/from16 v15, p14
|
|
|
|
|
|
|
|
move/from16 v16, p15
|
|
|
|
|
|
|
|
move-object/from16 v17, p16
|
|
|
|
|
|
|
|
move/from16 v18, p17
|
|
|
|
|
|
|
|
move/from16 v19, p18
|
|
|
|
|
|
|
|
invoke-direct/range {v1 .. v19}, Lco/discord/media_engine/internal/OutboundVideo;-><init>(Ljava/lang/String;IIZZIILjava/lang/String;IIIIIII[Lco/discord/media_engine/internal/Substream;ZI)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v1, "substreams"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string v1, "encoderImplementationName"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string v1, "codecName"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
if-eq p0, p1, :cond_10
|
|
|
|
|
|
|
|
instance-of v1, p1, Lco/discord/media_engine/internal/OutboundVideo;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
check-cast p1, Lco/discord/media_engine/internal/OutboundVideo;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->codecName:Ljava/lang/String;
|
|
|
|
|
|
|
|
iget-object v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->codecName:Ljava/lang/String;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v1, v3}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->codecPayloadType:I
|
|
|
|
|
|
|
|
iget v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->codecPayloadType:I
|
|
|
|
|
|
|
|
if-ne v1, v3, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->avgEncodeTime:I
|
|
|
|
|
|
|
|
iget v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->avgEncodeTime:I
|
|
|
|
|
|
|
|
if-ne v1, v3, :cond_1
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->bwLimitedResolution:Z
|
|
|
|
|
|
|
|
iget-boolean v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->bwLimitedResolution:Z
|
|
|
|
|
|
|
|
if-ne v1, v3, :cond_2
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->cpuLimitedResolution:Z
|
|
|
|
|
|
|
|
iget-boolean v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->cpuLimitedResolution:Z
|
|
|
|
|
|
|
|
if-ne v1, v3, :cond_3
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->encodeFrameRate:I
|
|
|
|
|
|
|
|
iget v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->encodeFrameRate:I
|
|
|
|
|
|
|
|
if-ne v1, v3, :cond_4
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->encodeUsage:I
|
|
|
|
|
|
|
|
iget v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->encodeUsage:I
|
|
|
|
|
|
|
|
if-ne v1, v3, :cond_5
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget-object v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->encoderImplementationName:Ljava/lang/String;
|
|
|
|
|
|
|
|
iget-object v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->encoderImplementationName:Ljava/lang/String;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v1, v3}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->framesEncoded:I
|
|
|
|
|
|
|
|
iget v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->framesEncoded:I
|
|
|
|
|
|
|
|
if-ne v1, v3, :cond_6
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_6
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->inputFrameRate:I
|
|
|
|
|
|
|
|
iget v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->inputFrameRate:I
|
|
|
|
|
|
|
|
if-ne v1, v3, :cond_7
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_7
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_7
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->mediaBitrate:I
|
|
|
|
|
|
|
|
iget v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->mediaBitrate:I
|
|
|
|
|
|
|
|
if-ne v1, v3, :cond_8
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_8
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_8
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->numberOfCPUAdaptChanges:I
|
|
|
|
|
|
|
|
iget v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->numberOfCPUAdaptChanges:I
|
|
|
|
|
|
|
|
if-ne v1, v3, :cond_9
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_9
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_9
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->numberOfQualityAdaptChanges:I
|
|
|
|
|
|
|
|
iget v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->numberOfQualityAdaptChanges:I
|
|
|
|
|
|
|
|
if-ne v1, v3, :cond_a
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_a
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_a
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->preferredMediaBitrate:I
|
|
|
|
|
|
|
|
iget v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->preferredMediaBitrate:I
|
|
|
|
|
|
|
|
if-ne v1, v3, :cond_b
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_b
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_b
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->qpSum:I
|
|
|
|
|
|
|
|
iget v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->qpSum:I
|
|
|
|
|
|
|
|
if-ne v1, v3, :cond_c
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_c
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_c
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget-object v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->substreams:[Lco/discord/media_engine/internal/Substream;
|
|
|
|
|
|
|
|
iget-object v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->substreams:[Lco/discord/media_engine/internal/Substream;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v1, v3}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->suspended:Z
|
|
|
|
|
|
|
|
iget-boolean v3, p1, Lco/discord/media_engine/internal/OutboundVideo;->suspended:Z
|
|
|
|
|
|
|
|
if-ne v1, v3, :cond_d
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_d
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_d
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->targetMediaBitrate:I
|
|
|
|
|
|
|
|
iget p1, p1, Lco/discord/media_engine/internal/OutboundVideo;->targetMediaBitrate:I
|
|
|
|
|
|
|
|
if-ne v1, p1, :cond_e
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_e
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_e
|
|
|
|
if-eqz p1, :cond_f
|
|
|
|
|
|
|
|
goto :goto_f
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_10
|
|
|
|
:goto_f
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getAvgEncodeTime()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->avgEncodeTime:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getBwLimitedResolution()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->bwLimitedResolution:Z
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getCodecName()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->codecName:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getCodecPayloadType()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->codecPayloadType:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getCpuLimitedResolution()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->cpuLimitedResolution:Z
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getEncodeFrameRate()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->encodeFrameRate:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getEncodeUsage()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->encodeUsage:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getEncoderImplementationName()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->encoderImplementationName:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getFramesEncoded()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->framesEncoded:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getInputFrameRate()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->inputFrameRate:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getMediaBitrate()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->mediaBitrate:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getNumberOfCPUAdaptChanges()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->numberOfCPUAdaptChanges:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getNumberOfQualityAdaptChanges()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->numberOfQualityAdaptChanges:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getPreferredMediaBitrate()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->preferredMediaBitrate:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getQpSum()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->qpSum:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getSubstreams()[Lco/discord/media_engine/internal/Substream;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->substreams:[Lco/discord/media_engine/internal/Substream;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getSuspended()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->suspended:Z
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getTargetMediaBitrate()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->targetMediaBitrate:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public hashCode()I
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
iget-object v0, p0, Lco/discord/media_engine/internal/OutboundVideo;->codecName:Ljava/lang/String;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget v2, p0, Lco/discord/media_engine/internal/OutboundVideo;->codecPayloadType:I
|
|
|
|
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget v2, p0, Lco/discord/media_engine/internal/OutboundVideo;->avgEncodeTime:I
|
|
|
|
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget-boolean v2, p0, Lco/discord/media_engine/internal/OutboundVideo;->bwLimitedResolution:Z
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget-boolean v2, p0, Lco/discord/media_engine/internal/OutboundVideo;->cpuLimitedResolution:Z
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget v2, p0, Lco/discord/media_engine/internal/OutboundVideo;->encodeFrameRate:I
|
|
|
|
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget v2, p0, Lco/discord/media_engine/internal/OutboundVideo;->encodeUsage:I
|
|
|
|
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget-object v2, p0, Lco/discord/media_engine/internal/OutboundVideo;->encoderImplementationName:Ljava/lang/String;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget v2, p0, Lco/discord/media_engine/internal/OutboundVideo;->framesEncoded:I
|
|
|
|
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget v2, p0, Lco/discord/media_engine/internal/OutboundVideo;->inputFrameRate:I
|
|
|
|
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget v2, p0, Lco/discord/media_engine/internal/OutboundVideo;->mediaBitrate:I
|
|
|
|
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget v2, p0, Lco/discord/media_engine/internal/OutboundVideo;->numberOfCPUAdaptChanges:I
|
|
|
|
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget v2, p0, Lco/discord/media_engine/internal/OutboundVideo;->numberOfQualityAdaptChanges:I
|
|
|
|
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget v2, p0, Lco/discord/media_engine/internal/OutboundVideo;->preferredMediaBitrate:I
|
|
|
|
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget v2, p0, Lco/discord/media_engine/internal/OutboundVideo;->qpSum:I
|
|
|
|
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget-object v2, p0, Lco/discord/media_engine/internal/OutboundVideo;->substreams:[Lco/discord/media_engine/internal/Substream;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
|
|
|
|
invoke-static {v2}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->suspended:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_5
|
2020-07-08 16:44:49 +00:00
|
|
|
move v3, v1
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
add-int/2addr v0, v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->targetMediaBitrate:I
|
|
|
|
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const-string v0, "OutboundVideo(codecName="
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->codecName:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", codecPayloadType="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->codecPayloadType:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", avgEncodeTime="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->avgEncodeTime:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", bwLimitedResolution="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->bwLimitedResolution:Z
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", cpuLimitedResolution="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->cpuLimitedResolution:Z
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", encodeFrameRate="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->encodeFrameRate:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", encodeUsage="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->encodeUsage:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", encoderImplementationName="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->encoderImplementationName:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", framesEncoded="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->framesEncoded:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", inputFrameRate="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->inputFrameRate:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", mediaBitrate="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->mediaBitrate:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", numberOfCPUAdaptChanges="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->numberOfCPUAdaptChanges:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", numberOfQualityAdaptChanges="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->numberOfQualityAdaptChanges:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", preferredMediaBitrate="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->preferredMediaBitrate:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", qpSum="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->qpSum:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", substreams="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->substreams:[Lco/discord/media_engine/internal/Substream;
|
|
|
|
|
|
|
|
invoke-static {v1}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", suspended="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->suspended:Z
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", targetMediaBitrate="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget v1, p0, Lco/discord/media_engine/internal/OutboundVideo;->targetMediaBitrate:I
|
|
|
|
|
|
|
|
const-string v2, ")"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v0, v1, v2}, Lf/e/b/a/a;->t(Ljava/lang/StringBuilder;ILjava/lang/String;)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|