mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
47 lines
1.9 KiB
Java
47 lines
1.9 KiB
Java
package androidx.media3.exoplayer.trackselection;
|
|
|
|
import androidx.media3.common.Tracks;
|
|
import androidx.media3.common.util.Util;
|
|
import androidx.media3.exoplayer.RendererConfiguration;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class TrackSelectorResult {
|
|
public final Object info;
|
|
public final int length;
|
|
public final RendererConfiguration[] rendererConfigurations;
|
|
public final ExoTrackSelection[] selections;
|
|
public final Tracks tracks;
|
|
|
|
@Deprecated
|
|
public TrackSelectorResult(RendererConfiguration[] rendererConfigurationArr, ExoTrackSelection[] exoTrackSelectionArr, Object obj) {
|
|
this(rendererConfigurationArr, exoTrackSelectionArr, Tracks.EMPTY, obj);
|
|
}
|
|
|
|
public TrackSelectorResult(RendererConfiguration[] rendererConfigurationArr, ExoTrackSelection[] exoTrackSelectionArr, Tracks tracks, Object obj) {
|
|
this.rendererConfigurations = rendererConfigurationArr;
|
|
this.selections = (ExoTrackSelection[]) exoTrackSelectionArr.clone();
|
|
this.tracks = tracks;
|
|
this.info = obj;
|
|
this.length = rendererConfigurationArr.length;
|
|
}
|
|
|
|
public boolean isRendererEnabled(int i) {
|
|
return this.rendererConfigurations[i] != null;
|
|
}
|
|
|
|
public boolean isEquivalent(TrackSelectorResult trackSelectorResult) {
|
|
if (trackSelectorResult == null || trackSelectorResult.selections.length != this.selections.length) {
|
|
return false;
|
|
}
|
|
for (int i = 0; i < this.selections.length; i++) {
|
|
if (!isEquivalent(trackSelectorResult, i)) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public boolean isEquivalent(TrackSelectorResult trackSelectorResult, int i) {
|
|
return trackSelectorResult != null && Util.areEqual(this.rendererConfigurations[i], trackSelectorResult.rendererConfigurations[i]) && Util.areEqual(this.selections[i], trackSelectorResult.selections[i]);
|
|
}
|
|
}
|