Updated: October 28, 2024 |
Inform the library of the desired preview resolution and frame type
#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);
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.
This function is optional.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.