vehicle_camera_device_t Struct Reference
  
   #include <
   
    vehicle_camera.h
   
   >
  
 
    Data Fields | 
  |
| struct hw_device_t | common | 
| const uint32_t | camera_type | 
| int(* | get_capabilities )(struct vehicle_camera_device_t *device, vehicle_camera_cap_t *cap) | 
| int(* | get_camera_crop )(struct vehicle_camera_device_t *device, android_native_rect_t *rect) | 
| int(* | set_camera_crop )(struct vehicle_camera_device_t *device, const android_native_rect_t *rect) | 
| int(* | get_camera_position )(struct vehicle_camera_device_t *device, android_native_rect_t *rect) | 
| int(* | set_camera_position )(struct vehicle_camera_device_t *device, const android_native_rect_t *rect) | 
| int(* | get_camera_state )(struct vehicle_camera_device_t *device, vehicle_camera_state_t *state) | 
| int(* | set_camera_state )(struct vehicle_camera_device_t *device, const vehicle_camera_state_t *state) | 
Detailed Description
Definition at line 109 of file vehicle_camera.h .
Field Documentation
| const uint32_t camera_type | 
Definition at line 112 of file vehicle_camera.h .
| struct hw_device_t common | 
Definition at line 110 of file vehicle_camera.h .
| int(* get_camera_crop)(struct vehicle_camera_device_t *device, android_native_rect_t *rect) | 
Gets the current camera crop settings.
- Parameters
 - 
     
device - device handle rect - current camera crop settings  
- Returns
 - 0 on success -EPERM if device is not initialized -errno on error
 
Definition at line 131 of file vehicle_camera.h .
| int(* get_camera_position)(struct vehicle_camera_device_t *device, android_native_rect_t *rect) | 
Gets position of the camera on the display.
- Parameters
 - 
     
device - device handle rect - area of display the camera will appear when on  
- Returns
 - 0 on success -EPERM if device is not initialized -errno on error
 
Definition at line 152 of file vehicle_camera.h .
| int(* get_camera_state)(struct vehicle_camera_device_t *device, vehicle_camera_state_t *state) | 
Gets the current camera state.
- Parameters
 - 
     
device - device handle state - last setting for the camera  
- Returns
 - 0 on success -EPERM if device is not initialized
 
Definition at line 173 of file vehicle_camera.h .
| int(* get_capabilities)(struct vehicle_camera_device_t *device, vehicle_camera_cap_t *cap) | 
Returns the capabilities of this camera.
- Parameters
 - 
     
device - device handle cap - pointer to capabilities flags being returned  
- Returns
 - 0 on success -EPERM if device is invalid or not initialized
 
Definition at line 121 of file vehicle_camera.h .
| int(* set_camera_crop)(struct vehicle_camera_device_t *device, const android_native_rect_t *rect) | 
Sets the camera crop.
- Parameters
 - 
     
device - device handle rect - area of camera input to crop. Must fit within camera width and height from camera capabilities.  
- Returns
 - 0 on success -EPERM if device is not initialized -errno on error
 
Definition at line 142 of file vehicle_camera.h .
| int(* set_camera_position)(struct vehicle_camera_device_t *device, const android_native_rect_t *rect) | 
Sets position of the camera on the display.
- Parameters
 - 
     
device - device handle rect - area of display the camera will appear when on. Must fit within display width and height from camera capabilities.  
- Returns
 - 0 on success -EPERM if device is not initialized -errno on error
 
Definition at line 164 of file vehicle_camera.h .
| int(* set_camera_state)(struct vehicle_camera_device_t *device, const vehicle_camera_state_t *state) | 
Sets the camera state.
- Parameters
 - 
     
device - device handle state - desired setting for the camera  
- Returns
 - 0 on success -EPERM if device is not initialized -errno on error
 
Definition at line 183 of file vehicle_camera.h .
The documentation for this struct was generated from the following file:
- hardware/libhardware/include/hardware/ vehicle_camera.h