camera_preview_params_t

This structure represents camera preview parameters

Synopsis:

#include <camera/external_camera_api.h>
typedef struct camera_preview_params_t {
    uint16_t preview_height;
    uint16_t preview_width;
    uint32_t preview_stride;
    camera_frametype_t preview_frametype;
    uint32_t framerate_q16;
    uint32_t zoom_level;
    uint32_t rotation;
} camera_preview_params_t;

Data:

uint16_t preview_height
The preview buffer height in pixels.
uint16_t preview_width
The preview buffer width in pixels.
uint32_t preview_stride
The preview buffer stride in bytes.
camera_frametype_t preview_frametype
The preview frame type.

See camera_frametype_t for more information.

uint32_t framerate_q16
The framerate expressed in Q16 format.
uint32_t zoom_level
The zoom level.
uint32_t rotation
The image rotation angle (in degrees) value.

Rotation angles are measured in the clockwise direction.

Library:

libcamapi