458 lines
18 KiB
Java
458 lines
18 KiB
Java
package co.discord.media_engine.internal;
|
|
|
|
import a0.a.a.a;
|
|
import a0.a.a.b;
|
|
import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure;
|
|
import d0.z.d.m;
|
|
/* compiled from: NativeStatistics.kt */
|
|
/* loaded from: classes.dex */
|
|
public final class InboundVideo {
|
|
private final String codecName;
|
|
private final int codecPayloadType;
|
|
private final int currentDelay;
|
|
private final int currentPayloadType;
|
|
private final int decode;
|
|
private final int decodeFrameRate;
|
|
private final String decoderImplementationName;
|
|
private final FrameCounts frameCounts;
|
|
private final long framesDecoded;
|
|
private final int framesDropped;
|
|
private final long framesRendered;
|
|
private final long freezeCount;
|
|
private final int height;
|
|
private final int jitterBuffer;
|
|
private final int maxDecode;
|
|
private final int minPlayoutDelay;
|
|
private final int networkFrameRate;
|
|
private final long pauseCount;
|
|
private final long qpSum;
|
|
private final int renderDelay;
|
|
private final int renderFrameRate;
|
|
private final InboundRtcpStats rtcpStats;
|
|
private final InboundRtpStats rtpStats;
|
|
private final long ssrc;
|
|
private final double sumOfSquaredFramesDurations;
|
|
private final float syncOffset;
|
|
private final float targetDelay;
|
|
private final int totalBitrate;
|
|
private final long totalFramesDuration;
|
|
private final long totalFreezesDuration;
|
|
private final long totalPausesDuration;
|
|
private final int width;
|
|
|
|
public InboundVideo(String str, int i, int i2, int i3, int i4, int i5, String str2, FrameCounts frameCounts, long j, long j2, int i6, int i7, int i8, int i9, int i10, int i11, long j3, int i12, int i13, InboundRtcpStats inboundRtcpStats, InboundRtpStats inboundRtpStats, long j4, float f, float f2, int i14, int i15, long j5, long j6, long j7, long j8, long j9, double d) {
|
|
m.checkNotNullParameter(str, "codecName");
|
|
m.checkNotNullParameter(str2, "decoderImplementationName");
|
|
m.checkNotNullParameter(frameCounts, "frameCounts");
|
|
m.checkNotNullParameter(inboundRtcpStats, "rtcpStats");
|
|
m.checkNotNullParameter(inboundRtpStats, "rtpStats");
|
|
this.codecName = str;
|
|
this.codecPayloadType = i;
|
|
this.currentDelay = i2;
|
|
this.currentPayloadType = i3;
|
|
this.decodeFrameRate = i4;
|
|
this.decode = i5;
|
|
this.decoderImplementationName = str2;
|
|
this.frameCounts = frameCounts;
|
|
this.framesDecoded = j;
|
|
this.framesRendered = j2;
|
|
this.framesDropped = i6;
|
|
this.height = i7;
|
|
this.jitterBuffer = i8;
|
|
this.maxDecode = i9;
|
|
this.minPlayoutDelay = i10;
|
|
this.networkFrameRate = i11;
|
|
this.qpSum = j3;
|
|
this.renderDelay = i12;
|
|
this.renderFrameRate = i13;
|
|
this.rtcpStats = inboundRtcpStats;
|
|
this.rtpStats = inboundRtpStats;
|
|
this.ssrc = j4;
|
|
this.syncOffset = f;
|
|
this.targetDelay = f2;
|
|
this.totalBitrate = i14;
|
|
this.width = i15;
|
|
this.freezeCount = j5;
|
|
this.pauseCount = j6;
|
|
this.totalFreezesDuration = j7;
|
|
this.totalPausesDuration = j8;
|
|
this.totalFramesDuration = j9;
|
|
this.sumOfSquaredFramesDurations = d;
|
|
}
|
|
|
|
public static /* synthetic */ InboundVideo copy$default(InboundVideo inboundVideo, String str, int i, int i2, int i3, int i4, int i5, String str2, FrameCounts frameCounts, long j, long j2, int i6, int i7, int i8, int i9, int i10, int i11, long j3, int i12, int i13, InboundRtcpStats inboundRtcpStats, InboundRtpStats inboundRtpStats, long j4, float f, float f2, int i14, int i15, long j5, long j6, long j7, long j8, long j9, double d, int i16, Object obj) {
|
|
return inboundVideo.copy((i16 & 1) != 0 ? inboundVideo.codecName : str, (i16 & 2) != 0 ? inboundVideo.codecPayloadType : i, (i16 & 4) != 0 ? inboundVideo.currentDelay : i2, (i16 & 8) != 0 ? inboundVideo.currentPayloadType : i3, (i16 & 16) != 0 ? inboundVideo.decodeFrameRate : i4, (i16 & 32) != 0 ? inboundVideo.decode : i5, (i16 & 64) != 0 ? inboundVideo.decoderImplementationName : str2, (i16 & 128) != 0 ? inboundVideo.frameCounts : frameCounts, (i16 & 256) != 0 ? inboundVideo.framesDecoded : j, (i16 & 512) != 0 ? inboundVideo.framesRendered : j2, (i16 & 1024) != 0 ? inboundVideo.framesDropped : i6, (i16 & 2048) != 0 ? inboundVideo.height : i7, (i16 & 4096) != 0 ? inboundVideo.jitterBuffer : i8, (i16 & 8192) != 0 ? inboundVideo.maxDecode : i9, (i16 & 16384) != 0 ? inboundVideo.minPlayoutDelay : i10, (i16 & 32768) != 0 ? inboundVideo.networkFrameRate : i11, (i16 & 65536) != 0 ? inboundVideo.qpSum : j3, (i16 & 131072) != 0 ? inboundVideo.renderDelay : i12, (262144 & i16) != 0 ? inboundVideo.renderFrameRate : i13, (i16 & 524288) != 0 ? inboundVideo.rtcpStats : inboundRtcpStats, (i16 & 1048576) != 0 ? inboundVideo.rtpStats : inboundRtpStats, (i16 & 2097152) != 0 ? inboundVideo.ssrc : j4, (i16 & 4194304) != 0 ? inboundVideo.syncOffset : f, (8388608 & i16) != 0 ? inboundVideo.targetDelay : f2, (i16 & 16777216) != 0 ? inboundVideo.totalBitrate : i14, (i16 & 33554432) != 0 ? inboundVideo.width : i15, (i16 & 67108864) != 0 ? inboundVideo.freezeCount : j5, (i16 & 134217728) != 0 ? inboundVideo.pauseCount : j6, (i16 & 268435456) != 0 ? inboundVideo.totalFreezesDuration : j7, (i16 & 536870912) != 0 ? inboundVideo.totalPausesDuration : j8, (i16 & BasicMeasure.EXACTLY) != 0 ? inboundVideo.totalFramesDuration : j9, (i16 & Integer.MIN_VALUE) != 0 ? inboundVideo.sumOfSquaredFramesDurations : d);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.codecName;
|
|
}
|
|
|
|
public final long component10() {
|
|
return this.framesRendered;
|
|
}
|
|
|
|
public final int component11() {
|
|
return this.framesDropped;
|
|
}
|
|
|
|
public final int component12() {
|
|
return this.height;
|
|
}
|
|
|
|
public final int component13() {
|
|
return this.jitterBuffer;
|
|
}
|
|
|
|
public final int component14() {
|
|
return this.maxDecode;
|
|
}
|
|
|
|
public final int component15() {
|
|
return this.minPlayoutDelay;
|
|
}
|
|
|
|
public final int component16() {
|
|
return this.networkFrameRate;
|
|
}
|
|
|
|
public final long component17() {
|
|
return this.qpSum;
|
|
}
|
|
|
|
public final int component18() {
|
|
return this.renderDelay;
|
|
}
|
|
|
|
public final int component19() {
|
|
return this.renderFrameRate;
|
|
}
|
|
|
|
public final int component2() {
|
|
return this.codecPayloadType;
|
|
}
|
|
|
|
public final InboundRtcpStats component20() {
|
|
return this.rtcpStats;
|
|
}
|
|
|
|
public final InboundRtpStats component21() {
|
|
return this.rtpStats;
|
|
}
|
|
|
|
public final long component22() {
|
|
return this.ssrc;
|
|
}
|
|
|
|
public final float component23() {
|
|
return this.syncOffset;
|
|
}
|
|
|
|
public final float component24() {
|
|
return this.targetDelay;
|
|
}
|
|
|
|
public final int component25() {
|
|
return this.totalBitrate;
|
|
}
|
|
|
|
public final int component26() {
|
|
return this.width;
|
|
}
|
|
|
|
public final long component27() {
|
|
return this.freezeCount;
|
|
}
|
|
|
|
public final long component28() {
|
|
return this.pauseCount;
|
|
}
|
|
|
|
public final long component29() {
|
|
return this.totalFreezesDuration;
|
|
}
|
|
|
|
public final int component3() {
|
|
return this.currentDelay;
|
|
}
|
|
|
|
public final long component30() {
|
|
return this.totalPausesDuration;
|
|
}
|
|
|
|
public final long component31() {
|
|
return this.totalFramesDuration;
|
|
}
|
|
|
|
public final double component32() {
|
|
return this.sumOfSquaredFramesDurations;
|
|
}
|
|
|
|
public final int component4() {
|
|
return this.currentPayloadType;
|
|
}
|
|
|
|
public final int component5() {
|
|
return this.decodeFrameRate;
|
|
}
|
|
|
|
public final int component6() {
|
|
return this.decode;
|
|
}
|
|
|
|
public final String component7() {
|
|
return this.decoderImplementationName;
|
|
}
|
|
|
|
public final FrameCounts component8() {
|
|
return this.frameCounts;
|
|
}
|
|
|
|
public final long component9() {
|
|
return this.framesDecoded;
|
|
}
|
|
|
|
public final InboundVideo copy(String str, int i, int i2, int i3, int i4, int i5, String str2, FrameCounts frameCounts, long j, long j2, int i6, int i7, int i8, int i9, int i10, int i11, long j3, int i12, int i13, InboundRtcpStats inboundRtcpStats, InboundRtpStats inboundRtpStats, long j4, float f, float f2, int i14, int i15, long j5, long j6, long j7, long j8, long j9, double d) {
|
|
m.checkNotNullParameter(str, "codecName");
|
|
m.checkNotNullParameter(str2, "decoderImplementationName");
|
|
m.checkNotNullParameter(frameCounts, "frameCounts");
|
|
m.checkNotNullParameter(inboundRtcpStats, "rtcpStats");
|
|
m.checkNotNullParameter(inboundRtpStats, "rtpStats");
|
|
return new InboundVideo(str, i, i2, i3, i4, i5, str2, frameCounts, j, j2, i6, i7, i8, i9, i10, i11, j3, i12, i13, inboundRtcpStats, inboundRtpStats, j4, f, f2, i14, i15, j5, j6, j7, j8, j9, d);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof InboundVideo)) {
|
|
return false;
|
|
}
|
|
InboundVideo inboundVideo = (InboundVideo) obj;
|
|
return m.areEqual(this.codecName, inboundVideo.codecName) && this.codecPayloadType == inboundVideo.codecPayloadType && this.currentDelay == inboundVideo.currentDelay && this.currentPayloadType == inboundVideo.currentPayloadType && this.decodeFrameRate == inboundVideo.decodeFrameRate && this.decode == inboundVideo.decode && m.areEqual(this.decoderImplementationName, inboundVideo.decoderImplementationName) && m.areEqual(this.frameCounts, inboundVideo.frameCounts) && this.framesDecoded == inboundVideo.framesDecoded && this.framesRendered == inboundVideo.framesRendered && this.framesDropped == inboundVideo.framesDropped && this.height == inboundVideo.height && this.jitterBuffer == inboundVideo.jitterBuffer && this.maxDecode == inboundVideo.maxDecode && this.minPlayoutDelay == inboundVideo.minPlayoutDelay && this.networkFrameRate == inboundVideo.networkFrameRate && this.qpSum == inboundVideo.qpSum && this.renderDelay == inboundVideo.renderDelay && this.renderFrameRate == inboundVideo.renderFrameRate && m.areEqual(this.rtcpStats, inboundVideo.rtcpStats) && m.areEqual(this.rtpStats, inboundVideo.rtpStats) && this.ssrc == inboundVideo.ssrc && Float.compare(this.syncOffset, inboundVideo.syncOffset) == 0 && Float.compare(this.targetDelay, inboundVideo.targetDelay) == 0 && this.totalBitrate == inboundVideo.totalBitrate && this.width == inboundVideo.width && this.freezeCount == inboundVideo.freezeCount && this.pauseCount == inboundVideo.pauseCount && this.totalFreezesDuration == inboundVideo.totalFreezesDuration && this.totalPausesDuration == inboundVideo.totalPausesDuration && this.totalFramesDuration == inboundVideo.totalFramesDuration && Double.compare(this.sumOfSquaredFramesDurations, inboundVideo.sumOfSquaredFramesDurations) == 0;
|
|
}
|
|
|
|
public final String getCodecName() {
|
|
return this.codecName;
|
|
}
|
|
|
|
public final int getCodecPayloadType() {
|
|
return this.codecPayloadType;
|
|
}
|
|
|
|
public final int getCurrentDelay() {
|
|
return this.currentDelay;
|
|
}
|
|
|
|
public final int getCurrentPayloadType() {
|
|
return this.currentPayloadType;
|
|
}
|
|
|
|
public final int getDecode() {
|
|
return this.decode;
|
|
}
|
|
|
|
public final int getDecodeFrameRate() {
|
|
return this.decodeFrameRate;
|
|
}
|
|
|
|
public final String getDecoderImplementationName() {
|
|
return this.decoderImplementationName;
|
|
}
|
|
|
|
public final FrameCounts getFrameCounts() {
|
|
return this.frameCounts;
|
|
}
|
|
|
|
public final long getFramesDecoded() {
|
|
return this.framesDecoded;
|
|
}
|
|
|
|
public final int getFramesDropped() {
|
|
return this.framesDropped;
|
|
}
|
|
|
|
public final long getFramesRendered() {
|
|
return this.framesRendered;
|
|
}
|
|
|
|
public final long getFreezeCount() {
|
|
return this.freezeCount;
|
|
}
|
|
|
|
public final int getHeight() {
|
|
return this.height;
|
|
}
|
|
|
|
public final int getJitterBuffer() {
|
|
return this.jitterBuffer;
|
|
}
|
|
|
|
public final int getMaxDecode() {
|
|
return this.maxDecode;
|
|
}
|
|
|
|
public final int getMinPlayoutDelay() {
|
|
return this.minPlayoutDelay;
|
|
}
|
|
|
|
public final int getNetworkFrameRate() {
|
|
return this.networkFrameRate;
|
|
}
|
|
|
|
public final long getPauseCount() {
|
|
return this.pauseCount;
|
|
}
|
|
|
|
public final long getQpSum() {
|
|
return this.qpSum;
|
|
}
|
|
|
|
public final int getRenderDelay() {
|
|
return this.renderDelay;
|
|
}
|
|
|
|
public final int getRenderFrameRate() {
|
|
return this.renderFrameRate;
|
|
}
|
|
|
|
public final InboundRtcpStats getRtcpStats() {
|
|
return this.rtcpStats;
|
|
}
|
|
|
|
public final InboundRtpStats getRtpStats() {
|
|
return this.rtpStats;
|
|
}
|
|
|
|
public final long getSsrc() {
|
|
return this.ssrc;
|
|
}
|
|
|
|
public final double getSumOfSquaredFramesDurations() {
|
|
return this.sumOfSquaredFramesDurations;
|
|
}
|
|
|
|
public final float getSyncOffset() {
|
|
return this.syncOffset;
|
|
}
|
|
|
|
public final float getTargetDelay() {
|
|
return this.targetDelay;
|
|
}
|
|
|
|
public final int getTotalBitrate() {
|
|
return this.totalBitrate;
|
|
}
|
|
|
|
public final long getTotalFramesDuration() {
|
|
return this.totalFramesDuration;
|
|
}
|
|
|
|
public final long getTotalFreezesDuration() {
|
|
return this.totalFreezesDuration;
|
|
}
|
|
|
|
public final long getTotalPausesDuration() {
|
|
return this.totalPausesDuration;
|
|
}
|
|
|
|
public final int getWidth() {
|
|
return this.width;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.codecName;
|
|
int i = 0;
|
|
int hashCode = (((((((((((str != null ? str.hashCode() : 0) * 31) + this.codecPayloadType) * 31) + this.currentDelay) * 31) + this.currentPayloadType) * 31) + this.decodeFrameRate) * 31) + this.decode) * 31;
|
|
String str2 = this.decoderImplementationName;
|
|
int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
|
|
FrameCounts frameCounts = this.frameCounts;
|
|
int hashCode3 = frameCounts != null ? frameCounts.hashCode() : 0;
|
|
int a = b.a(this.framesDecoded);
|
|
int a2 = (((((b.a(this.qpSum) + ((((((((((((((b.a(this.framesRendered) + ((a + ((hashCode2 + hashCode3) * 31)) * 31)) * 31) + this.framesDropped) * 31) + this.height) * 31) + this.jitterBuffer) * 31) + this.maxDecode) * 31) + this.minPlayoutDelay) * 31) + this.networkFrameRate) * 31)) * 31) + this.renderDelay) * 31) + this.renderFrameRate) * 31;
|
|
InboundRtcpStats inboundRtcpStats = this.rtcpStats;
|
|
int hashCode4 = (a2 + (inboundRtcpStats != null ? inboundRtcpStats.hashCode() : 0)) * 31;
|
|
InboundRtpStats inboundRtpStats = this.rtpStats;
|
|
if (inboundRtpStats != null) {
|
|
i = inboundRtpStats.hashCode();
|
|
}
|
|
int a3 = b.a(this.ssrc);
|
|
int floatToIntBits = Float.floatToIntBits(this.syncOffset);
|
|
int floatToIntBits2 = Float.floatToIntBits(this.targetDelay);
|
|
int a4 = b.a(this.freezeCount);
|
|
int a5 = b.a(this.pauseCount);
|
|
int a6 = b.a(this.totalFreezesDuration);
|
|
int a7 = b.a(this.totalPausesDuration);
|
|
return a.a(this.sumOfSquaredFramesDurations) + ((b.a(this.totalFramesDuration) + ((a7 + ((a6 + ((a5 + ((a4 + ((((((floatToIntBits2 + ((floatToIntBits + ((a3 + ((hashCode4 + i) * 31)) * 31)) * 31)) * 31) + this.totalBitrate) * 31) + this.width) * 31)) * 31)) * 31)) * 31)) * 31)) * 31);
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = b.d.b.a.a.R("InboundVideo(codecName=");
|
|
R.append(this.codecName);
|
|
R.append(", codecPayloadType=");
|
|
R.append(this.codecPayloadType);
|
|
R.append(", currentDelay=");
|
|
R.append(this.currentDelay);
|
|
R.append(", currentPayloadType=");
|
|
R.append(this.currentPayloadType);
|
|
R.append(", decodeFrameRate=");
|
|
R.append(this.decodeFrameRate);
|
|
R.append(", decode=");
|
|
R.append(this.decode);
|
|
R.append(", decoderImplementationName=");
|
|
R.append(this.decoderImplementationName);
|
|
R.append(", frameCounts=");
|
|
R.append(this.frameCounts);
|
|
R.append(", framesDecoded=");
|
|
R.append(this.framesDecoded);
|
|
R.append(", framesRendered=");
|
|
R.append(this.framesRendered);
|
|
R.append(", framesDropped=");
|
|
R.append(this.framesDropped);
|
|
R.append(", height=");
|
|
R.append(this.height);
|
|
R.append(", jitterBuffer=");
|
|
R.append(this.jitterBuffer);
|
|
R.append(", maxDecode=");
|
|
R.append(this.maxDecode);
|
|
R.append(", minPlayoutDelay=");
|
|
R.append(this.minPlayoutDelay);
|
|
R.append(", networkFrameRate=");
|
|
R.append(this.networkFrameRate);
|
|
R.append(", qpSum=");
|
|
R.append(this.qpSum);
|
|
R.append(", renderDelay=");
|
|
R.append(this.renderDelay);
|
|
R.append(", renderFrameRate=");
|
|
R.append(this.renderFrameRate);
|
|
R.append(", rtcpStats=");
|
|
R.append(this.rtcpStats);
|
|
R.append(", rtpStats=");
|
|
R.append(this.rtpStats);
|
|
R.append(", ssrc=");
|
|
R.append(this.ssrc);
|
|
R.append(", syncOffset=");
|
|
R.append(this.syncOffset);
|
|
R.append(", targetDelay=");
|
|
R.append(this.targetDelay);
|
|
R.append(", totalBitrate=");
|
|
R.append(this.totalBitrate);
|
|
R.append(", width=");
|
|
R.append(this.width);
|
|
R.append(", freezeCount=");
|
|
R.append(this.freezeCount);
|
|
R.append(", pauseCount=");
|
|
R.append(this.pauseCount);
|
|
R.append(", totalFreezesDuration=");
|
|
R.append(this.totalFreezesDuration);
|
|
R.append(", totalPausesDuration=");
|
|
R.append(this.totalPausesDuration);
|
|
R.append(", totalFramesDuration=");
|
|
R.append(this.totalFramesDuration);
|
|
R.append(", sumOfSquaredFramesDurations=");
|
|
R.append(this.sumOfSquaredFramesDurations);
|
|
R.append(")");
|
|
return R.toString();
|
|
}
|
|
}
|