282 lines
11 KiB
Java
282 lines
11 KiB
Java
package co.discord.media_engine.internal;
|
|
|
|
import a0.a.a.b;
|
|
import b.d.b.a.a;
|
|
import d0.z.d.m;
|
|
import java.util.Arrays;
|
|
/* compiled from: NativeStatistics.kt */
|
|
/* loaded from: classes.dex */
|
|
public final class OutboundVideo {
|
|
private final int avgEncodeTime;
|
|
private final boolean bwLimitedResolution;
|
|
private final String codecName;
|
|
private final int codecPayloadType;
|
|
private final boolean cpuLimitedResolution;
|
|
private final int encodeFrameRate;
|
|
private final int encodeUsage;
|
|
private final String encoderImplementationName;
|
|
private final long framesEncoded;
|
|
private final int inputFrameRate;
|
|
private final int mediaBitrate;
|
|
private final int numberOfCPUAdaptChanges;
|
|
private final int numberOfQualityAdaptChanges;
|
|
private final long qpSum;
|
|
private final Substream[] substreams;
|
|
private final boolean suspended;
|
|
private final int targetMediaBitrate;
|
|
|
|
public OutboundVideo(String str, int i, int i2, boolean z2, boolean z3, int i3, int i4, String str2, long j, int i5, int i6, int i7, int i8, long j2, Substream[] substreamArr, boolean z4, int i9) {
|
|
m.checkNotNullParameter(str, "codecName");
|
|
m.checkNotNullParameter(str2, "encoderImplementationName");
|
|
m.checkNotNullParameter(substreamArr, "substreams");
|
|
this.codecName = str;
|
|
this.codecPayloadType = i;
|
|
this.avgEncodeTime = i2;
|
|
this.bwLimitedResolution = z2;
|
|
this.cpuLimitedResolution = z3;
|
|
this.encodeFrameRate = i3;
|
|
this.encodeUsage = i4;
|
|
this.encoderImplementationName = str2;
|
|
this.framesEncoded = j;
|
|
this.inputFrameRate = i5;
|
|
this.mediaBitrate = i6;
|
|
this.numberOfCPUAdaptChanges = i7;
|
|
this.numberOfQualityAdaptChanges = i8;
|
|
this.qpSum = j2;
|
|
this.substreams = substreamArr;
|
|
this.suspended = z4;
|
|
this.targetMediaBitrate = i9;
|
|
}
|
|
|
|
public static /* synthetic */ OutboundVideo copy$default(OutboundVideo outboundVideo, String str, int i, int i2, boolean z2, boolean z3, int i3, int i4, String str2, long j, int i5, int i6, int i7, int i8, long j2, Substream[] substreamArr, boolean z4, int i9, int i10, Object obj) {
|
|
return outboundVideo.copy((i10 & 1) != 0 ? outboundVideo.codecName : str, (i10 & 2) != 0 ? outboundVideo.codecPayloadType : i, (i10 & 4) != 0 ? outboundVideo.avgEncodeTime : i2, (i10 & 8) != 0 ? outboundVideo.bwLimitedResolution : z2, (i10 & 16) != 0 ? outboundVideo.cpuLimitedResolution : z3, (i10 & 32) != 0 ? outboundVideo.encodeFrameRate : i3, (i10 & 64) != 0 ? outboundVideo.encodeUsage : i4, (i10 & 128) != 0 ? outboundVideo.encoderImplementationName : str2, (i10 & 256) != 0 ? outboundVideo.framesEncoded : j, (i10 & 512) != 0 ? outboundVideo.inputFrameRate : i5, (i10 & 1024) != 0 ? outboundVideo.mediaBitrate : i6, (i10 & 2048) != 0 ? outboundVideo.numberOfCPUAdaptChanges : i7, (i10 & 4096) != 0 ? outboundVideo.numberOfQualityAdaptChanges : i8, (i10 & 8192) != 0 ? outboundVideo.qpSum : j2, (i10 & 16384) != 0 ? outboundVideo.substreams : substreamArr, (32768 & i10) != 0 ? outboundVideo.suspended : z4, (i10 & 65536) != 0 ? outboundVideo.targetMediaBitrate : i9);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.codecName;
|
|
}
|
|
|
|
public final int component10() {
|
|
return this.inputFrameRate;
|
|
}
|
|
|
|
public final int component11() {
|
|
return this.mediaBitrate;
|
|
}
|
|
|
|
public final int component12() {
|
|
return this.numberOfCPUAdaptChanges;
|
|
}
|
|
|
|
public final int component13() {
|
|
return this.numberOfQualityAdaptChanges;
|
|
}
|
|
|
|
public final long component14() {
|
|
return this.qpSum;
|
|
}
|
|
|
|
public final Substream[] component15() {
|
|
return this.substreams;
|
|
}
|
|
|
|
public final boolean component16() {
|
|
return this.suspended;
|
|
}
|
|
|
|
public final int component17() {
|
|
return this.targetMediaBitrate;
|
|
}
|
|
|
|
public final int component2() {
|
|
return this.codecPayloadType;
|
|
}
|
|
|
|
public final int component3() {
|
|
return this.avgEncodeTime;
|
|
}
|
|
|
|
public final boolean component4() {
|
|
return this.bwLimitedResolution;
|
|
}
|
|
|
|
public final boolean component5() {
|
|
return this.cpuLimitedResolution;
|
|
}
|
|
|
|
public final int component6() {
|
|
return this.encodeFrameRate;
|
|
}
|
|
|
|
public final int component7() {
|
|
return this.encodeUsage;
|
|
}
|
|
|
|
public final String component8() {
|
|
return this.encoderImplementationName;
|
|
}
|
|
|
|
public final long component9() {
|
|
return this.framesEncoded;
|
|
}
|
|
|
|
public final OutboundVideo copy(String str, int i, int i2, boolean z2, boolean z3, int i3, int i4, String str2, long j, int i5, int i6, int i7, int i8, long j2, Substream[] substreamArr, boolean z4, int i9) {
|
|
m.checkNotNullParameter(str, "codecName");
|
|
m.checkNotNullParameter(str2, "encoderImplementationName");
|
|
m.checkNotNullParameter(substreamArr, "substreams");
|
|
return new OutboundVideo(str, i, i2, z2, z3, i3, i4, str2, j, i5, i6, i7, i8, j2, substreamArr, z4, i9);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof OutboundVideo)) {
|
|
return false;
|
|
}
|
|
OutboundVideo outboundVideo = (OutboundVideo) obj;
|
|
return m.areEqual(this.codecName, outboundVideo.codecName) && this.codecPayloadType == outboundVideo.codecPayloadType && this.avgEncodeTime == outboundVideo.avgEncodeTime && this.bwLimitedResolution == outboundVideo.bwLimitedResolution && this.cpuLimitedResolution == outboundVideo.cpuLimitedResolution && this.encodeFrameRate == outboundVideo.encodeFrameRate && this.encodeUsage == outboundVideo.encodeUsage && m.areEqual(this.encoderImplementationName, outboundVideo.encoderImplementationName) && this.framesEncoded == outboundVideo.framesEncoded && this.inputFrameRate == outboundVideo.inputFrameRate && this.mediaBitrate == outboundVideo.mediaBitrate && this.numberOfCPUAdaptChanges == outboundVideo.numberOfCPUAdaptChanges && this.numberOfQualityAdaptChanges == outboundVideo.numberOfQualityAdaptChanges && this.qpSum == outboundVideo.qpSum && m.areEqual(this.substreams, outboundVideo.substreams) && this.suspended == outboundVideo.suspended && this.targetMediaBitrate == outboundVideo.targetMediaBitrate;
|
|
}
|
|
|
|
public final int getAvgEncodeTime() {
|
|
return this.avgEncodeTime;
|
|
}
|
|
|
|
public final boolean getBwLimitedResolution() {
|
|
return this.bwLimitedResolution;
|
|
}
|
|
|
|
public final String getCodecName() {
|
|
return this.codecName;
|
|
}
|
|
|
|
public final int getCodecPayloadType() {
|
|
return this.codecPayloadType;
|
|
}
|
|
|
|
public final boolean getCpuLimitedResolution() {
|
|
return this.cpuLimitedResolution;
|
|
}
|
|
|
|
public final int getEncodeFrameRate() {
|
|
return this.encodeFrameRate;
|
|
}
|
|
|
|
public final int getEncodeUsage() {
|
|
return this.encodeUsage;
|
|
}
|
|
|
|
public final String getEncoderImplementationName() {
|
|
return this.encoderImplementationName;
|
|
}
|
|
|
|
public final long getFramesEncoded() {
|
|
return this.framesEncoded;
|
|
}
|
|
|
|
public final int getInputFrameRate() {
|
|
return this.inputFrameRate;
|
|
}
|
|
|
|
public final int getMediaBitrate() {
|
|
return this.mediaBitrate;
|
|
}
|
|
|
|
public final int getNumberOfCPUAdaptChanges() {
|
|
return this.numberOfCPUAdaptChanges;
|
|
}
|
|
|
|
public final int getNumberOfQualityAdaptChanges() {
|
|
return this.numberOfQualityAdaptChanges;
|
|
}
|
|
|
|
public final long getQpSum() {
|
|
return this.qpSum;
|
|
}
|
|
|
|
public final Substream[] getSubstreams() {
|
|
return this.substreams;
|
|
}
|
|
|
|
public final boolean getSuspended() {
|
|
return this.suspended;
|
|
}
|
|
|
|
public final int getTargetMediaBitrate() {
|
|
return this.targetMediaBitrate;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.codecName;
|
|
int i = 0;
|
|
int hashCode = (((((str != null ? str.hashCode() : 0) * 31) + this.codecPayloadType) * 31) + this.avgEncodeTime) * 31;
|
|
boolean z2 = this.bwLimitedResolution;
|
|
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.cpuLimitedResolution;
|
|
if (z3) {
|
|
z3 = true;
|
|
}
|
|
int i7 = z3 ? 1 : 0;
|
|
int i8 = z3 ? 1 : 0;
|
|
int i9 = z3 ? 1 : 0;
|
|
int i10 = (((((i6 + i7) * 31) + this.encodeFrameRate) * 31) + this.encodeUsage) * 31;
|
|
String str2 = this.encoderImplementationName;
|
|
int hashCode2 = str2 != null ? str2.hashCode() : 0;
|
|
int a = (b.a(this.qpSum) + ((((((((((b.a(this.framesEncoded) + ((i10 + hashCode2) * 31)) * 31) + this.inputFrameRate) * 31) + this.mediaBitrate) * 31) + this.numberOfCPUAdaptChanges) * 31) + this.numberOfQualityAdaptChanges) * 31)) * 31;
|
|
Substream[] substreamArr = this.substreams;
|
|
if (substreamArr != null) {
|
|
i = Arrays.hashCode(substreamArr);
|
|
}
|
|
int i11 = (a + i) * 31;
|
|
boolean z4 = this.suspended;
|
|
if (!z4) {
|
|
i2 = z4 ? 1 : 0;
|
|
}
|
|
return ((i11 + i2) * 31) + this.targetMediaBitrate;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("OutboundVideo(codecName=");
|
|
R.append(this.codecName);
|
|
R.append(", codecPayloadType=");
|
|
R.append(this.codecPayloadType);
|
|
R.append(", avgEncodeTime=");
|
|
R.append(this.avgEncodeTime);
|
|
R.append(", bwLimitedResolution=");
|
|
R.append(this.bwLimitedResolution);
|
|
R.append(", cpuLimitedResolution=");
|
|
R.append(this.cpuLimitedResolution);
|
|
R.append(", encodeFrameRate=");
|
|
R.append(this.encodeFrameRate);
|
|
R.append(", encodeUsage=");
|
|
R.append(this.encodeUsage);
|
|
R.append(", encoderImplementationName=");
|
|
R.append(this.encoderImplementationName);
|
|
R.append(", framesEncoded=");
|
|
R.append(this.framesEncoded);
|
|
R.append(", inputFrameRate=");
|
|
R.append(this.inputFrameRate);
|
|
R.append(", mediaBitrate=");
|
|
R.append(this.mediaBitrate);
|
|
R.append(", numberOfCPUAdaptChanges=");
|
|
R.append(this.numberOfCPUAdaptChanges);
|
|
R.append(", numberOfQualityAdaptChanges=");
|
|
R.append(this.numberOfQualityAdaptChanges);
|
|
R.append(", qpSum=");
|
|
R.append(this.qpSum);
|
|
R.append(", substreams=");
|
|
R.append(Arrays.toString(this.substreams));
|
|
R.append(", suspended=");
|
|
R.append(this.suspended);
|
|
R.append(", targetMediaBitrate=");
|
|
return a.A(R, this.targetMediaBitrate, ")");
|
|
}
|
|
}
|