Stay organized with collections
Save and categorize content based on your preferences.
ArImageMetadata_const_entry
#include <arcore_c_api.h>
Defines a single read-only image metadata entry.
Struct matches ACameraMetadata_const_entry
in Android NDK r21.
Summary
Public attributes
|
count
|
uint32_t
Count of elements (NOT count of bytes) in this metadata entry.
|
d
|
const double *
Pointer to data of single double or the first element of the double array.
|
data
|
union ArImageMetadata_const_entry::@0
Pointers to the data held in this metadata entry.
|
f
|
const float *
Pointer to data of single 32-bit float or the first element of the 32-bit float array.
|
i32
|
const int32_t *
Pointer to data of single 32-bit int or the first element of the 32-bit int array.
|
i64
|
const int64_t *
Pointer to data of single 64-bit int or the first element of the 64-bit int array.
|
r
|
|
tag
|
uint32_t
The tag identifying the entry.
|
type
|
uint8_t
The data type of this metadata entry.
|
u8
|
const uint8_t *
Pointer to data of single byte or the first element of the byte array.
|
Public attributes
count
uint32_t ArImageMetadata_const_entry::count
Count of elements (NOT count of bytes) in this metadata entry.
d
const double * ArImageMetadata_const_entry::d
Pointer to data of single double or the first element of the double array.
data
union ArImageMetadata_const_entry::@0 ArImageMetadata_const_entry::data
Pointers to the data held in this metadata entry.
The field type
defines which union member pointer is valid.
f
const float * ArImageMetadata_const_entry::f
Pointer to data of single 32-bit float or the first element of the 32-bit float array.
i32
const int32_t * ArImageMetadata_const_entry::i32
Pointer to data of single 32-bit int or the first element of the 32-bit int array.
i64
const int64_t * ArImageMetadata_const_entry::i64
Pointer to data of single 64-bit int or the first element of the 64-bit int array.
tag
uint32_t ArImageMetadata_const_entry::tag
The tag identifying the entry.
type
uint8_t ArImageMetadata_const_entry::type
The data type of this metadata entry.
Determines which data pointer in the union
below is valid. See ACAMERA_TYPE_*
enum values in the NDK.
u8
const uint8_t * ArImageMetadata_const_entry::u8
Pointer to data of single byte or the first element of the byte array.
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-07-14 UTC.
[null,null,["Last updated 2025-07-14 UTC."],[[["\u003cp\u003e\u003ccode\u003eArImageMetadata_const_entry\u003c/code\u003e defines a single read-only image metadata entry, mirroring \u003ccode\u003eACameraMetadata_const_entry\u003c/code\u003e in Android NDK r21.\u003c/p\u003e\n"],["\u003cp\u003eIt includes attributes like \u003ccode\u003ecount\u003c/code\u003e, \u003ccode\u003etag\u003c/code\u003e, and \u003ccode\u003etype\u003c/code\u003e to describe the metadata entry.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edata\u003c/code\u003e attribute is a union containing pointers to different data types (double, float, int, etc.) depending on the \u003ccode\u003etype\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecount\u003c/code\u003e attribute indicates the number of elements within the metadata entry.\u003c/p\u003e\n"],["\u003cp\u003ePointers like \u003ccode\u003ed\u003c/code\u003e, \u003ccode\u003ef\u003c/code\u003e, \u003ccode\u003ei32\u003c/code\u003e, \u003ccode\u003ei64\u003c/code\u003e, \u003ccode\u003er\u003c/code\u003e, and \u003ccode\u003eu8\u003c/code\u003e provide access to the actual metadata data based on the \u003ccode\u003etype\u003c/code\u003e.\u003c/p\u003e\n"]]],["`ArImageMetadata_const_entry` defines a read-only image metadata entry, similar to `ACameraMetadata_const_entry`. It includes attributes like `count` (element count), `tag` (entry identifier), and `type` (data type). The `data` union holds pointers to various data types: `double` (`d`), `float` (`f`), `int32_t` (`i32`), `int64_t` (`i64`), `ArImageMetadata_rational` (`r`), and `uint8_t` (`u8`). The `type` attribute determines the valid pointer within the `data` union.\n"],null,["# ArImageMetadata_const_entry Struct Reference\n\nArImageMetadata_const_entry\n===========================\n\n`#include \u003carcore_c_api.h\u003e`\n\nDefines a single read-only image metadata entry.\n\nStruct matches `ACameraMetadata_const_entry` in Android NDK r21.\n\nSummary\n-------\n\n| ### Public attributes ||\n|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [count](#count) | `uint32_t` Count of elements (NOT count of bytes) in this metadata entry. |\n| [d](#d) | `const double *` Pointer to data of single double or the first element of the double array. |\n| [data](#data) | `union ArImageMetadata_const_entry::@0` Pointers to the data held in this metadata entry. |\n| [f](#f) | `const float *` Pointer to data of single 32-bit float or the first element of the 32-bit float array. |\n| [i32](#i32) | `const int32_t *` Pointer to data of single 32-bit int or the first element of the 32-bit int array. |\n| [i64](#i64) | `const int64_t *` Pointer to data of single 64-bit int or the first element of the 64-bit int array. |\n| [r](#r) | `const `[ArImageMetadata_rational](/ar/reference/c/struct/ar-image-metadata-rational#struct_ar_image_metadata__rational)` *` Pointer to data of single [ArImageMetadata_rational](/ar/reference/c/struct/ar-image-metadata-rational#struct_ar_image_metadata__rational) or the first element of the [ArImageMetadata_rational](/ar/reference/c/struct/ar-image-metadata-rational#struct_ar_image_metadata__rational) array. |\n| [tag](#tag) | `uint32_t` The tag identifying the entry. |\n| [type](#type) | `uint8_t` The data type of this metadata entry. |\n| [u8](#u8) | `const uint8_t *` Pointer to data of single byte or the first element of the byte array. |\n\nPublic attributes\n-----------------\n\n### count\n\n```gdscript\nuint32_t ArImageMetadata_const_entry::count\n``` \nCount of elements (NOT count of bytes) in this metadata entry. \n\n### d\n\n```gdscript\nconst double * ArImageMetadata_const_entry::d\n``` \nPointer to data of single double or the first element of the double array. \n\n### data\n\n```objective-c\nunion ArImageMetadata_const_entry::@0 ArImageMetadata_const_entry::data\n``` \nPointers to the data held in this metadata entry.\n\nThe field `type` defines which union member pointer is valid. \n\n### f\n\n```gdscript\nconst float * ArImageMetadata_const_entry::f\n``` \nPointer to data of single 32-bit float or the first element of the 32-bit float array. \n\n### i32\n\n```gdscript\nconst int32_t * ArImageMetadata_const_entry::i32\n``` \nPointer to data of single 32-bit int or the first element of the 32-bit int array. \n\n### i64\n\n```gdscript\nconst int64_t * ArImageMetadata_const_entry::i64\n``` \nPointer to data of single 64-bit int or the first element of the 64-bit int array. \n\n### r\n\n```gdscript\nconst ArImageMetadata_rational * ArImageMetadata_const_entry::r\n``` \nPointer to data of single [ArImageMetadata_rational](/ar/reference/c/struct/ar-image-metadata-rational#struct_ar_image_metadata__rational) or the first element of the [ArImageMetadata_rational](/ar/reference/c/struct/ar-image-metadata-rational#struct_ar_image_metadata__rational) array. \n\n### tag\n\n```gdscript\nuint32_t ArImageMetadata_const_entry::tag\n``` \nThe tag identifying the entry. \n\n### type\n\n```gdscript\nuint8_t ArImageMetadata_const_entry::type\n``` \nThe data type of this metadata entry.\n\nDetermines which data pointer in the `union` below is valid. See `ACAMERA_TYPE_*` enum values in the NDK. \n\n### u8\n\n```gdscript\nconst uint8_t * ArImageMetadata_const_entry::u8\n``` \nPointer to data of single byte or the first element of the byte array."]]