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

Commit 19690771 authored by Srujan Vandrangi's avatar Srujan Vandrangi
Browse files

media: update KEY_CAPTURE_RATE javadoc

Bug: 381581801
Test: Build
FLAG: EXEMPT bugfix

Change-Id: I62e6a279ab8fe8b832bea3c638338691a2e0d362
parent f202aae8
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -676,9 +676,17 @@ public final class MediaFormat {
     * When capture rate is different than the frame rate, it means that the
     * video is acquired at a different rate than the playback, which produces
     * slow motion or timelapse effect during playback. Application can use the
     * value of this key to tell the relative speed ratio between capture and
     * playback rates when the video was recorded.
     * value of this key to set a capture rate that differs from the playback
     * rate. If unspecified, the system uses the playback frame rate as the
     * capture rate (e.g. normal speed).
     * </p>
     *
     * <p>However, Specifying capture rates that are nearly equal to the frame
     * rate are at risk of causing frame drops and other visual artifacts in
     * the output. To avoid such artifacts, the capture rate should be at
     * least a factor of 2 away from the frame rate.
     * {@code  GraphicBufferSource#calculateCodecTimestamp_l}</p>
     *
     * <p>
     * The associated value is an integer or a float.
     * </p>