Data Structures | Typedefs | Functions
android Namespace Reference

Data Structures

class  CameraHardwareInterface
 CameraHardwareInterface.h defines the interface to the camera hardware abstraction layer, used for setting and getting parameters, live previewing, and taking pictures. More...
 
struct  image_rect_struct
 The size of image for display. More...
 

Typedefs

typedef void(* data_callback )(int32_t msgType, const sp< IMemory > &dataPtr, void *user)
 
typedef void(* data_callback_timestamp )(nsecs_t timestamp, int32_t msgType, const sp< IMemory > &dataPtr, void *user)
 
typedef struct
android::image_rect_struct 
image_rect_type
 The size of image for display. More...
 
typedef void(* notify_callback )(int32_t msgType, int32_t ext1, int32_t ext2, void *user)
 

Functions

void HAL_getCameraInfo (int cameraId, struct CameraInfo *cameraInfo)
 
int HAL_getNumberOfCameras ()
 The functions need to be provided by the camera HAL. More...
 
sp< CameraHardwareInterfaceHAL_openCameraHardware (int cameraId)
 

Typedef Documentation

typedef void(* android::data_callback)(int32_t msgType, const sp< IMemory > &dataPtr, void *user)

Definition at line 37 of file CameraHardwareInterface.h.

typedef void(* android::data_callback_timestamp)(nsecs_t timestamp, int32_t msgType, const sp< IMemory > &dataPtr, void *user)

Definition at line 40 of file CameraHardwareInterface.h.

The size of image for display.

typedef void(* android::notify_callback)(int32_t msgType, int32_t ext1, int32_t ext2, void *user)

Definition at line 33 of file CameraHardwareInterface.h.

Function Documentation

void android::HAL_getCameraInfo ( int  cameraId,
struct CameraInfo *  cameraInfo 
)
int android::HAL_getNumberOfCameras ( )

The functions need to be provided by the camera HAL.

If getNumberOfCameras() returns N, the valid cameraId for getCameraInfo() and openCameraHardware() is 0 to N-1.

sp<CameraHardwareInterface> android::HAL_openCameraHardware ( int  cameraId)