Merge "Update documentation for MediaCodec onFrameRendered" into udc-dev am: 6e64c17952
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23638768 Change-Id: I11216295379108dc1d1faf66025309d9f1aafe37 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -4933,8 +4933,12 @@ final public class MediaCodec {
|
|||||||
* Called when an output frame has rendered on the output surface.
|
* Called when an output frame has rendered on the output surface.
|
||||||
* <p>
|
* <p>
|
||||||
* <strong>Note:</strong> This callback is for informational purposes only: to get precise
|
* <strong>Note:</strong> This callback is for informational purposes only: to get precise
|
||||||
* render timing samples, and can be significantly delayed and batched. Some frames may have
|
* render timing samples, and can be significantly delayed and batched. Starting with
|
||||||
* been rendered even if there was no callback generated.
|
* Android {@link android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE}, a callback will always
|
||||||
|
* be received for each rendered frame providing the MediaCodec is still in the executing
|
||||||
|
* state when the callback is dispatched. Prior to Android
|
||||||
|
* {@link android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE}, some frames may have been
|
||||||
|
* rendered even if there was no callback generated.
|
||||||
*
|
*
|
||||||
* @param codec the MediaCodec instance
|
* @param codec the MediaCodec instance
|
||||||
* @param presentationTimeUs the presentation time (media time) of the frame rendered.
|
* @param presentationTimeUs the presentation time (media time) of the frame rendered.
|
||||||
|
|||||||
Reference in New Issue
Block a user