Android Hardware Abstraction Layer
Data Fields
vendor_tag_ops Struct Reference

#include <camera_common.h>

Data Fields

int(* get_tag_count )(const vendor_tag_ops_t *v)
 
void(* get_all_tags )(const vendor_tag_ops_t *v, uint32_t *tag_array)
 
const char *(* get_section_name )(const vendor_tag_ops_t *v, uint32_t tag)
 
const char *(* get_tag_name )(const vendor_tag_ops_t *v, uint32_t tag)
 
int(* get_tag_type )(const vendor_tag_ops_t *v, uint32_t tag)
 
void * reserved [8]
 

Detailed Description

Definition at line 261 of file camera_common.h.

Field Documentation

void(* get_all_tags)(const vendor_tag_ops_t *v, uint32_t *tag_array)

Fill an array with all the supported vendor tags on this platform. get_tag_count() returns the number of tags supported, and tag_array will be allocated with enough space to hold all of the tags.

Definition at line 274 of file camera_common.h.

const char*(* get_section_name)(const vendor_tag_ops_t *v, uint32_t tag)

Get vendor section name for a vendor-specified entry tag. Only called for vendor-defined tags. The section name must start with the name of the vendor in the Java package style. For example, CameraZoom Inc. must prefix their sections with "com.camerazoom." Must return NULL if the tag is outside the bounds of vendor-defined sections.

There may be different vendor-defined tag sections, for example the phone maker, the chipset maker, and the camera module maker may each have their own "com.vendor."-prefixed section.

The memory pointed to by the return value must remain valid for the lifetime that the module is loaded, and is owned by the module.

Definition at line 290 of file camera_common.h.

int(* get_tag_count)(const vendor_tag_ops_t *v)

Get the number of vendor tags supported on this platform. Used to calculate the size of buffer needed for holding the array of all tags returned by get_all_tags().

Definition at line 267 of file camera_common.h.

const char*(* get_tag_name)(const vendor_tag_ops_t *v, uint32_t tag)

Get tag name for a vendor-specified entry tag. Only called for vendor-defined tags. Must return NULL if the it is not a vendor-defined tag.

The memory pointed to by the return value must remain valid for the lifetime that the module is loaded, and is owned by the module.

Definition at line 300 of file camera_common.h.

int(* get_tag_type)(const vendor_tag_ops_t *v, uint32_t tag)

Get tag type for a vendor-specified entry tag. Only called for tags >= 0x80000000. Must return -1 if the tag is outside the bounds of vendor-defined sections.

Definition at line 307 of file camera_common.h.

void* reserved[8]

Definition at line 310 of file camera_common.h.


The documentation for this struct was generated from the following file: