Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1948af7b authored by Dongwon Kang's avatar Dongwon Kang Committed by android-build-merger
Browse files

Merge "Update documentation of MediaCodec regarding partial frame." into oc-dev

am: 878fc6a8

Change-Id: I2548802b594a2b4710c5661ffecf26dcdacdf1d7
parents fa69e851 878fc6a8
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -75,12 +75,12 @@ import java.util.Map;
 <h4>Compressed Buffers</h4>
 <h4>Compressed Buffers</h4>
 <p>
 <p>
 Input buffers (for decoders) and output buffers (for encoders) contain compressed data according
 Input buffers (for decoders) and output buffers (for encoders) contain compressed data according
 to the {@linkplain MediaFormat#KEY_MIME format's type}. For video types this is a single
 to the {@linkplain MediaFormat#KEY_MIME format's type}. For video types this is normally a single
 compressed video frame. For audio data this is normally a single access unit (an encoded audio
 compressed video frame. For audio data this is normally a single access unit (an encoded audio
 segment typically containing a few milliseconds of audio as dictated by the format type), but
 segment typically containing a few milliseconds of audio as dictated by the format type), but
 this requirement is slightly relaxed in that a buffer may contain multiple encoded access units
 this requirement is slightly relaxed in that a buffer may contain multiple encoded access units
 of audio. In either case, buffers do not start or end on arbitrary byte boundaries, but rather on
 of audio. In either case, buffers do not start or end on arbitrary byte boundaries, but rather on
 frame/access unit boundaries.
 frame/access unit boundaries unless they are flagged with {@link #BUFFER_FLAG_PARTIAL_FRAME}.


 <h4>Raw Audio Buffers</h4>
 <h4>Raw Audio Buffers</h4>
 <p>
 <p>
+1 −1
Original line number Original line Diff line number Diff line
@@ -35,7 +35,7 @@ import java.util.LinkedList;
import java.util.List;
import java.util.List;


/**
/**
 * MediaSync class can be used to synchronously playback audio and video streams.
 * MediaSync class can be used to synchronously play audio and video streams.
 * It can be used to play audio-only or video-only stream, too.
 * It can be used to play audio-only or video-only stream, too.
 *
 *
 * <p>MediaSync is generally used like this:
 * <p>MediaSync is generally used like this: