Rabbit-R1/switch port/java/sources/com/google/android/exoplayer2/Renderer.java
2024-05-21 17:08:36 -04:00

100 lines
3 KiB
Java

package com.google.android.exoplayer2;
import com.google.android.exoplayer2.PlayerMessage;
import com.google.android.exoplayer2.analytics.PlayerId;
import com.google.android.exoplayer2.source.SampleStream;
import com.google.android.exoplayer2.util.MediaClock;
import java.io.IOException;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/* loaded from: classes2.dex */
public interface Renderer extends PlayerMessage.Target {
public static final int MSG_CUSTOM_BASE = 10000;
public static final int MSG_SET_AUDIO_ATTRIBUTES = 3;
public static final int MSG_SET_AUDIO_SESSION_ID = 10;
public static final int MSG_SET_AUX_EFFECT_INFO = 6;
public static final int MSG_SET_CAMERA_MOTION_LISTENER = 8;
public static final int MSG_SET_CHANGE_FRAME_RATE_STRATEGY = 5;
public static final int MSG_SET_PREFERRED_AUDIO_DEVICE = 12;
public static final int MSG_SET_SCALING_MODE = 4;
public static final int MSG_SET_SKIP_SILENCE_ENABLED = 9;
public static final int MSG_SET_VIDEO_FRAME_METADATA_LISTENER = 7;
public static final int MSG_SET_VIDEO_OUTPUT = 1;
public static final int MSG_SET_VOLUME = 2;
public static final int MSG_SET_WAKEUP_LISTENER = 11;
public static final int STATE_DISABLED = 0;
public static final int STATE_ENABLED = 1;
public static final int STATE_STARTED = 2;
@Target({ElementType.TYPE_USE})
@Documented
@Retention(RetentionPolicy.SOURCE)
/* loaded from: classes2.dex */
public @interface MessageType {
}
@Target({ElementType.TYPE_USE})
@Documented
@Retention(RetentionPolicy.SOURCE)
/* loaded from: classes2.dex */
public @interface State {
}
/* loaded from: classes2.dex */
public interface WakeupListener {
void onSleep();
void onWakeup();
}
void disable();
void enable(RendererConfiguration rendererConfiguration, Format[] formatArr, SampleStream sampleStream, long j, boolean z, boolean z2, long j2, long j3) throws ExoPlaybackException;
RendererCapabilities getCapabilities();
MediaClock getMediaClock();
String getName();
long getReadingPositionUs();
int getState();
SampleStream getStream();
int getTrackType();
boolean hasReadStreamToEnd();
void init(int i, PlayerId playerId);
boolean isCurrentStreamFinal();
boolean isEnded();
boolean isReady();
void maybeThrowStreamError() throws IOException;
void render(long j, long j2) throws ExoPlaybackException;
void replaceStream(Format[] formatArr, SampleStream sampleStream, long j, long j2) throws ExoPlaybackException;
void reset();
void resetPosition(long j) throws ExoPlaybackException;
void setCurrentStreamFinal();
default void setPlaybackSpeed(float f, float f2) throws ExoPlaybackException {
}
void start() throws ExoPlaybackException;
void stop();
}