Android Hardware Abstraction Layer
Data Fields
camera_info Struct Reference

#include <camera_common.h>

Data Fields

int facing
 
int orientation
 
uint32_t device_version
 
const camera_metadata_tstatic_camera_characteristics
 

Detailed Description

Definition at line 112 of file camera_common.h.

Field Documentation

uint32_t device_version

The value of camera_device_t.common.version.

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

CAMERA_MODULE_API_VERSION_1_0:

Not valid. Can be assumed to be CAMERA_DEVICE_API_VERSION_1_0. Do not read this field.

CAMERA_MODULE_API_VERSION_2_0 or higher:

Always valid

Definition at line 154 of file camera_common.h.

int facing

The direction that the camera faces to. It should be CAMERA_FACING_BACK or CAMERA_FACING_FRONT.

Version information: Valid in all camera_module versions

Definition at line 120 of file camera_common.h.

int orientation

The orientation of the camera image. The value is the angle that the camera image needs to be rotated clockwise so it shows correctly on the display in its natural orientation. It should be 0, 90, 180, or 270.

For example, suppose a device has a naturally tall screen. The back-facing camera sensor is mounted in landscape. You are looking at the screen. If the top side of the camera sensor is aligned with the right edge of the screen in natural orientation, the value should be 90. If the top side of a front-facing camera sensor is aligned with the right of the screen, the value should be 270.

Version information: Valid in all camera_module versions

Definition at line 137 of file camera_common.h.

const camera_metadata_t* static_camera_characteristics

The camera's fixed characteristics, which include all camera metadata in the android.*.info.* sections. This should be a sorted metadata buffer, and may not be modified or freed by the caller. The pointer should remain valid for the lifetime of the camera module, and values in it may not change after it is returned by get_camera_info().

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

CAMERA_MODULE_API_VERSION_1_0:

Not valid. Extra characteristics are not available. Do not read this field.

CAMERA_MODULE_API_VERSION_2_0 or higher:

Valid if device_version >= CAMERA_DEVICE_API_VERSION_2_0. Do not read otherwise.

Definition at line 176 of file camera_common.h.


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