discord-jadx/app/src/main/java/co/discord/media_engine/OutboundRtpVideo.java

349 lines
13 KiB
Java

package co.discord.media_engine;
import a0.a.a.b;
import c.d.b.a.a;
import d0.z.d.m;
/* compiled from: Statistics.kt */
public final class OutboundRtpVideo {
private final int averageEncodeTime;
private final boolean bandwidthLimitedResolution;
private final int bitrate;
private final int bitrateTarget;
private final long bytesSent;
private final StatsCodec codec;
private final boolean cpuLimitedResolution;
private final int encodeUsage;
private final String encoderImplementationName;
private final long firCount;
private final float fractionLost;
private final int frameRateEncode;
private final int frameRateInput;
private final long framesEncoded;
private final long framesSent;
private final long nackCount;
private final int packetsLost;
private final long packetsSent;
private final long pliCount;
private final long qpSum;
private final Resolution resolution;
private final long ssrc;
private final String type;
public OutboundRtpVideo(String str, long j, StatsCodec statsCodec, long j2, long j3, int i, float f, int i2, int i3, int i4, String str2, int i5, Resolution resolution, long j4, long j5, int i6, int i7, long j6, long j7, long j8, long j9, boolean z2, boolean z3) {
m.checkNotNullParameter(str, "type");
m.checkNotNullParameter(statsCodec, "codec");
m.checkNotNullParameter(str2, "encoderImplementationName");
m.checkNotNullParameter(resolution, "resolution");
this.type = str;
this.ssrc = j;
this.codec = statsCodec;
this.bytesSent = j2;
this.packetsSent = j3;
this.packetsLost = i;
this.fractionLost = f;
this.bitrate = i2;
this.bitrateTarget = i3;
this.encodeUsage = i4;
this.encoderImplementationName = str2;
this.averageEncodeTime = i5;
this.resolution = resolution;
this.framesSent = j4;
this.framesEncoded = j5;
this.frameRateInput = i6;
this.frameRateEncode = i7;
this.firCount = j6;
this.nackCount = j7;
this.pliCount = j8;
this.qpSum = j9;
this.bandwidthLimitedResolution = z2;
this.cpuLimitedResolution = z3;
}
public static /* synthetic */ OutboundRtpVideo copy$default(OutboundRtpVideo outboundRtpVideo, String str, long j, StatsCodec statsCodec, long j2, long j3, int i, float f, int i2, int i3, int i4, String str2, int i5, Resolution resolution, long j4, long j5, int i6, int i7, long j6, long j7, long j8, long j9, boolean z2, boolean z3, int i8, Object obj) {
return outboundRtpVideo.copy((i8 & 1) != 0 ? outboundRtpVideo.type : str, (i8 & 2) != 0 ? outboundRtpVideo.ssrc : j, (i8 & 4) != 0 ? outboundRtpVideo.codec : statsCodec, (i8 & 8) != 0 ? outboundRtpVideo.bytesSent : j2, (i8 & 16) != 0 ? outboundRtpVideo.packetsSent : j3, (i8 & 32) != 0 ? outboundRtpVideo.packetsLost : i, (i8 & 64) != 0 ? outboundRtpVideo.fractionLost : f, (i8 & 128) != 0 ? outboundRtpVideo.bitrate : i2, (i8 & 256) != 0 ? outboundRtpVideo.bitrateTarget : i3, (i8 & 512) != 0 ? outboundRtpVideo.encodeUsage : i4, (i8 & 1024) != 0 ? outboundRtpVideo.encoderImplementationName : str2, (i8 & 2048) != 0 ? outboundRtpVideo.averageEncodeTime : i5, (i8 & 4096) != 0 ? outboundRtpVideo.resolution : resolution, (i8 & 8192) != 0 ? outboundRtpVideo.framesSent : j4, (i8 & 16384) != 0 ? outboundRtpVideo.framesEncoded : j5, (i8 & 32768) != 0 ? outboundRtpVideo.frameRateInput : i6, (65536 & i8) != 0 ? outboundRtpVideo.frameRateEncode : i7, (i8 & 131072) != 0 ? outboundRtpVideo.firCount : j6, (i8 & 262144) != 0 ? outboundRtpVideo.nackCount : j7, (i8 & 524288) != 0 ? outboundRtpVideo.pliCount : j8, (i8 & 1048576) != 0 ? outboundRtpVideo.qpSum : j9, (i8 & 2097152) != 0 ? outboundRtpVideo.bandwidthLimitedResolution : z2, (i8 & 4194304) != 0 ? outboundRtpVideo.cpuLimitedResolution : z3);
}
public final String component1() {
return this.type;
}
public final int component10() {
return this.encodeUsage;
}
public final String component11() {
return this.encoderImplementationName;
}
public final int component12() {
return this.averageEncodeTime;
}
public final Resolution component13() {
return this.resolution;
}
public final long component14() {
return this.framesSent;
}
public final long component15() {
return this.framesEncoded;
}
public final int component16() {
return this.frameRateInput;
}
public final int component17() {
return this.frameRateEncode;
}
public final long component18() {
return this.firCount;
}
public final long component19() {
return this.nackCount;
}
public final long component2() {
return this.ssrc;
}
public final long component20() {
return this.pliCount;
}
public final long component21() {
return this.qpSum;
}
public final boolean component22() {
return this.bandwidthLimitedResolution;
}
public final boolean component23() {
return this.cpuLimitedResolution;
}
public final StatsCodec component3() {
return this.codec;
}
public final long component4() {
return this.bytesSent;
}
public final long component5() {
return this.packetsSent;
}
public final int component6() {
return this.packetsLost;
}
public final float component7() {
return this.fractionLost;
}
public final int component8() {
return this.bitrate;
}
public final int component9() {
return this.bitrateTarget;
}
public final OutboundRtpVideo copy(String str, long j, StatsCodec statsCodec, long j2, long j3, int i, float f, int i2, int i3, int i4, String str2, int i5, Resolution resolution, long j4, long j5, int i6, int i7, long j6, long j7, long j8, long j9, boolean z2, boolean z3) {
m.checkNotNullParameter(str, "type");
m.checkNotNullParameter(statsCodec, "codec");
m.checkNotNullParameter(str2, "encoderImplementationName");
m.checkNotNullParameter(resolution, "resolution");
return new OutboundRtpVideo(str, j, statsCodec, j2, j3, i, f, i2, i3, i4, str2, i5, resolution, j4, j5, i6, i7, j6, j7, j8, j9, z2, z3);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof OutboundRtpVideo)) {
return false;
}
OutboundRtpVideo outboundRtpVideo = (OutboundRtpVideo) obj;
return m.areEqual(this.type, outboundRtpVideo.type) && this.ssrc == outboundRtpVideo.ssrc && m.areEqual(this.codec, outboundRtpVideo.codec) && this.bytesSent == outboundRtpVideo.bytesSent && this.packetsSent == outboundRtpVideo.packetsSent && this.packetsLost == outboundRtpVideo.packetsLost && Float.compare(this.fractionLost, outboundRtpVideo.fractionLost) == 0 && this.bitrate == outboundRtpVideo.bitrate && this.bitrateTarget == outboundRtpVideo.bitrateTarget && this.encodeUsage == outboundRtpVideo.encodeUsage && m.areEqual(this.encoderImplementationName, outboundRtpVideo.encoderImplementationName) && this.averageEncodeTime == outboundRtpVideo.averageEncodeTime && m.areEqual(this.resolution, outboundRtpVideo.resolution) && this.framesSent == outboundRtpVideo.framesSent && this.framesEncoded == outboundRtpVideo.framesEncoded && this.frameRateInput == outboundRtpVideo.frameRateInput && this.frameRateEncode == outboundRtpVideo.frameRateEncode && this.firCount == outboundRtpVideo.firCount && this.nackCount == outboundRtpVideo.nackCount && this.pliCount == outboundRtpVideo.pliCount && this.qpSum == outboundRtpVideo.qpSum && this.bandwidthLimitedResolution == outboundRtpVideo.bandwidthLimitedResolution && this.cpuLimitedResolution == outboundRtpVideo.cpuLimitedResolution;
}
public final int getAverageEncodeTime() {
return this.averageEncodeTime;
}
public final boolean getBandwidthLimitedResolution() {
return this.bandwidthLimitedResolution;
}
public final int getBitrate() {
return this.bitrate;
}
public final int getBitrateTarget() {
return this.bitrateTarget;
}
public final long getBytesSent() {
return this.bytesSent;
}
public final StatsCodec getCodec() {
return this.codec;
}
public final boolean getCpuLimitedResolution() {
return this.cpuLimitedResolution;
}
public final int getEncodeUsage() {
return this.encodeUsage;
}
public final String getEncoderImplementationName() {
return this.encoderImplementationName;
}
public final long getFirCount() {
return this.firCount;
}
public final float getFractionLost() {
return this.fractionLost;
}
public final int getFrameRateEncode() {
return this.frameRateEncode;
}
public final int getFrameRateInput() {
return this.frameRateInput;
}
public final long getFramesEncoded() {
return this.framesEncoded;
}
public final long getFramesSent() {
return this.framesSent;
}
public final long getNackCount() {
return this.nackCount;
}
public final int getPacketsLost() {
return this.packetsLost;
}
public final long getPacketsSent() {
return this.packetsSent;
}
public final long getPliCount() {
return this.pliCount;
}
public final long getQpSum() {
return this.qpSum;
}
public final Resolution getResolution() {
return this.resolution;
}
public final long getSsrc() {
return this.ssrc;
}
public final String getType() {
return this.type;
}
public int hashCode() {
String str = this.type;
int i = 0;
int a = (b.a(this.ssrc) + ((str != null ? str.hashCode() : 0) * 31)) * 31;
StatsCodec statsCodec = this.codec;
int floatToIntBits = (((((((Float.floatToIntBits(this.fractionLost) + ((((b.a(this.packetsSent) + ((b.a(this.bytesSent) + ((a + (statsCodec != null ? statsCodec.hashCode() : 0)) * 31)) * 31)) * 31) + this.packetsLost) * 31)) * 31) + this.bitrate) * 31) + this.bitrateTarget) * 31) + this.encodeUsage) * 31;
String str2 = this.encoderImplementationName;
int hashCode = (((floatToIntBits + (str2 != null ? str2.hashCode() : 0)) * 31) + this.averageEncodeTime) * 31;
Resolution resolution = this.resolution;
if (resolution != null) {
i = resolution.hashCode();
}
int a2 = b.a(this.framesSent);
int a3 = b.a(this.framesEncoded);
int a4 = (b.a(this.qpSum) + ((b.a(this.pliCount) + ((b.a(this.nackCount) + ((b.a(this.firCount) + ((((((a3 + ((a2 + ((hashCode + i) * 31)) * 31)) * 31) + this.frameRateInput) * 31) + this.frameRateEncode) * 31)) * 31)) * 31)) * 31)) * 31;
boolean z2 = this.bandwidthLimitedResolution;
int i2 = 1;
if (z2) {
z2 = true;
}
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int i5 = z2 ? 1 : 0;
int i6 = (a4 + i3) * 31;
boolean z3 = this.cpuLimitedResolution;
if (!z3) {
i2 = z3 ? 1 : 0;
}
return i6 + i2;
}
public String toString() {
StringBuilder K = a.K("OutboundRtpVideo(type=");
K.append(this.type);
K.append(", ssrc=");
K.append(this.ssrc);
K.append(", codec=");
K.append(this.codec);
K.append(", bytesSent=");
K.append(this.bytesSent);
K.append(", packetsSent=");
K.append(this.packetsSent);
K.append(", packetsLost=");
K.append(this.packetsLost);
K.append(", fractionLost=");
K.append(this.fractionLost);
K.append(", bitrate=");
K.append(this.bitrate);
K.append(", bitrateTarget=");
K.append(this.bitrateTarget);
K.append(", encodeUsage=");
K.append(this.encodeUsage);
K.append(", encoderImplementationName=");
K.append(this.encoderImplementationName);
K.append(", averageEncodeTime=");
K.append(this.averageEncodeTime);
K.append(", resolution=");
K.append(this.resolution);
K.append(", framesSent=");
K.append(this.framesSent);
K.append(", framesEncoded=");
K.append(this.framesEncoded);
K.append(", frameRateInput=");
K.append(this.frameRateInput);
K.append(", frameRateEncode=");
K.append(this.frameRateEncode);
K.append(", firCount=");
K.append(this.firCount);
K.append(", nackCount=");
K.append(this.nackCount);
K.append(", pliCount=");
K.append(this.pliCount);
K.append(", qpSum=");
K.append(this.qpSum);
K.append(", bandwidthLimitedResolution=");
K.append(this.bandwidthLimitedResolution);
K.append(", cpuLimitedResolution=");
return a.F(K, this.cpuLimitedResolution, ")");
}
}