mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-04 03:28:54 +01:00
86 lines
2.8 KiB
Java
86 lines
2.8 KiB
Java
package androidx.camera.video;
|
|
|
|
import android.util.Range;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.camera.video.AutoValue_AudioSpec;
|
|
import com.google.auto.value.AutoValue;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@AutoValue
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
/* loaded from: classes.dex */
|
|
public abstract class AudioSpec {
|
|
public static final int CHANNEL_COUNT_AUTO = -1;
|
|
public static final int CHANNEL_COUNT_MONO = 1;
|
|
public static final int CHANNEL_COUNT_NONE = 0;
|
|
public static final int CHANNEL_COUNT_STEREO = 2;
|
|
public static final int SOURCE_AUTO = -1;
|
|
public static final int SOURCE_CAMCORDER = 5;
|
|
public static final int SOURCE_FORMAT_AUTO = -1;
|
|
public static final int SOURCE_FORMAT_PCM_16BIT = 2;
|
|
|
|
@NonNull
|
|
public static final Range<Integer> BITRATE_RANGE_AUTO = new Range<>(0, Integer.MAX_VALUE);
|
|
|
|
@NonNull
|
|
public static final Range<Integer> SAMPLE_RATE_RANGE_AUTO = new Range<>(0, Integer.MAX_VALUE);
|
|
public static final AudioSpec NO_AUDIO = builder().setChannelCount(0).build();
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@AutoValue.Builder
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
public static abstract class Builder {
|
|
@NonNull
|
|
public abstract AudioSpec build();
|
|
|
|
@NonNull
|
|
public abstract Builder setBitrate(@NonNull Range<Integer> range);
|
|
|
|
@NonNull
|
|
public abstract Builder setChannelCount(int i);
|
|
|
|
@NonNull
|
|
public abstract Builder setSampleRate(@NonNull Range<Integer> range);
|
|
|
|
@NonNull
|
|
public abstract Builder setSource(int i);
|
|
|
|
@NonNull
|
|
public abstract Builder setSourceFormat(int i);
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
public @interface ChannelCount {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
public @interface Source {
|
|
}
|
|
|
|
@NonNull
|
|
public static Builder builder() {
|
|
return new AutoValue_AudioSpec.Builder().setSourceFormat(-1).setSource(-1).setChannelCount(-1).setBitrate(BITRATE_RANGE_AUTO).setSampleRate(SAMPLE_RATE_RANGE_AUTO);
|
|
}
|
|
|
|
@NonNull
|
|
public abstract Range<Integer> getBitrate();
|
|
|
|
public abstract int getChannelCount();
|
|
|
|
@NonNull
|
|
public abstract Range<Integer> getSampleRate();
|
|
|
|
public abstract int getSource();
|
|
|
|
public abstract int getSourceFormat();
|
|
|
|
@NonNull
|
|
public abstract Builder toBuilder();
|
|
}
|