Formatting fixes on MediaCodecAdapter

Fixes JavaDoc on MediaCodecAdapter and AsynchronousMediaCodecAdapter
and a field declaration on MediaCodecRenderer.

PiperOrigin-RevId: 286157106
This commit is contained in:
christosts 2019-12-18 10:55:49 +00:00 committed by Oliver Woodman
parent 6c9357ba2f
commit fde59ccd1a
3 changed files with 5 additions and 7 deletions

View File

@ -43,7 +43,7 @@ import com.google.android.exoplayer2.util.Assertions;
/**
* Create a new {@code AsynchronousMediaCodecAdapter}.
*
* @param codec the {@link MediaCodec} to wrap.
* @param codec The {@link MediaCodec} to wrap.
*/
public AsynchronousMediaCodecAdapter(MediaCodec codec) {
this(codec, Assertions.checkNotNull(Looper.myLooper()));

View File

@ -35,7 +35,7 @@ import android.media.MediaFormat;
* Returns the next available input buffer index from the underlying {@link MediaCodec} or {@link
* 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();
@ -46,7 +46,7 @@ import android.media.MediaFormat;
* the format. If there is no available output, this method will return {@link
* 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);

View File

@ -406,9 +406,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
private boolean waitingForFirstSyncSample;
private boolean waitingForFirstSampleInFormat;
private boolean pendingOutputEndOfStream;
private @MediaCodecOperationMode int mediaCodecOperationMode;
@MediaCodecOperationMode private int mediaCodecOperationMode;
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
* 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>
* <li>{@link MediaCodecOperationMode#SYNCHRONOUS}: The {@link MediaCodec} will operate in
* synchronous mode.