Class FrameInfo.Builder
- java.lang.Object
-
- com.google.android.exoplayer2.util.FrameInfo.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FrameInfobuild()Builds aFrameInfoinstance.FrameInfo.BuildersetHeight(int height)Sets the frame height, in pixels.FrameInfo.BuildersetOffsetToAddUs(long offsetToAddUs)Sets the offset to add to the frame presentation timestamp, in microseconds.FrameInfo.BuildersetPixelWidthHeightRatio(float pixelWidthHeightRatio)Sets the ratio of width over height for each pixel.FrameInfo.BuildersetWidth(int width)Sets the frame width, in pixels.
-
-
-
Method Detail
-
setWidth
@CanIgnoreReturnValue public FrameInfo.Builder setWidth(int width)
Sets the frame width, in pixels.
-
setHeight
@CanIgnoreReturnValue public FrameInfo.Builder setHeight(int height)
Sets the frame height, in pixels.
-
setPixelWidthHeightRatio
@CanIgnoreReturnValue public FrameInfo.Builder setPixelWidthHeightRatio(float pixelWidthHeightRatio)
Sets the ratio of width over height for each pixel.The default value is
1.
-
setOffsetToAddUs
@CanIgnoreReturnValue public FrameInfo.Builder setOffsetToAddUs(long offsetToAddUs)
Sets the offset to add to the frame presentation timestamp, in microseconds.The default value is
0.
-
-