mirror of
https://github.com/androidx/media.git
synced 2025-05-15 19:49:50 +08:00
Specify units for VideoEncoderSettings.
PiperOrigin-RevId: 497113780
This commit is contained in:
parent
bea32abefc
commit
283cbcb464
@ -104,7 +104,7 @@ public final class VideoEncoderSettings {
|
||||
*
|
||||
* <p>Can not be set if enabling {@link #experimentalSetEnableHighQualityTargeting(boolean)}.
|
||||
*
|
||||
* @param bitrate The {@link VideoEncoderSettings#bitrate}.
|
||||
* @param bitrate The {@link VideoEncoderSettings#bitrate} in bits per second.
|
||||
* @return This builder.
|
||||
*/
|
||||
@CanIgnoreReturnValue
|
||||
@ -167,7 +167,8 @@ public final class VideoEncoderSettings {
|
||||
* Sets encoding operating rate and priority. The default values are {@link #NO_VALUE}, which is
|
||||
* treated as configuring the encoder for maximum throughput.
|
||||
*
|
||||
* @param operatingRate The {@link MediaFormat#KEY_OPERATING_RATE operating rate}.
|
||||
* @param operatingRate The {@link MediaFormat#KEY_OPERATING_RATE operating rate} in frames per
|
||||
* second.
|
||||
* @param priority The {@link MediaFormat#KEY_PRIORITY priority}.
|
||||
* @return This builder.
|
||||
*/
|
||||
@ -216,7 +217,7 @@ public final class VideoEncoderSettings {
|
||||
}
|
||||
}
|
||||
|
||||
/** The encoding bitrate. */
|
||||
/** The encoding bitrate in bits per second. */
|
||||
public final int bitrate;
|
||||
/** One of {@linkplain BitrateMode}. */
|
||||
public final @BitrateMode int bitrateMode;
|
||||
@ -226,7 +227,7 @@ public final class VideoEncoderSettings {
|
||||
public final int level;
|
||||
/** The encoding I-Frame interval in seconds. */
|
||||
public final float iFrameIntervalSeconds;
|
||||
/** The encoder {@link MediaFormat#KEY_OPERATING_RATE operating rate}. */
|
||||
/** The encoder {@link MediaFormat#KEY_OPERATING_RATE operating rate} in frames per second. */
|
||||
public final int operatingRate;
|
||||
/** The encoder {@link MediaFormat#KEY_PRIORITY priority}. */
|
||||
public final int priority;
|
||||
|
Loading…
x
Reference in New Issue
Block a user