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

347 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 int firCount;
private final float fractionLost;
private final int frameRateEncode;
private final int frameRateInput;
private final int framesEncoded;
private final int framesSent;
private final int nackCount;
private final int packetsLost;
private final int packetsSent;
private final int pliCount;
private final int qpSum;
private final Resolution resolution;
private final int ssrc;
private final String type;
public OutboundRtpVideo(String str, int i, StatsCodec statsCodec, long j, int i2, int i3, float f, int i4, int i5, int i6, String str2, int i7, Resolution resolution, int i8, int i9, int i10, int i11, int i12, int i13, int i14, int i15, 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 = i;
this.codec = statsCodec;
this.bytesSent = j;
this.packetsSent = i2;
this.packetsLost = i3;
this.fractionLost = f;
this.bitrate = i4;
this.bitrateTarget = i5;
this.encodeUsage = i6;
this.encoderImplementationName = str2;
this.averageEncodeTime = i7;
this.resolution = resolution;
this.framesSent = i8;
this.framesEncoded = i9;
this.frameRateInput = i10;
this.frameRateEncode = i11;
this.firCount = i12;
this.nackCount = i13;
this.pliCount = i14;
this.qpSum = i15;
this.bandwidthLimitedResolution = z2;
this.cpuLimitedResolution = z3;
}
public static /* synthetic */ OutboundRtpVideo copy$default(OutboundRtpVideo outboundRtpVideo, String str, int i, StatsCodec statsCodec, long j, int i2, int i3, float f, int i4, int i5, int i6, String str2, int i7, Resolution resolution, int i8, int i9, int i10, int i11, int i12, int i13, int i14, int i15, boolean z2, boolean z3, int i16, Object obj) {
return outboundRtpVideo.copy((i16 & 1) != 0 ? outboundRtpVideo.type : str, (i16 & 2) != 0 ? outboundRtpVideo.ssrc : i, (i16 & 4) != 0 ? outboundRtpVideo.codec : statsCodec, (i16 & 8) != 0 ? outboundRtpVideo.bytesSent : j, (i16 & 16) != 0 ? outboundRtpVideo.packetsSent : i2, (i16 & 32) != 0 ? outboundRtpVideo.packetsLost : i3, (i16 & 64) != 0 ? outboundRtpVideo.fractionLost : f, (i16 & 128) != 0 ? outboundRtpVideo.bitrate : i4, (i16 & 256) != 0 ? outboundRtpVideo.bitrateTarget : i5, (i16 & 512) != 0 ? outboundRtpVideo.encodeUsage : i6, (i16 & 1024) != 0 ? outboundRtpVideo.encoderImplementationName : str2, (i16 & 2048) != 0 ? outboundRtpVideo.averageEncodeTime : i7, (i16 & 4096) != 0 ? outboundRtpVideo.resolution : resolution, (i16 & 8192) != 0 ? outboundRtpVideo.framesSent : i8, (i16 & 16384) != 0 ? outboundRtpVideo.framesEncoded : i9, (i16 & 32768) != 0 ? outboundRtpVideo.frameRateInput : i10, (i16 & 65536) != 0 ? outboundRtpVideo.frameRateEncode : i11, (i16 & 131072) != 0 ? outboundRtpVideo.firCount : i12, (i16 & 262144) != 0 ? outboundRtpVideo.nackCount : i13, (i16 & 524288) != 0 ? outboundRtpVideo.pliCount : i14, (i16 & 1048576) != 0 ? outboundRtpVideo.qpSum : i15, (i16 & 2097152) != 0 ? outboundRtpVideo.bandwidthLimitedResolution : z2, (i16 & 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 int component14() {
return this.framesSent;
}
public final int component15() {
return this.framesEncoded;
}
public final int component16() {
return this.frameRateInput;
}
public final int component17() {
return this.frameRateEncode;
}
public final int component18() {
return this.firCount;
}
public final int component19() {
return this.nackCount;
}
public final int component2() {
return this.ssrc;
}
public final int component20() {
return this.pliCount;
}
public final int 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 int 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, int i, StatsCodec statsCodec, long j, int i2, int i3, float f, int i4, int i5, int i6, String str2, int i7, Resolution resolution, int i8, int i9, int i10, int i11, int i12, int i13, int i14, int i15, boolean z2, boolean z3) {
m.checkNotNullParameter(str, "type");
m.checkNotNullParameter(statsCodec, "codec");
m.checkNotNullParameter(str2, "encoderImplementationName");
m.checkNotNullParameter(resolution, "resolution");
return new OutboundRtpVideo(str, i, statsCodec, j, i2, i3, f, i4, i5, i6, str2, i7, resolution, i8, i9, i10, i11, i12, i13, i14, i15, 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 int 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 int getFramesEncoded() {
return this.framesEncoded;
}
public final int getFramesSent() {
return this.framesSent;
}
public final int getNackCount() {
return this.nackCount;
}
public final int getPacketsLost() {
return this.packetsLost;
}
public final int getPacketsSent() {
return this.packetsSent;
}
public final int getPliCount() {
return this.pliCount;
}
public final int getQpSum() {
return this.qpSum;
}
public final Resolution getResolution() {
return this.resolution;
}
public final int getSsrc() {
return this.ssrc;
}
public final String getType() {
return this.type;
}
public int hashCode() {
String str = this.type;
int i = 0;
int hashCode = (((str != null ? str.hashCode() : 0) * 31) + this.ssrc) * 31;
StatsCodec statsCodec = this.codec;
int b = (((((a.b(this.fractionLost, (((((b.a(this.bytesSent) + ((hashCode + (statsCodec != null ? statsCodec.hashCode() : 0)) * 31)) * 31) + this.packetsSent) * 31) + this.packetsLost) * 31, 31) + this.bitrate) * 31) + this.bitrateTarget) * 31) + this.encodeUsage) * 31;
String str2 = this.encoderImplementationName;
int hashCode2 = (((b + (str2 != null ? str2.hashCode() : 0)) * 31) + this.averageEncodeTime) * 31;
Resolution resolution = this.resolution;
if (resolution != null) {
i = resolution.hashCode();
}
int i2 = (((((((((((((((((hashCode2 + i) * 31) + this.framesSent) * 31) + this.framesEncoded) * 31) + this.frameRateInput) * 31) + this.frameRateEncode) * 31) + this.firCount) * 31) + this.nackCount) * 31) + this.pliCount) * 31) + this.qpSum) * 31;
boolean z2 = this.bandwidthLimitedResolution;
int i3 = 1;
if (z2) {
z2 = true;
}
int i4 = z2 ? 1 : 0;
int i5 = z2 ? 1 : 0;
int i6 = z2 ? 1 : 0;
int i7 = (i2 + i4) * 31;
boolean z3 = this.cpuLimitedResolution;
if (!z3) {
i3 = z3 ? 1 : 0;
}
return i7 + i3;
}
public String toString() {
StringBuilder L = a.L("OutboundRtpVideo(type=");
L.append(this.type);
L.append(", ssrc=");
L.append(this.ssrc);
L.append(", codec=");
L.append(this.codec);
L.append(", bytesSent=");
L.append(this.bytesSent);
L.append(", packetsSent=");
L.append(this.packetsSent);
L.append(", packetsLost=");
L.append(this.packetsLost);
L.append(", fractionLost=");
L.append(this.fractionLost);
L.append(", bitrate=");
L.append(this.bitrate);
L.append(", bitrateTarget=");
L.append(this.bitrateTarget);
L.append(", encodeUsage=");
L.append(this.encodeUsage);
L.append(", encoderImplementationName=");
L.append(this.encoderImplementationName);
L.append(", averageEncodeTime=");
L.append(this.averageEncodeTime);
L.append(", resolution=");
L.append(this.resolution);
L.append(", framesSent=");
L.append(this.framesSent);
L.append(", framesEncoded=");
L.append(this.framesEncoded);
L.append(", frameRateInput=");
L.append(this.frameRateInput);
L.append(", frameRateEncode=");
L.append(this.frameRateEncode);
L.append(", firCount=");
L.append(this.firCount);
L.append(", nackCount=");
L.append(this.nackCount);
L.append(", pliCount=");
L.append(this.pliCount);
L.append(", qpSum=");
L.append(this.qpSum);
L.append(", bandwidthLimitedResolution=");
L.append(this.bandwidthLimitedResolution);
L.append(", cpuLimitedResolution=");
return a.G(L, this.cpuLimitedResolution, ")");
}
}