2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lco/discord/media_engine/internal/TransformStats;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "TransformStats.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final INSTANCE:Lco/discord/media_engine/internal/TransformStats;
|
|
|
|
|
|
|
|
.field public static final gson:Lcom/google/gson/Gson;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
new-instance v0, Lco/discord/media_engine/internal/TransformStats;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lco/discord/media_engine/internal/TransformStats;-><init>()V
|
|
|
|
|
|
|
|
sput-object v0, Lco/discord/media_engine/internal/TransformStats;->INSTANCE:Lco/discord/media_engine/internal/TransformStats;
|
|
|
|
|
|
|
|
new-instance v0, Lcom/google/gson/Gson;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lcom/google/gson/Gson;-><init>()V
|
|
|
|
|
|
|
|
sput-object v0, Lco/discord/media_engine/internal/TransformStats;->gson:Lcom/google/gson/Gson;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final convertPlayoutMetricToMs(Lco/discord/media_engine/PlayoutMetric;)Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
.locals 11
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/PlayoutMetric;->getLast()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/16 v1, 0x3e8
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
|
|
|
mul-float v0, v0, v1
|
|
|
|
|
|
|
|
float-to-double v2, v0
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->rint(D)D
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
double-to-float v5, v2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/PlayoutMetric;->getMean()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
mul-float v0, v0, v1
|
|
|
|
|
|
|
|
float-to-double v2, v0
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->rint(D)D
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
double-to-float v6, v2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/PlayoutMetric;->getP75()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
mul-float v0, v0, v1
|
|
|
|
|
|
|
|
float-to-double v2, v0
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->rint(D)D
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
double-to-float v7, v2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/PlayoutMetric;->getP95()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
mul-float v0, v0, v1
|
|
|
|
|
|
|
|
float-to-double v2, v0
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->rint(D)D
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
double-to-float v8, v2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/PlayoutMetric;->getP99()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
mul-float v0, v0, v1
|
|
|
|
|
|
|
|
float-to-double v2, v0
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->rint(D)D
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
double-to-float v9, v2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/PlayoutMetric;->getMax()F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
mul-float p1, p1, v1
|
|
|
|
|
|
|
|
float-to-double v0, p1
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->rint(D)D
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
double-to-float v10, v0
|
|
|
|
|
|
|
|
new-instance p1, Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-object v4, p1
|
|
|
|
|
|
|
|
invoke-direct/range {v4 .. v10}, Lco/discord/media_engine/PlayoutMetric;-><init>(FFFFFF)V
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final sumBytes(Lco/discord/media_engine/internal/RtpStats;)J
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/RtpStats;->getFec()Lco/discord/media_engine/internal/PacketStats;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/internal/PacketStats;->getHeaderBytes()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/RtpStats;->getFec()Lco/discord/media_engine/internal/PacketStats;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/PacketStats;->getPayloadBytes()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
add-long/2addr v2, v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/RtpStats;->getFec()Lco/discord/media_engine/internal/PacketStats;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/internal/PacketStats;->getPaddingBytes()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/RtpStats;->getRetransmitted()Lco/discord/media_engine/internal/PacketStats;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/PacketStats;->getHeaderBytes()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
add-long/2addr v2, v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/RtpStats;->getRetransmitted()Lco/discord/media_engine/internal/PacketStats;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/internal/PacketStats;->getPayloadBytes()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/RtpStats;->getRetransmitted()Lco/discord/media_engine/internal/PacketStats;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/PacketStats;->getPaddingBytes()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
add-long/2addr v2, v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/RtpStats;->getTransmitted()Lco/discord/media_engine/internal/PacketStats;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/internal/PacketStats;->getHeaderBytes()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/RtpStats;->getTransmitted()Lco/discord/media_engine/internal/PacketStats;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/PacketStats;->getPayloadBytes()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
add-long/2addr v2, v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/RtpStats;->getTransmitted()Lco/discord/media_engine/internal/PacketStats;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/PacketStats;->getPaddingBytes()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final sumPackets(Lco/discord/media_engine/internal/RtpStats;)I
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/RtpStats;->getFec()Lco/discord/media_engine/internal/PacketStats;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/internal/PacketStats;->getPackets()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/RtpStats;->getRetransmitted()Lco/discord/media_engine/internal/PacketStats;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/PacketStats;->getPackets()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/RtpStats;->getTransmitted()Lco/discord/media_engine/internal/PacketStats;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/PacketStats;->getPackets()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
add-int/2addr p1, v1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final transform(Ljava/lang/String;)Lco/discord/media_engine/Stats;
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 80
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_15
|
|
|
|
|
|
|
|
sget-object v2, Lco/discord/media_engine/internal/TransformStats;->gson:Lcom/google/gson/Gson;
|
|
|
|
|
|
|
|
const-class v3, Lco/discord/media_engine/internal/NativeStats;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v2, v0, v3}, Lcom/google/gson/Gson;->e(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Lco/discord/media_engine/internal/NativeStats;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/internal/NativeStats;->getOutbound()Lco/discord/media_engine/internal/Outbound;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const/high16 v3, 0x47000000 # 32768.0f
|
|
|
|
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/Outbound;->getAudio()Lco/discord/media_engine/internal/OutboundAudio;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
invoke-virtual {v8}, Lco/discord/media_engine/internal/OutboundAudio;->getBytesSent()I
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
int-to-long v8, v8
|
|
|
|
|
|
|
|
add-long/2addr v8, v4
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/Outbound;->getAudio()Lco/discord/media_engine/internal/OutboundAudio;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
new-instance v21, Lco/discord/media_engine/OutboundRtpAudio;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundAudio;->getSsrc()I
|
|
|
|
|
|
|
|
move-result v12
|
|
|
|
|
|
|
|
new-instance v13, Lco/discord/media_engine/StatsCodec;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundAudio;->getCodecPayloadType()I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundAudio;->getCodecName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
invoke-direct {v13, v10, v11}, Lco/discord/media_engine/StatsCodec;-><init>(ILjava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundAudio;->getPacketsSent()I
|
|
|
|
|
|
|
|
move-result v16
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundAudio;->getPacketsLost()I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
invoke-static {v7, v10}, Ljava/lang/Math;->max(II)I
|
|
|
|
|
|
|
|
move-result v17
|
|
|
|
|
|
|
|
const/16 v10, 0x64
|
|
|
|
|
|
|
|
int-to-float v10, v10
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundAudio;->getFractionLost()F
|
|
|
|
|
|
|
|
move-result v11
|
|
|
|
|
|
|
|
mul-float v18, v11, v10
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundAudio;->getAudioLevel()I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
int-to-float v10, v10
|
|
|
|
|
|
|
|
div-float v19, v10, v3
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundAudio;->getSpeaking()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-lez v2, :cond_0
|
|
|
|
|
|
|
|
const/16 v20, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/16 v20, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const-string v11, "audio"
|
|
|
|
|
|
|
|
move-object/from16 v10, v21
|
|
|
|
|
|
|
|
move-wide v14, v8
|
|
|
|
|
|
|
|
invoke-direct/range {v10 .. v20}, Lco/discord/media_engine/OutboundRtpAudio;-><init>(Ljava/lang/String;ILco/discord/media_engine/StatsCodec;JIIFFZ)V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v12, v21
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-wide v8, v4
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v12, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/internal/NativeStats;->getOutbound()Lco/discord/media_engine/internal/Outbound;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/Outbound;->getVideo()Lco/discord/media_engine/internal/OutboundVideo;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getSubstreams()[Lco/discord/media_engine/internal/Substream;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
|
|
|
|
array-length v10, v2
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-ge v11, v10, :cond_4
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
aget-object v13, v2, v11
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v13}, Lco/discord/media_engine/internal/Substream;->isFlexFEC()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v14
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-nez v14, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v13}, Lco/discord/media_engine/internal/Substream;->isRTX()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v14
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-nez v14, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v14, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_2
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v14, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_3
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v14, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
add-int/lit8 v11, v11, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v13, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_4
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v13, :cond_7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/internal/NativeStats;->getOutbound()Lco/discord/media_engine/internal/Outbound;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/Outbound;->getVideo()Lco/discord/media_engine/internal/OutboundVideo;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getSubstreams()[Lco/discord/media_engine/internal/Substream;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
array-length v10, v2
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-wide/from16 v18, v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
if-ge v11, v10, :cond_5
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
aget-object v14, v2, v11
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-object v15, Lco/discord/media_engine/internal/TransformStats;->INSTANCE:Lco/discord/media_engine/internal/TransformStats;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v14}, Lco/discord/media_engine/internal/Substream;->getRtpStats()Lco/discord/media_engine/internal/RtpStats;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v14
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v15, v14}, Lco/discord/media_engine/internal/TransformStats;->sumBytes(Lco/discord/media_engine/internal/RtpStats;)J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-wide v14
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
add-long v18, v18, v14
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
add-int/lit8 v11, v11, 0x1
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_5
|
2020-07-08 16:44:49 +00:00
|
|
|
add-long v8, v8, v18
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/internal/NativeStats;->getOutbound()Lco/discord/media_engine/internal/Outbound;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/Outbound;->getVideo()Lco/discord/media_engine/internal/OutboundVideo;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v13}, Lco/discord/media_engine/internal/Substream;->getSsrc()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v16
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v10, Lco/discord/media_engine/StatsCodec;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getCodecPayloadType()I
|
|
|
|
|
|
|
|
move-result v11
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getCodecName()Ljava/lang/String;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v14
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v10, v11, v14}, Lco/discord/media_engine/StatsCodec;-><init>(ILjava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getSubstreams()[Lco/discord/media_engine/internal/Substream;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
array-length v14, v11
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v15, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v20, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_6
|
2020-07-08 16:44:49 +00:00
|
|
|
if-ge v15, v14, :cond_6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
aget-object v17, v11, v15
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
sget-object v4, Lco/discord/media_engine/internal/TransformStats;->INSTANCE:Lco/discord/media_engine/internal/TransformStats;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual/range {v17 .. v17}, Lco/discord/media_engine/internal/Substream;->getRtpStats()Lco/discord/media_engine/internal/RtpStats;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-direct {v4, v5}, Lco/discord/media_engine/internal/TransformStats;->sumPackets(Lco/discord/media_engine/internal/RtpStats;)I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
add-int v20, v20, v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
add-int/lit8 v15, v15, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_6
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v13}, Lco/discord/media_engine/internal/Substream;->getRtcpStats()Lco/discord/media_engine/internal/RtcpStats;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Lco/discord/media_engine/internal/RtcpStats;->getPacketsLost()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v21
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v13}, Lco/discord/media_engine/internal/Substream;->getRtcpStats()Lco/discord/media_engine/internal/RtcpStats;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Lco/discord/media_engine/internal/RtcpStats;->getFractionLost()F
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v22
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getMediaBitrate()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v23
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getTargetMediaBitrate()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v24
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getEncodeUsage()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v25
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getEncoderImplementationName()Ljava/lang/String;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v26
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getAvgEncodeTime()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v27
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v4, Lco/discord/media_engine/Resolution;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v28, v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v13}, Lco/discord/media_engine/internal/Substream;->getWidth()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v13}, Lco/discord/media_engine/internal/Substream;->getHeight()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v11
|
|
|
|
|
|
|
|
invoke-direct {v4, v5, v11}, Lco/discord/media_engine/Resolution;-><init>(II)V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v13}, Lco/discord/media_engine/internal/Substream;->getFrameCounts()Lco/discord/media_engine/internal/FrameCounts;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Lco/discord/media_engine/internal/FrameCounts;->getDeltaFrames()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v13}, Lco/discord/media_engine/internal/Substream;->getFrameCounts()Lco/discord/media_engine/internal/FrameCounts;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Lco/discord/media_engine/internal/FrameCounts;->getKeyFrames()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
add-int v29, v5, v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getFramesEncoded()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v30
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getInputFrameRate()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v31
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getEncodeFrameRate()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v32
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v13}, Lco/discord/media_engine/internal/Substream;->getRtcpStats()Lco/discord/media_engine/internal/RtcpStats;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Lco/discord/media_engine/internal/RtcpStats;->getFirPackets()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v33
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v13}, Lco/discord/media_engine/internal/Substream;->getRtcpStats()Lco/discord/media_engine/internal/RtcpStats;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Lco/discord/media_engine/internal/RtcpStats;->getNackPackets()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v34
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v13}, Lco/discord/media_engine/internal/Substream;->getRtcpStats()Lco/discord/media_engine/internal/RtcpStats;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Lco/discord/media_engine/internal/RtcpStats;->getPliPackets()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v35
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getQpSum()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v36
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getBwLimitedResolution()Z
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v37
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/internal/OutboundVideo;->getCpuLimitedResolution()Z
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v38
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Lco/discord/media_engine/OutboundRtpVideo;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object v14, v2
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const-string v15, "video"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v17, v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct/range {v14 .. v38}, Lco/discord/media_engine/OutboundRtpVideo;-><init>(Ljava/lang/String;ILco/discord/media_engine/StatsCodec;JIIFIIILjava/lang/String;ILco/discord/media_engine/Resolution;IIIIIIIIZZ)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object v13, v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-wide/from16 v45, v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_7
|
|
|
|
|
|
|
|
:cond_7
|
2020-07-08 16:44:49 +00:00
|
|
|
move-wide/from16 v45, v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v13, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_7
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v14, Ljava/util/LinkedHashMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v14}, Ljava/util/LinkedHashMap;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v15, Ljava/util/LinkedHashMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v15}, Ljava/util/LinkedHashMap;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/internal/NativeStats;->getInbound()[Lco/discord/media_engine/internal/Inbound;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v2, :cond_13
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
array-length v4, v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v5, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-wide/16 v39, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_8
|
2020-07-08 16:44:49 +00:00
|
|
|
if-ge v5, v4, :cond_12
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
aget-object v8, v2, v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v8}, Lco/discord/media_engine/internal/Inbound;->getId()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v8}, Lco/discord/media_engine/internal/Inbound;->getAudio()Lco/discord/media_engine/internal/InboundAudio;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getBytesReceived()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
int-to-long v10, v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
add-long v39, v39, v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v8}, Lco/discord/media_engine/internal/Inbound;->getAudio()Lco/discord/media_engine/internal/InboundAudio;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v8}, Lco/discord/media_engine/internal/Inbound;->getPlayout()Lco/discord/media_engine/internal/InboundPlayout;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v11
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v11, :cond_8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-object v11, Lco/discord/media_engine/internal/TransformStats;->INSTANCE:Lco/discord/media_engine/internal/TransformStats;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v8}, Lco/discord/media_engine/internal/Inbound;->getPlayout()Lco/discord/media_engine/internal/InboundPlayout;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v11, v6}, Lco/discord/media_engine/internal/TransformStats;->transformPlayoutStats(Lco/discord/media_engine/internal/InboundPlayout;)Lco/discord/media_engine/internal/InboundPlayout;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
goto :goto_9
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
:goto_9
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v11, Lco/discord/media_engine/InboundRtpAudio;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getSsrc()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v49
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v1, Lco/discord/media_engine/StatsCodec;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getCodecPayloadType()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getCodecName()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-direct {v1, v7, v3}, Lco/discord/media_engine/StatsCodec;-><init>(ILjava/lang/String;)V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getPacketsReceived()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v53
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getPacketsLost()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v54
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getFractionLost()F
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v55
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getAudioLevel()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
int-to-float v3, v3
|
|
|
|
|
|
|
|
const/high16 v7, 0x47000000 # 32768.0f
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
div-float v56, v3, v7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getSpeaking()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-lez v3, :cond_9
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v57, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_a
|
|
|
|
|
|
|
|
:cond_9
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v57, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_a
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getJitter()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v58
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getJitterBuffer()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v59
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getJitterBufferPreferred()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v60
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getDelayEstimate()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v61
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getDecodingCNG()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v62
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getDecodingMutedOutput()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v63
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getDecodingNormal()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v64
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getDecodingPLC()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v65
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getDecodingPLCCNG()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v66
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getOpSilence()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v67
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getOpNormal()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v68
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getOpMerge()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v69
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getOpExpand()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v70
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getOpAccelerate()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v71
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getOpPreemptiveExpand()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v72
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v10}, Lco/discord/media_engine/internal/InboundAudio;->getOpCNG()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v73
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz v6, :cond_a
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lco/discord/media_engine/internal/InboundPlayout;->getAudioJitterBuffer()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v74, v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_b
|
|
|
|
|
|
|
|
:cond_a
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v74, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_b
|
|
|
|
if-eqz v6, :cond_b
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lco/discord/media_engine/internal/InboundPlayout;->getAudioJitterDelay()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v75, v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_c
|
|
|
|
|
|
|
|
:cond_b
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v75, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_c
|
|
|
|
if-eqz v6, :cond_c
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lco/discord/media_engine/internal/InboundPlayout;->getAudioJitterTarget()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v76, v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_d
|
|
|
|
|
|
|
|
:cond_c
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v76, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_d
|
|
|
|
if-eqz v6, :cond_d
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lco/discord/media_engine/internal/InboundPlayout;->getAudioPlayoutUnderruns()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v77, v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_e
|
|
|
|
|
|
|
|
:cond_d
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v77, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_e
|
|
|
|
if-eqz v6, :cond_e
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lco/discord/media_engine/internal/InboundPlayout;->getRelativeReceptionDelay()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v78, v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_f
|
|
|
|
|
|
|
|
:cond_e
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v78, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_f
|
|
|
|
if-eqz v6, :cond_f
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lco/discord/media_engine/internal/InboundPlayout;->getRelativePlayoutDelay()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v79, v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_10
|
|
|
|
|
|
|
|
:cond_f
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v79, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_10
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v48, "audio"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v47, v11
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v50, v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-wide/from16 v51, v39
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct/range {v47 .. v79}, Lco/discord/media_engine/InboundRtpAudio;-><init>(Ljava/lang/String;ILco/discord/media_engine/StatsCodec;JIIFFZIIIIIIIIILjava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Lco/discord/media_engine/PlayoutMetric;Lco/discord/media_engine/PlayoutMetric;Lco/discord/media_engine/PlayoutMetric;Lco/discord/media_engine/PlayoutMetric;Lco/discord/media_engine/PlayoutMetric;Lco/discord/media_engine/PlayoutMetric;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-interface {v14, v9, v11}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lco/discord/media_engine/InboundRtpAudio;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v8}, Lco/discord/media_engine/internal/Inbound;->getVideo()Lco/discord/media_engine/internal/InboundVideo;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_11
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v8}, Lco/discord/media_engine/internal/Inbound;->getVideo()Lco/discord/media_engine/internal/InboundVideo;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
sget-object v3, Lco/discord/media_engine/internal/TransformStats;->INSTANCE:Lco/discord/media_engine/internal/TransformStats;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getRtpStats()Lco/discord/media_engine/internal/RtpStats;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-direct {v3, v6}, Lco/discord/media_engine/internal/TransformStats;->sumBytes(Lco/discord/media_engine/internal/RtpStats;)J
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-wide v51
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
add-long v39, v39, v51
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getCodecPayloadType()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
const/4 v6, -0x1
|
|
|
|
|
|
|
|
if-eq v3, v6, :cond_10
|
|
|
|
|
|
|
|
new-instance v3, Lco/discord/media_engine/StatsCodec;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getCodecPayloadType()I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getCodecName()Ljava/lang/String;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v3, v6, v8}, Lco/discord/media_engine/StatsCodec;-><init>(ILjava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v50, v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_11
|
|
|
|
|
|
|
|
:cond_10
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v50, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_11
|
|
|
|
new-instance v3, Lco/discord/media_engine/InboundRtpVideo;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v47, v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getSsrc()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v49
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
sget-object v6, Lco/discord/media_engine/internal/TransformStats;->INSTANCE:Lco/discord/media_engine/internal/TransformStats;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getRtpStats()Lco/discord/media_engine/internal/RtpStats;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v6, v8}, Lco/discord/media_engine/internal/TransformStats;->sumPackets(Lco/discord/media_engine/internal/RtpStats;)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v53
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getRtcpStats()Lco/discord/media_engine/internal/RtcpStats;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lco/discord/media_engine/internal/RtcpStats;->getPacketsLost()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v54
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getRtcpStats()Lco/discord/media_engine/internal/RtcpStats;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lco/discord/media_engine/internal/RtcpStats;->getFractionLost()F
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v55
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getTotalBitrate()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v56
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getDecode()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v57
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v6, Lco/discord/media_engine/Resolution;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v58, v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getWidth()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getHeight()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v6, v8, v10}, Lco/discord/media_engine/Resolution;-><init>(II)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getDecoderImplementationName()Ljava/lang/String;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v59
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getFramesDecoded()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v60
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getDiscardedPackets()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v61
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getFrameCounts()Lco/discord/media_engine/internal/FrameCounts;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lco/discord/media_engine/internal/FrameCounts;->getDeltaFrames()I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getFrameCounts()Lco/discord/media_engine/internal/FrameCounts;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v8}, Lco/discord/media_engine/internal/FrameCounts;->getKeyFrames()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
add-int v62, v8, v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getDecodeFrameRate()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v63
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getNetworkFrameRate()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v64
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getRenderFrameRate()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v65
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getRtcpStats()Lco/discord/media_engine/internal/RtcpStats;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lco/discord/media_engine/internal/RtcpStats;->getFirPackets()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v66
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getRtcpStats()Lco/discord/media_engine/internal/RtcpStats;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lco/discord/media_engine/internal/RtcpStats;->getNackPackets()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v67
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getRtcpStats()Lco/discord/media_engine/internal/RtcpStats;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lco/discord/media_engine/internal/RtcpStats;->getPliPackets()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v68
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/internal/InboundVideo;->getQpSum()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v69
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const-string v48, "video"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct/range {v47 .. v69}, Lco/discord/media_engine/InboundRtpVideo;-><init>(Ljava/lang/String;ILco/discord/media_engine/StatsCodec;JIIFIILco/discord/media_engine/Resolution;Ljava/lang/String;IIIIIIIIII)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-interface {v15, v9, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lco/discord/media_engine/InboundRtpVideo;
|
|
|
|
|
|
|
|
:cond_11
|
2020-07-08 16:44:49 +00:00
|
|
|
add-int/lit8 v5, v5, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/high16 v3, 0x47000000 # 32768.0f
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
goto/16 :goto_8
|
|
|
|
|
|
|
|
:cond_12
|
2020-07-08 16:44:49 +00:00
|
|
|
move-wide/from16 v43, v39
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_12
|
|
|
|
|
|
|
|
:cond_13
|
2020-07-08 16:44:49 +00:00
|
|
|
const-wide/16 v43, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_12
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/internal/NativeStats;->getTransport()Lco/discord/media_engine/internal/Transport;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_14
|
|
|
|
|
|
|
|
new-instance v1, Lco/discord/media_engine/Transport;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/internal/Transport;->getSendBandwidth()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v42
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/internal/Transport;->getRtt()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v47
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/internal/Transport;->getDecryptionFailures()I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v48
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/internal/Transport;->getLocalAddress()Ljava/lang/String;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v49
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v41, v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct/range {v41 .. v49}, Lco/discord/media_engine/Transport;-><init>(IJJILjava/lang/Integer;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object v11, v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_13
|
|
|
|
|
|
|
|
:cond_14
|
|
|
|
new-instance v0, Lco/discord/media_engine/Transport;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v42, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v47, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v48
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v49, ""
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v41, v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct/range {v41 .. v49}, Lco/discord/media_engine/Transport;-><init>(IJJILjava/lang/Integer;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object v11, v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_13
|
|
|
|
new-instance v0, Lco/discord/media_engine/Stats;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object v10, v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct/range {v10 .. v15}, Lco/discord/media_engine/Stats;-><init>(Lco/discord/media_engine/Transport;Lco/discord/media_engine/OutboundRtpAudio;Lco/discord/media_engine/OutboundRtpVideo;Ljava/util/Map;Ljava/util/Map;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_15
|
|
|
|
const-string v0, "stats"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {v0}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final transformPlayoutStats(Lco/discord/media_engine/internal/InboundPlayout;)Lco/discord/media_engine/internal/InboundPlayout;
|
|
|
|
.locals 11
|
|
|
|
|
|
|
|
new-instance v10, Lco/discord/media_engine/internal/InboundPlayout;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/InboundPlayout;->getAudioJitterBuffer()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lco/discord/media_engine/internal/TransformStats;->convertPlayoutMetricToMs(Lco/discord/media_engine/PlayoutMetric;)Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/InboundPlayout;->getAudioJitterDelay()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lco/discord/media_engine/internal/TransformStats;->convertPlayoutMetricToMs(Lco/discord/media_engine/PlayoutMetric;)Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/InboundPlayout;->getAudioJitterTarget()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lco/discord/media_engine/internal/TransformStats;->convertPlayoutMetricToMs(Lco/discord/media_engine/PlayoutMetric;)Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/InboundPlayout;->getAudioPlayoutUnderruns()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lco/discord/media_engine/internal/TransformStats;->convertPlayoutMetricToMs(Lco/discord/media_engine/PlayoutMetric;)Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/InboundPlayout;->getVideoJitterBuffer()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lco/discord/media_engine/internal/TransformStats;->convertPlayoutMetricToMs(Lco/discord/media_engine/PlayoutMetric;)Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/InboundPlayout;->getVideoJitterDelay()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lco/discord/media_engine/internal/TransformStats;->convertPlayoutMetricToMs(Lco/discord/media_engine/PlayoutMetric;)Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/InboundPlayout;->getVideoJitterTarget()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lco/discord/media_engine/internal/TransformStats;->convertPlayoutMetricToMs(Lco/discord/media_engine/PlayoutMetric;)Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/InboundPlayout;->getRelativeReceptionDelay()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lco/discord/media_engine/internal/TransformStats;->convertPlayoutMetricToMs(Lco/discord/media_engine/PlayoutMetric;)Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/internal/InboundPlayout;->getRelativePlayoutDelay()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lco/discord/media_engine/internal/TransformStats;->convertPlayoutMetricToMs(Lco/discord/media_engine/PlayoutMetric;)Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
move-object v0, v10
|
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v9}, Lco/discord/media_engine/internal/InboundPlayout;-><init>(Lco/discord/media_engine/PlayoutMetric;Lco/discord/media_engine/PlayoutMetric;Lco/discord/media_engine/PlayoutMetric;Lco/discord/media_engine/PlayoutMetric;Lco/discord/media_engine/PlayoutMetric;Lco/discord/media_engine/PlayoutMetric;Lco/discord/media_engine/PlayoutMetric;Lco/discord/media_engine/PlayoutMetric;Lco/discord/media_engine/PlayoutMetric;)V
|
|
|
|
|
|
|
|
return-object v10
|
|
|
|
.end method
|