configure_preview_func_t

Updated: April 19, 2023

Inform the library of the desired preview resolution and frame type

Synopsis:

#include <camera/external_camera_api.h>
typedef int(* configure_preview_func_t)(void *handle,
            camera_unit_t unit,
            camera_res_t previewResolution,
            camera_frametype_t frameType);

Arguments:

handle
The handle that's returned from calling the function open_external_camera_func_t.
unit
The associated camera unit. See camera_unit_t for details.
previewResolution
The resolution of the preview image. See camera_res_t for details.
frameType
The frame type of the preview image. See camera_frametype_t for details.

Library:

libcamapi

Description:

This function informs the library about the preview resolution and frame type. It is called before starting preview in case the external camera library needs this information.

Note:

This function is optional.

Returns:

CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.