CameraConfigFilter

Filters available camera configurations.

Summary

Typedefs

ArCameraConfigFilter typedef
struct 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_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_setTargetFps(const ArSession *session, ArCameraConfigFilter *filter, const uint32_t fps_filters)
void
Sets the desired framerates to allow.

Typedefs

ArCameraConfigFilter

struct ArCameraConfigFilter_ ArCameraConfigFilter

A camera config filter struct contains the filters that are desired by the application.

(value type).

Allocate 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
session
The ARCore session
out_filter
A pointer to an ArCameraConfigFilter* to receive the address of the newly allocated ArCameraConfigFilter

ArCameraConfigFilter_destroy

void ArCameraConfigFilter_destroy(
  ArCameraConfigFilter *filter
)

Releases memory used by the provided camera config filter object.

Details
Parameters
filter
The filter to release memory for.

ArCameraConfigFilter_getTargetFps

void ArCameraConfigFilter_getTargetFps(
  const ArSession *session,
  ArCameraConfigFilter *filter,
  uint32_t *out_fps_filters
)

Gets the desired framerates to allow.

Details
Parameters
session
The ARCore session
filter
The filter object to query
out_fps_filters
To be filled in with the desired framerates allowed

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
session
The ARCore session
filter
The filter object to change
depth_sensor_usage_filters
A 32bit integer representing multiple ArCameraConfigDepthSensorUsage values, bitwise-or'd together

ArCameraConfigFilter_setTargetFps

void ArCameraConfigFilter_setTargetFps(
  const ArSession *session,
  ArCameraConfigFilter *filter,
  const uint32_t fps_filters
)

Sets the desired framerates to allow.

Details
Parameters
session
The ARCore session
filter
The filter object to change
fps_filters
A 32bit integer representing multiple ArCameraConfigTargetFps values, bitwise-or'd together