AI-generated Key Takeaways
-
CameraConfig.StereoCameraUsageis an enum describing how a stereo camera is used. -
DO_NOT_USEindicates ARCore will not attempt to use a stereo camera, even if present, potentially limiting power consumption. -
REQUIRE_AND_USEindicates a stereo multi-camera must be present and used by ARCore, which increases CPU and device power consumption and is not supported on all devices or with the SharedCamera API.
public static final enum
CameraConfig.StereoCameraUsage
Stereo camera usage.
Inherited Methods
Enum Values
public static final CameraConfig.StereoCameraUsage DO_NOT_USE
DO_NOT_USE
public static final CameraConfig.StereoCameraUsage DO_NOT_USE
When used as a camera filter, via CameraConfigFilter.setStereoCameraUsage(EnumSet),
indicates that ARCore will not attempt to use a stereo multi-camera , even if one
is present. Can be used to limit power consumption. Available on all ARCore supported
devices.
When returned by CameraConfig.getStereoCameraUsage(), indicates that the camera config will
not use a stereo camera, even if one is present on the device.
public static final CameraConfig.StereoCameraUsage REQUIRE_AND_USE
REQUIRE_AND_USE
public static final CameraConfig.StereoCameraUsage REQUIRE_AND_USE
When used as a camera filter, via CameraConfigFilter.setStereoCameraUsage(EnumSet),
indicates that a stereo multi-camera must be
present on the device, and the stereo camera must be used by ARCore. Increases CPU and device
power consumption. Not supported on all devices.
Currently not supported when SharedCamera API is used to share
control of the camera with ARCore.
When returned by CameraConfig.getStereoCameraUsage(), indicates that a stereo camera is
present on the device and will be used by ARCore.