mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Specify units for VideoEncoderSettings.
PiperOrigin-RevId: 497113780
This commit is contained in:
parent
bea32abefc
commit
283cbcb464
1 changed files with 5 additions and 4 deletions
|
|
@ -104,7 +104,7 @@ public final class VideoEncoderSettings {
|
||||||
*
|
*
|
||||||
* <p>Can not be set if enabling {@link #experimentalSetEnableHighQualityTargeting(boolean)}.
|
* <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.
|
* @return This builder.
|
||||||
*/
|
*/
|
||||||
@CanIgnoreReturnValue
|
@CanIgnoreReturnValue
|
||||||
|
|
@ -167,7 +167,8 @@ public final class VideoEncoderSettings {
|
||||||
* Sets encoding operating rate and priority. The default values are {@link #NO_VALUE}, which is
|
* Sets encoding operating rate and priority. The default values are {@link #NO_VALUE}, which is
|
||||||
* treated as configuring the encoder for maximum throughput.
|
* 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}.
|
* @param priority The {@link MediaFormat#KEY_PRIORITY priority}.
|
||||||
* @return This builder.
|
* @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;
|
public final int bitrate;
|
||||||
/** One of {@linkplain BitrateMode}. */
|
/** One of {@linkplain BitrateMode}. */
|
||||||
public final @BitrateMode int bitrateMode;
|
public final @BitrateMode int bitrateMode;
|
||||||
|
|
@ -226,7 +227,7 @@ public final class VideoEncoderSettings {
|
||||||
public final int level;
|
public final int level;
|
||||||
/** The encoding I-Frame interval in seconds. */
|
/** The encoding I-Frame interval in seconds. */
|
||||||
public final float iFrameIntervalSeconds;
|
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;
|
public final int operatingRate;
|
||||||
/** The encoder {@link MediaFormat#KEY_PRIORITY priority}. */
|
/** The encoder {@link MediaFormat#KEY_PRIORITY priority}. */
|
||||||
public final int priority;
|
public final int priority;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue