Extract all metadata from a buffer for processing.
int camera_meta_iterate_metadata(const camera_buffer_t *buffer,
bool(*metadata_consumer)(const camera_metadata_t,
camera_metaformat_t,
void *),
void *arg)
BlackBerry 10.0.0
A pointer to the buffer from which to extract metadata.
A pointer to the user-defined consumer function that is invoked for each piece of metadata that is extracted.
A user-defined argument that is passed to the metadata_consumer function each time it is invoked.
This function extracts all metadata associated with the provided buffer and passes it one piece at a time to a user-defined consumer function for further processing.
bool metadata_consumer(const camera_metadata_t metadata, camera_metaformat_t format, void* arg);
The metadata consumer function returns a bool value to indicate whether the iterator loop should continue. When the provided consumer function returns true, metadata processing will continue. Metadata processing stops when the consumer function returns false.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.