Formatting fixes on MediaCodecAdapter
Fixes JavaDoc on MediaCodecAdapter and AsynchronousMediaCodecAdapter and a field declaration on MediaCodecRenderer. PiperOrigin-RevId: 286157106
This commit is contained in:
parent
6c9357ba2f
commit
fde59ccd1a
@ -43,7 +43,7 @@ import com.google.android.exoplayer2.util.Assertions;
|
|||||||
/**
|
/**
|
||||||
* Create a new {@code AsynchronousMediaCodecAdapter}.
|
* Create a new {@code AsynchronousMediaCodecAdapter}.
|
||||||
*
|
*
|
||||||
* @param codec the {@link MediaCodec} to wrap.
|
* @param codec The {@link MediaCodec} to wrap.
|
||||||
*/
|
*/
|
||||||
public AsynchronousMediaCodecAdapter(MediaCodec codec) {
|
public AsynchronousMediaCodecAdapter(MediaCodec codec) {
|
||||||
this(codec, Assertions.checkNotNull(Looper.myLooper()));
|
this(codec, Assertions.checkNotNull(Looper.myLooper()));
|
||||||
|
@ -35,7 +35,7 @@ import android.media.MediaFormat;
|
|||||||
* Returns the next available input buffer index from the underlying {@link MediaCodec} or {@link
|
* Returns the next available input buffer index from the underlying {@link MediaCodec} or {@link
|
||||||
* MediaCodec#INFO_TRY_AGAIN_LATER} if no such buffer exists.
|
* MediaCodec#INFO_TRY_AGAIN_LATER} if no such buffer exists.
|
||||||
*
|
*
|
||||||
* @throws {@link IllegalStateException} if the underlying {@link MediaCodec} raised an error.
|
* @throws IllegalStateException If the underlying {@link MediaCodec} raised an error.
|
||||||
*/
|
*/
|
||||||
int dequeueInputBufferIndex();
|
int dequeueInputBufferIndex();
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ import android.media.MediaFormat;
|
|||||||
* the format. If there is no available output, this method will return {@link
|
* the format. If there is no available output, this method will return {@link
|
||||||
* MediaCodec#INFO_TRY_AGAIN_LATER}.
|
* MediaCodec#INFO_TRY_AGAIN_LATER}.
|
||||||
*
|
*
|
||||||
* @throws {@link IllegalStateException} if the underlying {@link MediaCodec} raised an error.
|
* @throws IllegalStateException If the underlying {@link MediaCodec} raised an error.
|
||||||
*/
|
*/
|
||||||
int dequeueOutputBufferIndex(MediaCodec.BufferInfo bufferInfo);
|
int dequeueOutputBufferIndex(MediaCodec.BufferInfo bufferInfo);
|
||||||
|
|
||||||
|
@ -406,9 +406,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
|
|||||||
private boolean waitingForFirstSyncSample;
|
private boolean waitingForFirstSyncSample;
|
||||||
private boolean waitingForFirstSampleInFormat;
|
private boolean waitingForFirstSampleInFormat;
|
||||||
private boolean pendingOutputEndOfStream;
|
private boolean pendingOutputEndOfStream;
|
||||||
|
@MediaCodecOperationMode private int mediaCodecOperationMode;
|
||||||
private @MediaCodecOperationMode int mediaCodecOperationMode;
|
|
||||||
|
|
||||||
protected DecoderCounters decoderCounters;
|
protected DecoderCounters decoderCounters;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -473,7 +471,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
|
|||||||
* <p>This method is experimental, and will be renamed or removed in a future release. It should
|
* <p>This method is experimental, and will be renamed or removed in a future release. It should
|
||||||
* only be called before the renderer is used.
|
* only be called before the renderer is used.
|
||||||
*
|
*
|
||||||
* @param mode the mode of the MediaCodec. The supported modes are:
|
* @param mode The mode of the MediaCodec. The supported modes are:
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>{@link MediaCodecOperationMode#SYNCHRONOUS}: The {@link MediaCodec} will operate in
|
* <li>{@link MediaCodecOperationMode#SYNCHRONOUS}: The {@link MediaCodec} will operate in
|
||||||
* synchronous mode.
|
* synchronous mode.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user