mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-04 03:28:54 +01:00
50 lines
1.8 KiB
Java
50 lines
1.8 KiB
Java
package androidx.camera.video;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.camera.core.SurfaceRequest;
|
|
import androidx.camera.core.impl.ConstantObservable;
|
|
import androidx.camera.core.impl.Observable;
|
|
import com.google.auto.value.AutoValue;
|
|
import java.util.Arrays;
|
|
import java.util.Collections;
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@AutoValue
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
/* loaded from: classes.dex */
|
|
public abstract class StreamInfo {
|
|
static final int STREAM_ID_ANY = 0;
|
|
static final int STREAM_ID_ERROR = -1;
|
|
static final StreamInfo STREAM_INFO_ANY_INACTIVE = of(0, StreamState.INACTIVE);
|
|
static final Set<Integer> NON_SURFACE_STREAM_ID = Collections.unmodifiableSet(new HashSet(Arrays.asList(0, -1)));
|
|
static final Observable<StreamInfo> ALWAYS_ACTIVE_OBSERVABLE = ConstantObservable.withValue(of(0, StreamState.ACTIVE));
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
public enum StreamState {
|
|
ACTIVE,
|
|
INACTIVE
|
|
}
|
|
|
|
@NonNull
|
|
public static StreamInfo of(int i, @NonNull StreamState streamState) {
|
|
return new AutoValue_StreamInfo(i, streamState, null);
|
|
}
|
|
|
|
public abstract int getId();
|
|
|
|
@Nullable
|
|
public abstract SurfaceRequest.TransformationInfo getInProgressTransformationInfo();
|
|
|
|
@NonNull
|
|
public abstract StreamState getStreamState();
|
|
|
|
@NonNull
|
|
public static StreamInfo of(int i, @NonNull StreamState streamState, @Nullable SurfaceRequest.TransformationInfo transformationInfo) {
|
|
return new AutoValue_StreamInfo(i, streamState, transformationInfo);
|
|
}
|
|
}
|