CameraConfig

Camera configuration.

Summary

Typedefs

ArCameraConfig typedef
struct ArCameraConfig_
A camera config struct that contains the config supported by the physical camera obtained from the low level device profiles.
ArCameraConfigList typedef
struct ArCameraConfigList_
A list of camera config (value type).

Functions

ArCameraConfigList_create(const ArSession *session, ArCameraConfigList **out_list)
void
Creates a camera config list object.
ArCameraConfigList_destroy(ArCameraConfigList *list)
void
Releases the memory used by a camera config list object, along with all the camera config references it holds.
ArCameraConfigList_getItem(const ArSession *session, const ArCameraConfigList *list, int32_t index, ArCameraConfig *out_camera_config)
void
Retrieves the specific camera config based on the position in this list.
ArCameraConfigList_getSize(const ArSession *session, const ArCameraConfigList *list, int32_t *out_size)
void
Retrieves the number of camera configs in this list.
ArCameraConfig_create(const ArSession *session, ArCameraConfig **out_camera_config)
void
Creates a camera config object.
ArCameraConfig_destroy(ArCameraConfig *camera_config)
void
Releases the memory used by a camera config object.
ArCameraConfig_getImageDimensions(const ArSession *session, const ArCameraConfig *camera_config, int32_t *out_width, int32_t *out_height)
void
Obtains the camera image dimensions for the given camera config.
ArCameraConfig_getTextureDimensions(const ArSession *session, const ArCameraConfig *camera_config, int32_t *out_width, int32_t *out_height)
void
Obtains the texture dimensions for the given camera config.

Typedefs

ArCameraConfig

struct ArCameraConfig_ ArCameraConfig

A camera config struct that contains the config supported by the physical camera obtained from the low level device profiles.

(value type).

Allocate with ArCameraConfig_create()
Release with ArCameraConfig_destroy()

ArCameraConfigList

struct ArCameraConfigList_ ArCameraConfigList

A list of camera config (value type).

Allocate with ArCameraConfigList_create()
Release with ArCameraConfigList_destroy()

Functions

ArCameraConfigList_create

void ArCameraConfigList_create(
  const ArSession *session,
  ArCameraConfigList **out_list
)

Creates a camera config list object.

Details
Parameters
session
The ARCore session
out_list
A pointer to an ArCameraConfigList* to receive the address of the newly allocated ArCameraConfigList.

ArCameraConfigList_destroy

void ArCameraConfigList_destroy(
  ArCameraConfigList *list
)

Releases the memory used by a camera config list object, along with all the camera config references it holds.

ArCameraConfigList_getItem

void ArCameraConfigList_getItem(
  const ArSession *session,
  const ArCameraConfigList *list,
  int32_t index,
  ArCameraConfig *out_camera_config
)

Retrieves the specific camera config based on the position in this list.

ArCameraConfigList_getSize

void ArCameraConfigList_getSize(
  const ArSession *session,
  const ArCameraConfigList *list,
  int32_t *out_size
)

Retrieves the number of camera configs in this list.

ArCameraConfig_create

void ArCameraConfig_create(
  const ArSession *session,
  ArCameraConfig **out_camera_config
)

Creates a camera config object.

Details
Parameters
session
The ARCore session
out_camera_config
A pointer to an ArCameraConfig* to receive the address of the newly allocated ArCameraConfig.

ArCameraConfig_destroy

void ArCameraConfig_destroy(
  ArCameraConfig *camera_config
)

Releases the memory used by a camera config object.

ArCameraConfig_getImageDimensions

void ArCameraConfig_getImageDimensions(
  const ArSession *session,
  const ArCameraConfig *camera_config,
  int32_t *out_width,
  int32_t *out_height
)

Obtains the camera image dimensions for the given camera config.

ArCameraConfig_getTextureDimensions

void ArCameraConfig_getTextureDimensions(
  const ArSession *session,
  const ArCameraConfig *camera_config,
  int32_t *out_width,
  int32_t *out_height
)

Obtains the texture dimensions for the given camera config.

Send feedback about...