CameraConfig

public class CameraConfig

Provides details of a camera configuration such as size of the CPU image and GPU texture.

Nested Classes

enum CameraConfig.FacingDirection Describes the direction a camera looks relative to the device. 

Protected Constructors

CameraConfig()
(FOR TESTING) Constructs a new instance for use as a mock.

Public Methods

String
getCameraId()
Gets the camera identifier associated with this config.
CameraConfig.FacingDirection
getFacingDirection()
Returns the device'reative facing of the camera.
Size
getImageSize()
On devices that support CPU image access, gets the dimensions of the image frames for processing that are sent on CPU stream.
Size
getTextureSize()
Gets the dimensions of the image frames for texture that are sent on GPU stream.

Inherited Methods

Protected Constructors

protected CameraConfig ()

(FOR TESTING) Constructs a new instance for use as a mock. Calling any base method implementation on this instance may return unexpected results, throw an exception, or even crash.

To obtain a CameraConfigFilters normally, use update().

Public Methods

public String getCameraId ()

Gets the camera identifier associated with this config. This camera ID is the same ID as returned by Camera2 CameraManager.getCameraIdList().

public CameraConfig.FacingDirection getFacingDirection ()

Returns the device'reative facing of the camera.

public Size getImageSize ()

On devices that support CPU image access, gets the dimensions of the image frames for processing that are sent on CPU stream. On devices that do not support CPU image access the returned value is meaningless.

See ARCore Supported Devices page for a list of devices that do not support CPU image access.

public Size getTextureSize ()

Gets the dimensions of the image frames for texture that are sent on GPU stream.

Send feedback about...