#include <arcore_c_api.h>
Defines a rational data type in ArImageMetadata_const_entry
.
Struct matches ACameraMetadata_rational
in Android NDK r21.
Summary
Public attributes
|
denominator
|
int32_t
Denominator in the rational data type of this metadata entry.
|
numerator
|
int32_t
Numerator in the rational data type of this metadata entry.
|
Public attributes
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-28 UTC.
[null,null,["Last updated 2025-02-28 UTC."],[[["`ArImageMetadata_rational` defines a rational data type used within ARCore's image metadata entries, similar to Android's `ACameraMetadata_rational`."],["This structure includes two attributes: `numerator` and `denominator`, both represented as 32-bit integers, to express a rational number."],["The structure is used within the `ArImageMetadata_const_entry` to provide detailed information about an image's properties."]]],["The `ArImageMetadata_rational` structure, defined in `arcore_c_api.h`, represents rational data within image metadata, aligning with Android NDK r21's `ACameraMetadata_rational`. It consists of two key components: `denominator`, an `int32_t` representing the denominator, and `numerator`, also an `int32_t`, representing the numerator. These attributes define the rational value of a specific metadata entry. This struct is used with `ArImageMetadata_const_entry` to handle image metadata.\n"]]