camera_preview_params_t

Updated: April 19, 2023

This structure represents the camera preview parameters

Synopsis:

#include <camera/external_camera_api.h>
typedef struct {
    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 details.

uint32_t framerate_q16
The frame rate expressed in Q16 format.
uint32_t zoom_level
The zoom level.
uint32_t rotation
The image rotation angle value, in degrees.

Rotation angles are measured in a clockwise direction.

Library:

libcamapi