discord-jadx/app/src/main/java/co/discord/media_engine/internal/Substream.java

211 lines
7.0 KiB
Java

package co.discord.media_engine.internal;
import c.d.b.a.a;
import d0.z.d.m;
/* compiled from: NativeStatistics.kt */
public final class Substream {
private final float avgDelay;
private final FrameCounts frameCounts;
private final int height;
private final boolean isFlexFEC;
private final boolean isRTX;
private final float maxDelay;
private final float retransmitBitrate;
private final RtcpStats rtcpStats;
private final RtpStats rtpStats;
private final int ssrc;
private final int totalBitrate;
private final int width;
public Substream(float f, FrameCounts frameCounts, int i, boolean z2, boolean z3, float f2, float f3, RtcpStats rtcpStats, RtpStats rtpStats, int i2, int i3, int i4) {
m.checkNotNullParameter(frameCounts, "frameCounts");
m.checkNotNullParameter(rtcpStats, "rtcpStats");
m.checkNotNullParameter(rtpStats, "rtpStats");
this.avgDelay = f;
this.frameCounts = frameCounts;
this.height = i;
this.isFlexFEC = z2;
this.isRTX = z3;
this.maxDelay = f2;
this.retransmitBitrate = f3;
this.rtcpStats = rtcpStats;
this.rtpStats = rtpStats;
this.ssrc = i2;
this.totalBitrate = i3;
this.width = i4;
}
public static /* synthetic */ Substream copy$default(Substream substream, float f, FrameCounts frameCounts, int i, boolean z2, boolean z3, float f2, float f3, RtcpStats rtcpStats, RtpStats rtpStats, int i2, int i3, int i4, int i5, Object obj) {
return substream.copy((i5 & 1) != 0 ? substream.avgDelay : f, (i5 & 2) != 0 ? substream.frameCounts : frameCounts, (i5 & 4) != 0 ? substream.height : i, (i5 & 8) != 0 ? substream.isFlexFEC : z2, (i5 & 16) != 0 ? substream.isRTX : z3, (i5 & 32) != 0 ? substream.maxDelay : f2, (i5 & 64) != 0 ? substream.retransmitBitrate : f3, (i5 & 128) != 0 ? substream.rtcpStats : rtcpStats, (i5 & 256) != 0 ? substream.rtpStats : rtpStats, (i5 & 512) != 0 ? substream.ssrc : i2, (i5 & 1024) != 0 ? substream.totalBitrate : i3, (i5 & 2048) != 0 ? substream.width : i4);
}
public final float component1() {
return this.avgDelay;
}
public final int 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 float component6() {
return this.maxDelay;
}
public final float component7() {
return this.retransmitBitrate;
}
public final RtcpStats component8() {
return this.rtcpStats;
}
public final RtpStats component9() {
return this.rtpStats;
}
public final Substream copy(float f, FrameCounts frameCounts, int i, boolean z2, boolean z3, float f2, float f3, RtcpStats rtcpStats, RtpStats rtpStats, int i2, int i3, int i4) {
m.checkNotNullParameter(frameCounts, "frameCounts");
m.checkNotNullParameter(rtcpStats, "rtcpStats");
m.checkNotNullParameter(rtpStats, "rtpStats");
return new Substream(f, frameCounts, i, z2, z3, f2, f3, rtcpStats, rtpStats, i2, i3, i4);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Substream)) {
return false;
}
Substream substream = (Substream) obj;
return Float.compare(this.avgDelay, substream.avgDelay) == 0 && m.areEqual(this.frameCounts, substream.frameCounts) && this.height == substream.height && this.isFlexFEC == substream.isFlexFEC && this.isRTX == substream.isRTX && Float.compare(this.maxDelay, substream.maxDelay) == 0 && Float.compare(this.retransmitBitrate, substream.retransmitBitrate) == 0 && 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 float getAvgDelay() {
return this.avgDelay;
}
public final FrameCounts getFrameCounts() {
return this.frameCounts;
}
public final int getHeight() {
return this.height;
}
public final float getMaxDelay() {
return this.maxDelay;
}
public final float getRetransmitBitrate() {
return this.retransmitBitrate;
}
public final RtcpStats getRtcpStats() {
return this.rtcpStats;
}
public final RtpStats getRtpStats() {
return this.rtpStats;
}
public final int getSsrc() {
return this.ssrc;
}
public final int getTotalBitrate() {
return this.totalBitrate;
}
public final int getWidth() {
return this.width;
}
public int hashCode() {
int floatToIntBits = Float.floatToIntBits(this.avgDelay) * 31;
FrameCounts frameCounts = this.frameCounts;
int i = 0;
int hashCode = (((floatToIntBits + (frameCounts != null ? frameCounts.hashCode() : 0)) * 31) + this.height) * 31;
boolean z2 = this.isFlexFEC;
int i2 = 1;
if (z2) {
z2 = true;
}
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int i5 = z2 ? 1 : 0;
int i6 = (hashCode + i3) * 31;
boolean z3 = this.isRTX;
if (!z3) {
i2 = z3 ? 1 : 0;
}
int b = a.b(this.retransmitBitrate, a.b(this.maxDelay, (i6 + i2) * 31, 31), 31);
RtcpStats rtcpStats = this.rtcpStats;
int hashCode2 = (b + (rtcpStats != null ? rtcpStats.hashCode() : 0)) * 31;
RtpStats rtpStats = this.rtpStats;
if (rtpStats != null) {
i = rtpStats.hashCode();
}
return ((((((hashCode2 + i) * 31) + this.ssrc) * 31) + this.totalBitrate) * 31) + this.width;
}
public final boolean isFlexFEC() {
return this.isFlexFEC;
}
public final boolean isRTX() {
return this.isRTX;
}
public String toString() {
StringBuilder L = a.L("Substream(avgDelay=");
L.append(this.avgDelay);
L.append(", frameCounts=");
L.append(this.frameCounts);
L.append(", height=");
L.append(this.height);
L.append(", isFlexFEC=");
L.append(this.isFlexFEC);
L.append(", isRTX=");
L.append(this.isRTX);
L.append(", maxDelay=");
L.append(this.maxDelay);
L.append(", retransmitBitrate=");
L.append(this.retransmitBitrate);
L.append(", rtcpStats=");
L.append(this.rtcpStats);
L.append(", rtpStats=");
L.append(this.rtpStats);
L.append(", ssrc=");
L.append(this.ssrc);
L.append(", totalBitrate=");
L.append(this.totalBitrate);
L.append(", width=");
return a.z(L, this.width, ")");
}
}