CameraController.OutputSize
public final class CameraController.OutputSize
Represents the output size of a UseCase.
This class is a preferred output size to be used with CameraController. The preferred output size can be based on either resolution or aspect ratio, but not both.
Summary
Constants |
|
|---|---|
static final int |
A value that represents the aspect ratio is not assigned. |
Public constructors |
|---|
Creates a |
Creates a |
Public methods |
|
|---|---|
int |
Gets the value of aspect ratio. |
@Nullable Size |
Gets the value of resolution. |
@NonNull String |
|
Constants
public static final int UNASSIGNED_ASPECT_RATIO = -1
A value that represents the aspect ratio is not assigned.
Public constructors
public OutputSize(int aspectRatio)Creates a OutputSize that is based on aspect ratio.
| See also | |
|---|---|
setTargetAspectRatio |
|
setTargetAspectRatio |
publicOutputSize(@NonNull Size resolution)
Creates a OutputSize that is based on resolution.
| See also | |
|---|---|
setTargetResolution |
|
setTargetResolution |
Public methods
public int getAspectRatio()Gets the value of aspect ratio.
| Returns | |
|---|---|
int |
|