Flutter Engine
The Flutter Engine
|
Typedefs | |
typedef struct ArConfig_ | ArConfig |
Functions | |
AR_DEFINE_ENUM (ArLightEstimationMode) | |
AR_DEFINE_ENUM (ArPlaneFindingMode) | |
AR_DEFINE_ENUM (ArUpdateMode) | |
void | ArConfig_create (const ArSession *session, ArConfig **out_config) |
void | ArConfig_destroy (ArConfig *config) |
Releases memory used by the provided configuration object. More... | |
void | ArConfig_getLightEstimationMode (const ArSession *session, const ArConfig *config, ArLightEstimationMode *light_estimation_mode) |
void | ArConfig_setLightEstimationMode (const ArSession *session, ArConfig *config, ArLightEstimationMode light_estimation_mode) |
void | ArConfig_getPlaneFindingMode (const ArSession *session, const ArConfig *config, ArPlaneFindingMode *plane_finding_mode) |
void | ArConfig_setPlaneFindingMode (const ArSession *session, ArConfig *config, ArPlaneFindingMode plane_finding_mode) |
void | ArConfig_getUpdateMode (const ArSession *session, const ArConfig *config, ArUpdateMode *update_mode) |
void | ArConfig_setUpdateMode (const ArSession *session, ArConfig *config, ArUpdateMode update_mode) |
void | ArConfig_getCloudAnchorMode (const ArSession *session, const ArConfig *config, ArCloudAnchorMode *out_cloud_anchor_mode) |
Gets the current cloud anchor mode from the ArConfig. More... | |
void | ArConfig_setCloudAnchorMode (const ArSession *session, ArConfig *config, ArCloudAnchorMode cloud_anchor_mode) |
void | ArConfig_setAugmentedImageDatabase (const ArSession *session, ArConfig *config, const ArAugmentedImageDatabase *augmented_image_database) |
void | ArConfig_getAugmentedImageDatabase (const ArSession *session, const ArConfig *config, ArAugmentedImageDatabase *out_augmented_image_database) |
Session configuration.
typedef struct ArConfig_ ArConfig |
An opaque session configuration object (value type).
Create with ArConfig_create()
Release with ArConfig_destroy()
Definition at line 153 of file arcore_c_api.h.
AR_DEFINE_ENUM | ( | ArLightEstimationMode | ) |
Select the behavior of the lighting estimation subsystem.
Lighting estimation is disabled.
Lighting estimation is enabled, generating a single-value intensity estimate.
Definition at line 707 of file arcore_c_api.h.
AR_DEFINE_ENUM | ( | ArPlaneFindingMode | ) |
Select the behavior of the plane detection subsystem.
Plane detection is disabled.
Detection of only horizontal planes is enabled.
Detection of only vertical planes is enabled.
Detection of horizontal and vertical planes is enabled.
Definition at line 716 of file arcore_c_api.h.
AR_DEFINE_ENUM | ( | ArUpdateMode | ) |
Selects the behavior of ArSession_update().
update()
will wait until a new camera image is available, or until the built-in timeout (currently 66ms) is reached. On most devices the camera is configured to capture 30 frames per second. If the camera image does not arrive by the built-in timeout, then update()
will return the most recent ArFrame object.
update()
will return immediately without blocking. If no new camera image is available, then update()
will return the most recent ArFrame object.
Definition at line 728 of file arcore_c_api.h.
Creates a new configuration object and initializes it to a sensible default configuration. Plane detection and lighting estimation are enabled, and blocking update is selected. This configuration is guaranteed to be supported on all devices that support ARCore.
void ArConfig_destroy | ( | ArConfig * | config | ) |
Releases memory used by the provided configuration object.
void ArConfig_getAugmentedImageDatabase | ( | const ArSession * | session, |
const ArConfig * | config, | ||
ArAugmentedImageDatabase * | out_augmented_image_database | ||
) |
Returns the image database from the session configuration.
This function returns a copy of the internally stored image database.
void ArConfig_getCloudAnchorMode | ( | const ArSession * | session, |
const ArConfig * | config, | ||
ArCloudAnchorMode * | out_cloud_anchor_mode | ||
) |
Gets the current cloud anchor mode from the ArConfig.
void ArConfig_getLightEstimationMode | ( | const ArSession * | session, |
const ArConfig * | config, | ||
ArLightEstimationMode * | light_estimation_mode | ||
) |
Stores the currently configured lighting estimation mode into *light_estimation_mode
.
void ArConfig_getPlaneFindingMode | ( | const ArSession * | session, |
const ArConfig * | config, | ||
ArPlaneFindingMode * | plane_finding_mode | ||
) |
Stores the currently configured plane finding mode into *plane_finding_mode
.
void ArConfig_getUpdateMode | ( | const ArSession * | session, |
const ArConfig * | config, | ||
ArUpdateMode * | update_mode | ||
) |
Stores the currently configured behavior of ArSession_update() into *update_mode
.
void ArConfig_setAugmentedImageDatabase | ( | const ArSession * | session, |
ArConfig * | config, | ||
const ArAugmentedImageDatabase * | augmented_image_database | ||
) |
Sets the image database in the session configuration.
Any images in the currently active image database that have a TRACKING/PAUSED state will immediately be set to the STOPPED state if a different or null image database is set.
This function makes a copy of the image database.
void ArConfig_setCloudAnchorMode | ( | const ArSession * | session, |
ArConfig * | config, | ||
ArCloudAnchorMode | cloud_anchor_mode | ||
) |
Sets the cloud configuration that should be used. See ::ArCloudAnchorMode for available options.
void ArConfig_setLightEstimationMode | ( | const ArSession * | session, |
ArConfig * | config, | ||
ArLightEstimationMode | light_estimation_mode | ||
) |
Sets the lighting estimation mode that should be used. See ::ArLightEstimationMode for available options.
void ArConfig_setPlaneFindingMode | ( | const ArSession * | session, |
ArConfig * | config, | ||
ArPlaneFindingMode | plane_finding_mode | ||
) |
Sets the plane finding mode that should be used. See ::ArPlaneFindingMode for available options.
void ArConfig_setUpdateMode | ( | const ArSession * | session, |
ArConfig * | config, | ||
ArUpdateMode | update_mode | ||
) |
Sets the behavior of ArSession_update(). See ::ArUpdateMode for available options.