public abstract class

VideoEncoderConfig.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.camera.video.internal.encoder.VideoEncoderConfig.Builder

Overview

The builder of the config.

Summary

Methods
public abstract VideoEncoderConfigbuild()

Builds the config instance.

public abstract VideoEncoderConfig.BuildersetBitrate(int bitrate)

Sets the bitrate.

public abstract VideoEncoderConfig.BuildersetColorFormat(int colorFormat)

Sets the color format.

public abstract VideoEncoderConfig.BuildersetDataSpace(VideoEncoderDataSpace dataSpace)

Sets the color data space.

public abstract VideoEncoderConfig.BuildersetFrameRate(int frameRate)

Sets the frame rate.

public abstract VideoEncoderConfig.BuildersetIFrameInterval(int iFrameInterval)

Sets the i-frame interval.

public abstract VideoEncoderConfig.BuildersetInputTimebase(Timebase timebase)

Sets the source timebase.

public abstract VideoEncoderConfig.BuildersetMimeType(java.lang.String mimeType)

Sets the mime type.

public abstract VideoEncoderConfig.BuildersetProfile(int profile)

Sets (optional) profile for the mime type specified by VideoEncoderConfig.Builder.setMimeType(String).

public abstract VideoEncoderConfig.BuildersetResolution(Size resolution)

Sets the resolution.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public abstract VideoEncoderConfig.Builder setMimeType(java.lang.String mimeType)

Sets the mime type.

public abstract VideoEncoderConfig.Builder setProfile(int profile)

Sets (optional) profile for the mime type specified by VideoEncoderConfig.Builder.setMimeType(String).

public abstract VideoEncoderConfig.Builder setInputTimebase(Timebase timebase)

Sets the source timebase.

public abstract VideoEncoderConfig.Builder setResolution(Size resolution)

Sets the resolution.

public abstract VideoEncoderConfig.Builder setColorFormat(int colorFormat)

Sets the color format.

public abstract VideoEncoderConfig.Builder setDataSpace(VideoEncoderDataSpace dataSpace)

Sets the color data space.

public abstract VideoEncoderConfig.Builder setFrameRate(int frameRate)

Sets the frame rate.

public abstract VideoEncoderConfig.Builder setIFrameInterval(int iFrameInterval)

Sets the i-frame interval.

public abstract VideoEncoderConfig.Builder setBitrate(int bitrate)

Sets the bitrate.

public abstract VideoEncoderConfig build()

Builds the config instance.