SurfaceInfo
@UnstableApi
public final class SurfaceInfo
Immutable value class for a Surface and supporting information.
Summary
Public fields |
|
|---|---|
final int |
The height of frames rendered to the |
final boolean |
Whether the |
final int |
A counter-clockwise rotation to apply to frames before rendering them to the |
final Surface |
The |
final int |
The width of frames rendered to the |
Public constructors |
|---|
SurfaceInfo(Surface surface, int width, int height)Creates a new instance. |
SurfaceInfo(Creates a new instance. |
SurfaceInfo(Creates a new instance. |
Public fields
isEncoderInputSurface
public final boolean isEncoderInputSurface
Whether the surface is an encoder input surface.
orientationDegrees
public final int orientationDegrees
A counter-clockwise rotation to apply to frames before rendering them to the surface.
Must be 0, 90, 180, or 270 degrees. Default is 0.
Public constructors
SurfaceInfo
public SurfaceInfo(
Surface surface,
int width,
int height,
int orientationDegrees
)
Creates a new instance.
SurfaceInfo
public SurfaceInfo(
Surface surface,
int width,
int height,
int orientationDegrees,
boolean isEncoderInputSurface
)
Creates a new instance.