Android Hardware Abstraction Layer
Data Fields
camera_module Struct Reference

#include <camera_common.h>

Data Fields

hw_module_t common
 
int(* get_number_of_cameras )(void)
 
int(* get_camera_info )(int camera_id, struct camera_info *info)
 
int(* set_callbacks )(const camera_module_callbacks_t *callbacks)
 
void(* get_vendor_tag_ops )(vendor_tag_ops_t *ops)
 
void * reserved [8]
 

Detailed Description

Definition at line 313 of file camera_common.h.

Field Documentation

hw_module_t common

Definition at line 314 of file camera_common.h.

int(* get_camera_info)(int camera_id, struct camera_info *info)

get_camera_info:

Return the static camera information for a given camera device. This information may not change for a camera device.

Definition at line 337 of file camera_common.h.

int(* get_number_of_cameras)(void)

get_number_of_cameras:

Returns the number of camera devices accessible through the camera module. The camera devices are numbered 0 through N-1, where N is the value returned by this call. The name of the camera device for open() is simply the number converted to a string. That is, "0" for camera ID 0, "1" for camera ID 1.

The value here must be static, and cannot change after the first call to this method

Definition at line 328 of file camera_common.h.

void(* get_vendor_tag_ops)(vendor_tag_ops_t *ops)

get_vendor_tag_ops:

Get methods to query for vendor extension metadata tag information. The HAL should fill in all the vendor tag operation methods, or leave ops unchanged if no vendor tags are defined.

Version information (based on camera_module_t.common.module_api_version):

CAMERA_MODULE_API_VERSION_1_x/2_0/2_1: Not provided by HAL module. Framework may not call this function.

CAMERA_MODULE_API_VERSION_2_2: Valid to be called by the framework.

Definition at line 376 of file camera_common.h.

void* reserved[8]

Definition at line 379 of file camera_common.h.

int(* set_callbacks)(const camera_module_callbacks_t *callbacks)

set_callbacks:

Provide callback function pointers to the HAL module to inform framework of asynchronous camera module events. The framework will call this function once after initial camera HAL module load, after the get_number_of_cameras() method is called for the first time, and before any other calls to the module.

Version information (based on camera_module_t.common.module_api_version):

CAMERA_MODULE_API_VERSION_1_0, CAMERA_MODULE_API_VERSION_2_0:

Not provided by HAL module. Framework may not call this function.

CAMERA_MODULE_API_VERSION_2_1:

Valid to be called by the framework.

Definition at line 359 of file camera_common.h.


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