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 FrameInfo
build()
Builds aFrameInfo
instance.FrameInfo.Builder
setHeight(int height)
Sets the frame height, in pixels.FrameInfo.Builder
setOffsetToAddUs(long offsetToAddUs)
Sets the offset to add to the frame presentation timestamp, in microseconds.FrameInfo.Builder
setPixelWidthHeightRatio(float pixelWidthHeightRatio)
Sets the ratio of width over height for each pixel.FrameInfo.Builder
setWidth(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
.
-
-