291 lines
11 KiB
Java
291 lines
11 KiB
Java
package co.discord.media_engine.internal;
|
|
|
|
import c.d.b.a.a;
|
|
import d0.z.d.m;
|
|
import java.util.Arrays;
|
|
/* compiled from: NativeStatistics.kt */
|
|
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 int framesEncoded;
|
|
private final int inputFrameRate;
|
|
private final int mediaBitrate;
|
|
private final int numberOfCPUAdaptChanges;
|
|
private final int numberOfQualityAdaptChanges;
|
|
private final int preferredMediaBitrate;
|
|
private final int 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, int i5, int i6, int i7, int i8, int i9, int i10, int i11, Substream[] substreamArr, boolean z4, int i12) {
|
|
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 = i5;
|
|
this.inputFrameRate = i6;
|
|
this.mediaBitrate = i7;
|
|
this.numberOfCPUAdaptChanges = i8;
|
|
this.numberOfQualityAdaptChanges = i9;
|
|
this.preferredMediaBitrate = i10;
|
|
this.qpSum = i11;
|
|
this.substreams = substreamArr;
|
|
this.suspended = z4;
|
|
this.targetMediaBitrate = i12;
|
|
}
|
|
|
|
public static /* synthetic */ OutboundVideo copy$default(OutboundVideo outboundVideo, String str, int i, int i2, boolean z2, boolean z3, int i3, int i4, String str2, int i5, int i6, int i7, int i8, int i9, int i10, int i11, Substream[] substreamArr, boolean z4, int i12, int i13, Object obj) {
|
|
return outboundVideo.copy((i13 & 1) != 0 ? outboundVideo.codecName : str, (i13 & 2) != 0 ? outboundVideo.codecPayloadType : i, (i13 & 4) != 0 ? outboundVideo.avgEncodeTime : i2, (i13 & 8) != 0 ? outboundVideo.bwLimitedResolution : z2, (i13 & 16) != 0 ? outboundVideo.cpuLimitedResolution : z3, (i13 & 32) != 0 ? outboundVideo.encodeFrameRate : i3, (i13 & 64) != 0 ? outboundVideo.encodeUsage : i4, (i13 & 128) != 0 ? outboundVideo.encoderImplementationName : str2, (i13 & 256) != 0 ? outboundVideo.framesEncoded : i5, (i13 & 512) != 0 ? outboundVideo.inputFrameRate : i6, (i13 & 1024) != 0 ? outboundVideo.mediaBitrate : i7, (i13 & 2048) != 0 ? outboundVideo.numberOfCPUAdaptChanges : i8, (i13 & 4096) != 0 ? outboundVideo.numberOfQualityAdaptChanges : i9, (i13 & 8192) != 0 ? outboundVideo.preferredMediaBitrate : i10, (i13 & 16384) != 0 ? outboundVideo.qpSum : i11, (i13 & 32768) != 0 ? outboundVideo.substreams : substreamArr, (i13 & 65536) != 0 ? outboundVideo.suspended : z4, (i13 & 131072) != 0 ? outboundVideo.targetMediaBitrate : i12);
|
|
}
|
|
|
|
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 int component14() {
|
|
return this.preferredMediaBitrate;
|
|
}
|
|
|
|
public final int component15() {
|
|
return this.qpSum;
|
|
}
|
|
|
|
public final Substream[] component16() {
|
|
return this.substreams;
|
|
}
|
|
|
|
public final boolean component17() {
|
|
return this.suspended;
|
|
}
|
|
|
|
public final int component18() {
|
|
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 int component9() {
|
|
return this.framesEncoded;
|
|
}
|
|
|
|
public final OutboundVideo copy(String str, int i, int i2, boolean z2, boolean z3, int i3, int i4, String str2, int i5, int i6, int i7, int i8, int i9, int i10, int i11, Substream[] substreamArr, boolean z4, int i12) {
|
|
m.checkNotNullParameter(str, "codecName");
|
|
m.checkNotNullParameter(str2, "encoderImplementationName");
|
|
m.checkNotNullParameter(substreamArr, "substreams");
|
|
return new OutboundVideo(str, i, i2, z2, z3, i3, i4, str2, i5, i6, i7, i8, i9, i10, i11, substreamArr, z4, i12);
|
|
}
|
|
|
|
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.preferredMediaBitrate == outboundVideo.preferredMediaBitrate && 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 int 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 int getPreferredMediaBitrate() {
|
|
return this.preferredMediaBitrate;
|
|
}
|
|
|
|
public final int 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 = (((((((((((((((i10 + (str2 != null ? str2.hashCode() : 0)) * 31) + this.framesEncoded) * 31) + this.inputFrameRate) * 31) + this.mediaBitrate) * 31) + this.numberOfCPUAdaptChanges) * 31) + this.numberOfQualityAdaptChanges) * 31) + this.preferredMediaBitrate) * 31) + this.qpSum) * 31;
|
|
Substream[] substreamArr = this.substreams;
|
|
if (substreamArr != null) {
|
|
i = Arrays.hashCode(substreamArr);
|
|
}
|
|
int i11 = (hashCode2 + i) * 31;
|
|
boolean z4 = this.suspended;
|
|
if (!z4) {
|
|
i2 = z4 ? 1 : 0;
|
|
}
|
|
return ((i11 + i2) * 31) + this.targetMediaBitrate;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("OutboundVideo(codecName=");
|
|
L.append(this.codecName);
|
|
L.append(", codecPayloadType=");
|
|
L.append(this.codecPayloadType);
|
|
L.append(", avgEncodeTime=");
|
|
L.append(this.avgEncodeTime);
|
|
L.append(", bwLimitedResolution=");
|
|
L.append(this.bwLimitedResolution);
|
|
L.append(", cpuLimitedResolution=");
|
|
L.append(this.cpuLimitedResolution);
|
|
L.append(", encodeFrameRate=");
|
|
L.append(this.encodeFrameRate);
|
|
L.append(", encodeUsage=");
|
|
L.append(this.encodeUsage);
|
|
L.append(", encoderImplementationName=");
|
|
L.append(this.encoderImplementationName);
|
|
L.append(", framesEncoded=");
|
|
L.append(this.framesEncoded);
|
|
L.append(", inputFrameRate=");
|
|
L.append(this.inputFrameRate);
|
|
L.append(", mediaBitrate=");
|
|
L.append(this.mediaBitrate);
|
|
L.append(", numberOfCPUAdaptChanges=");
|
|
L.append(this.numberOfCPUAdaptChanges);
|
|
L.append(", numberOfQualityAdaptChanges=");
|
|
L.append(this.numberOfQualityAdaptChanges);
|
|
L.append(", preferredMediaBitrate=");
|
|
L.append(this.preferredMediaBitrate);
|
|
L.append(", qpSum=");
|
|
L.append(this.qpSum);
|
|
L.append(", substreams=");
|
|
L.append(Arrays.toString(this.substreams));
|
|
L.append(", suspended=");
|
|
L.append(this.suspended);
|
|
L.append(", targetMediaBitrate=");
|
|
return a.z(L, this.targetMediaBitrate, ")");
|
|
}
|
|
}
|