2021-08-03 07:33:18 +00:00
|
|
|
package co.discord.media_engine.internal;
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
import a0.a.a.b;
|
2021-12-17 21:59:34 +00:00
|
|
|
import b.d.b.a.a;
|
2021-11-02 06:38:17 +00:00
|
|
|
import d0.z.d.m;
|
2021-08-03 07:33:18 +00:00
|
|
|
/* compiled from: NativeStatistics.kt */
|
2022-03-07 09:34:54 +00:00
|
|
|
/* loaded from: classes.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public final class Substream {
|
|
|
|
private final int avgDelay;
|
|
|
|
private final FrameCounts frameCounts;
|
|
|
|
private final int height;
|
|
|
|
private final boolean isFlexFEC;
|
|
|
|
private final boolean isRTX;
|
|
|
|
private final int maxDelay;
|
|
|
|
private final int retransmitBitrate;
|
|
|
|
private final RtcpStats rtcpStats;
|
|
|
|
private final RtpStats rtpStats;
|
|
|
|
private final long ssrc;
|
|
|
|
private final int totalBitrate;
|
|
|
|
private final int width;
|
|
|
|
|
|
|
|
public Substream(int i, FrameCounts frameCounts, int i2, boolean z2, boolean z3, int i3, int i4, RtcpStats rtcpStats, RtpStats rtpStats, long j, int i5, int i6) {
|
|
|
|
m.checkNotNullParameter(frameCounts, "frameCounts");
|
|
|
|
m.checkNotNullParameter(rtcpStats, "rtcpStats");
|
|
|
|
m.checkNotNullParameter(rtpStats, "rtpStats");
|
|
|
|
this.avgDelay = i;
|
|
|
|
this.frameCounts = frameCounts;
|
|
|
|
this.height = i2;
|
|
|
|
this.isFlexFEC = z2;
|
|
|
|
this.isRTX = z3;
|
|
|
|
this.maxDelay = i3;
|
|
|
|
this.retransmitBitrate = i4;
|
|
|
|
this.rtcpStats = rtcpStats;
|
|
|
|
this.rtpStats = rtpStats;
|
|
|
|
this.ssrc = j;
|
|
|
|
this.totalBitrate = i5;
|
|
|
|
this.width = i6;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static /* synthetic */ Substream copy$default(Substream substream, int i, FrameCounts frameCounts, int i2, boolean z2, boolean z3, int i3, int i4, RtcpStats rtcpStats, RtpStats rtpStats, long j, int i5, int i6, int i7, Object obj) {
|
|
|
|
return substream.copy((i7 & 1) != 0 ? substream.avgDelay : i, (i7 & 2) != 0 ? substream.frameCounts : frameCounts, (i7 & 4) != 0 ? substream.height : i2, (i7 & 8) != 0 ? substream.isFlexFEC : z2, (i7 & 16) != 0 ? substream.isRTX : z3, (i7 & 32) != 0 ? substream.maxDelay : i3, (i7 & 64) != 0 ? substream.retransmitBitrate : i4, (i7 & 128) != 0 ? substream.rtcpStats : rtcpStats, (i7 & 256) != 0 ? substream.rtpStats : rtpStats, (i7 & 512) != 0 ? substream.ssrc : j, (i7 & 1024) != 0 ? substream.totalBitrate : i5, (i7 & 2048) != 0 ? substream.width : i6);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int component1() {
|
|
|
|
return this.avgDelay;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final long component10() {
|
|
|
|
return this.ssrc;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int component11() {
|
|
|
|
return this.totalBitrate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int component12() {
|
|
|
|
return this.width;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final FrameCounts component2() {
|
|
|
|
return this.frameCounts;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int component3() {
|
|
|
|
return this.height;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final boolean component4() {
|
|
|
|
return this.isFlexFEC;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final boolean component5() {
|
|
|
|
return this.isRTX;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int component6() {
|
|
|
|
return this.maxDelay;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int component7() {
|
|
|
|
return this.retransmitBitrate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final RtcpStats component8() {
|
|
|
|
return this.rtcpStats;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final RtpStats component9() {
|
|
|
|
return this.rtpStats;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Substream copy(int i, FrameCounts frameCounts, int i2, boolean z2, boolean z3, int i3, int i4, RtcpStats rtcpStats, RtpStats rtpStats, long j, int i5, int i6) {
|
|
|
|
m.checkNotNullParameter(frameCounts, "frameCounts");
|
|
|
|
m.checkNotNullParameter(rtcpStats, "rtcpStats");
|
|
|
|
m.checkNotNullParameter(rtpStats, "rtpStats");
|
|
|
|
return new Substream(i, frameCounts, i2, z2, z3, i3, i4, rtcpStats, rtpStats, j, i5, i6);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean equals(Object obj) {
|
|
|
|
if (this == obj) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(obj instanceof Substream)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
Substream substream = (Substream) obj;
|
|
|
|
return this.avgDelay == substream.avgDelay && m.areEqual(this.frameCounts, substream.frameCounts) && this.height == substream.height && this.isFlexFEC == substream.isFlexFEC && this.isRTX == substream.isRTX && this.maxDelay == substream.maxDelay && this.retransmitBitrate == substream.retransmitBitrate && m.areEqual(this.rtcpStats, substream.rtcpStats) && m.areEqual(this.rtpStats, substream.rtpStats) && this.ssrc == substream.ssrc && this.totalBitrate == substream.totalBitrate && this.width == substream.width;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int getAvgDelay() {
|
|
|
|
return this.avgDelay;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final FrameCounts getFrameCounts() {
|
|
|
|
return this.frameCounts;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int getHeight() {
|
|
|
|
return this.height;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int getMaxDelay() {
|
|
|
|
return this.maxDelay;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int getRetransmitBitrate() {
|
|
|
|
return this.retransmitBitrate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final RtcpStats getRtcpStats() {
|
|
|
|
return this.rtcpStats;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final RtpStats getRtpStats() {
|
|
|
|
return this.rtpStats;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final long getSsrc() {
|
|
|
|
return this.ssrc;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int getTotalBitrate() {
|
|
|
|
return this.totalBitrate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int getWidth() {
|
|
|
|
return this.width;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int hashCode() {
|
|
|
|
int i = this.avgDelay * 31;
|
|
|
|
FrameCounts frameCounts = this.frameCounts;
|
|
|
|
int i2 = 0;
|
|
|
|
int hashCode = (((i + (frameCounts != null ? frameCounts.hashCode() : 0)) * 31) + this.height) * 31;
|
|
|
|
boolean z2 = this.isFlexFEC;
|
|
|
|
int i3 = 1;
|
|
|
|
if (z2) {
|
|
|
|
z2 = true;
|
|
|
|
}
|
|
|
|
int i4 = z2 ? 1 : 0;
|
|
|
|
int i5 = z2 ? 1 : 0;
|
|
|
|
int i6 = z2 ? 1 : 0;
|
|
|
|
int i7 = (hashCode + i4) * 31;
|
|
|
|
boolean z3 = this.isRTX;
|
|
|
|
if (!z3) {
|
|
|
|
i3 = z3 ? 1 : 0;
|
|
|
|
}
|
|
|
|
int i8 = (((((i7 + i3) * 31) + this.maxDelay) * 31) + this.retransmitBitrate) * 31;
|
|
|
|
RtcpStats rtcpStats = this.rtcpStats;
|
|
|
|
int hashCode2 = (i8 + (rtcpStats != null ? rtcpStats.hashCode() : 0)) * 31;
|
|
|
|
RtpStats rtpStats = this.rtpStats;
|
|
|
|
if (rtpStats != null) {
|
|
|
|
i2 = rtpStats.hashCode();
|
|
|
|
}
|
|
|
|
return ((((b.a(this.ssrc) + ((hashCode2 + i2) * 31)) * 31) + this.totalBitrate) * 31) + this.width;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final boolean isFlexFEC() {
|
|
|
|
return this.isFlexFEC;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final boolean isRTX() {
|
|
|
|
return this.isRTX;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
2022-03-21 18:52:30 +00:00
|
|
|
StringBuilder R = a.R("Substream(avgDelay=");
|
|
|
|
R.append(this.avgDelay);
|
|
|
|
R.append(", frameCounts=");
|
|
|
|
R.append(this.frameCounts);
|
|
|
|
R.append(", height=");
|
|
|
|
R.append(this.height);
|
|
|
|
R.append(", isFlexFEC=");
|
|
|
|
R.append(this.isFlexFEC);
|
|
|
|
R.append(", isRTX=");
|
|
|
|
R.append(this.isRTX);
|
|
|
|
R.append(", maxDelay=");
|
|
|
|
R.append(this.maxDelay);
|
|
|
|
R.append(", retransmitBitrate=");
|
|
|
|
R.append(this.retransmitBitrate);
|
|
|
|
R.append(", rtcpStats=");
|
|
|
|
R.append(this.rtcpStats);
|
|
|
|
R.append(", rtpStats=");
|
|
|
|
R.append(this.rtpStats);
|
|
|
|
R.append(", ssrc=");
|
|
|
|
R.append(this.ssrc);
|
|
|
|
R.append(", totalBitrate=");
|
|
|
|
R.append(this.totalBitrate);
|
|
|
|
R.append(", width=");
|
|
|
|
return a.A(R, this.width, ")");
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|