ArCameraConfigFilter
Filters available camera configurations.
Summary
Enumerations |
|
---|---|
ArCameraConfigDepthSensorUsage{
|
enum Depth sensor usage. |
ArCameraConfigStereoCameraUsage{
|
enum Stereo camera usage. |
ArCameraConfigTargetFps{
|
enum Target camera capture frame rates. |
Typedefs |
|
---|---|
ArCameraConfigFilter
|
typedefstruct ArCameraConfigFilter_
A camera config filter struct contains the filters that are desired by the application. |
Functions |
|
---|---|
ArCameraConfigFilter_create(const ArSession *session, ArCameraConfigFilter **out_filter)
|
void
Creates a camera config filter object.
|
ArCameraConfigFilter_destroy(ArCameraConfigFilter *filter)
|
void
Releases memory used by the provided camera config filter object.
|
ArCameraConfigFilter_getDepthSensorUsage(const ArSession *session, ArCameraConfigFilter *filter, uint32_t *out_depth_sensor_usage)
|
void
Gets the desired depth sensor usages to allow.
|
ArCameraConfigFilter_getFacingDirection(const ArSession *session, ArCameraConfigFilter *filter, ArCameraConfigFacingDirection *out_facing_direction_filter)
|
void
Gets the desired camera facing direction to allow.
|
ArCameraConfigFilter_getStereoCameraUsage(const ArSession *session, ArCameraConfigFilter *filter, uint32_t *out_stereo_camera_usage)
|
void
Get the stereo multi-camera (https://source.android.com/devices/camera/multi-camera) usage filter state.
|
ArCameraConfigFilter_getTargetFps(const ArSession *session, ArCameraConfigFilter *filter, uint32_t *out_fps_filters)
|
void
Gets the desired framerates to allow.
|
ArCameraConfigFilter_setDepthSensorUsage(const ArSession *session, ArCameraConfigFilter *filter, uint32_t depth_sensor_usage_filters)
|
void
Sets the desired depth sensor usages to allow.
|
ArCameraConfigFilter_setFacingDirection(const ArSession *session, ArCameraConfigFilter *filter, ArCameraConfigFacingDirection facing_direction_filter)
|
void
Sets the desired camera facing direction to allow.
|
ArCameraConfigFilter_setStereoCameraUsage(const ArSession *session, ArCameraConfigFilter *filter, uint32_t stereo_camera_usage_filters)
|
void
Sets the stereo multi-camera (https://source.android.com/devices/camera/multi-camera) usage filter.
|
ArCameraConfigFilter_setTargetFps(const ArSession *session, ArCameraConfigFilter *filter, uint32_t fps_filters)
|
void
Sets the desired framerates to allow.
|
Enumerations
ArCameraConfigDepthSensorUsage
ArCameraConfigDepthSensorUsage
Depth sensor usage.
Properties | |
---|---|
AR_CAMERA_CONFIG_DEPTH_SENSOR_USAGE_DO_NOT_USE
|
When used as a camera filter, via Most commonly used to filter camera configurations when the app requires exclusive access to the depth sensor outside of ARCore, for example to support 3D mesh reconstruction. Available on all ARCore supported devices. When returned by |
AR_CAMERA_CONFIG_DEPTH_SENSOR_USAGE_REQUIRE_AND_USE
|
When used as a camera filter, via See the ARCore supported devices (https://developers.google.com/ar/devices) page for a list of devices that currently have supported depth sensors. When returned by |
ArCameraConfigStereoCameraUsage
ArCameraConfigStereoCameraUsage
Stereo camera usage.
Properties | |
---|---|
AR_CAMERA_CONFIG_STEREO_CAMERA_USAGE_DO_NOT_USE
|
When used as a camera filter, via Can be used to limit power consumption. Available on all ARCore supported devices. When returned by |
AR_CAMERA_CONFIG_STEREO_CAMERA_USAGE_REQUIRE_AND_USE
|
When used as a camera filter, via Increases CPU and device power consumption. Not supported on all devices. See the ARCore supported devices (https://developers.google.com/ar/devices) page for a list of devices that currently have supported stereo camera capability. When returned by |
ArCameraConfigTargetFps
ArCameraConfigTargetFps
Target camera capture frame rates.
The target frame rate represents the maximum or desired frame rate. Actual camera capture frame rates can be lower than the target frame rate under low light conditions in order to accommodate longer exposure times.
Properties | |
---|---|
AR_CAMERA_CONFIG_TARGET_FPS_30
|
Target 30fps camera capture frame rate. Available on all ARCore supported devices. Used as a camera filter, via |
AR_CAMERA_CONFIG_TARGET_FPS_60
|
Target 60fps camera capture frame rate. Increases power consumption and may increase app memory usage. See the ARCore supported devices (https://developers.google.com/ar/devices) page for a list of devices that currently support 60fps. Used as a camera filter, via |
Typedefs
ArCameraConfigFilter
struct ArCameraConfigFilter_ ArCameraConfigFilter
A camera config filter struct contains the filters that are desired by the application.
(value type).
- Create with:
ArCameraConfigFilter_create
- Release with:
ArCameraConfigFilter_destroy
Functions
ArCameraConfigFilter_create
void ArCameraConfigFilter_create( const ArSession *session, ArCameraConfigFilter **out_filter )
Creates a camera config filter object.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
ArCameraConfigFilter_destroy
void ArCameraConfigFilter_destroy( ArCameraConfigFilter *filter )
Releases memory used by the provided camera config filter object.
Details | |||
---|---|---|---|
Parameters |
|
ArCameraConfigFilter_getDepthSensorUsage
void ArCameraConfigFilter_getDepthSensorUsage( const ArSession *session, ArCameraConfigFilter *filter, uint32_t *out_depth_sensor_usage )
Gets the desired depth sensor usages to allow.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
ArCameraConfigFilter_getFacingDirection
void ArCameraConfigFilter_getFacingDirection( const ArSession *session, ArCameraConfigFilter *filter, ArCameraConfigFacingDirection *out_facing_direction_filter )
Gets the desired camera facing direction to allow.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
ArCameraConfigFilter_getStereoCameraUsage
void ArCameraConfigFilter_getStereoCameraUsage( const ArSession *session, ArCameraConfigFilter *filter, uint32_t *out_stereo_camera_usage )
Get the stereo multi-camera (https://source.android.com/devices/camera/multi-camera) usage filter state.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
ArCameraConfigFilter_getTargetFps
void ArCameraConfigFilter_getTargetFps( const ArSession *session, ArCameraConfigFilter *filter, uint32_t *out_fps_filters )
Gets the desired framerates to allow.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
ArCameraConfigFilter_setDepthSensorUsage
void ArCameraConfigFilter_setDepthSensorUsage( const ArSession *session, ArCameraConfigFilter *filter, uint32_t depth_sensor_usage_filters )
Sets the desired depth sensor usages to allow.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
ArCameraConfigFilter_setFacingDirection
void ArCameraConfigFilter_setFacingDirection( const ArSession *session, ArCameraConfigFilter *filter, ArCameraConfigFacingDirection facing_direction_filter )
Sets the desired camera facing direction to allow.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
ArCameraConfigFilter_setStereoCameraUsage
void ArCameraConfigFilter_setStereoCameraUsage( const ArSession *session, ArCameraConfigFilter *filter, uint32_t stereo_camera_usage_filters )
Sets the stereo multi-camera (https://source.android.com/devices/camera/multi-camera) usage filter.
Default is to not filter.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
ArCameraConfigFilter_setTargetFps
void ArCameraConfigFilter_setTargetFps( const ArSession *session, ArCameraConfigFilter *filter, uint32_t fps_filters )
Sets the desired framerates to allow.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|