Functions that must be implemented by an external camera library
#include <camera/external_camera_api.h>
typedef struct camera_external_camera_t {
open_external_camera_func_t open;
close_external_camera_func_t close;
init_camera_func_t init;
deinit_camera_func_t deinit;
start_preview_func_t start_preview;
stop_preview_func_t stop_preview;
get_preview_frame_func_t get_preview_frame;
get_preview_num_buffers_func_t get_preview_num_buffers;
get_supported_vf_frametypes_func_t get_supported_vf_frametype;
get_supported_vf_resolutions_func_t get_supported_vf_resolution;
get_supported_vf_framerates_func_t get_supported_vf_framerates;
get_time_func_t get_time;
set_framerate_func_t set_framerate;
get_framerate_func_t get_framerate;
parse_config_func_t parse_config;
} camera_external_camera_t;
For more information, see open_external_camera_funct_t().
For more information, see close_external_camera_func_t().
For more information, see init_camera_func_t().
For more information, see deinit_camera_func_t().
For more information, see start_preview_func_t()
For more information, see stop_preview_func_t().
For more information, see get_preview_frame_func_t().
For more information, see get_preview_num_buffers_func_t().
For more information, see get_supported_vf_frametypes_func_t().
For more information, see get_supported_vf_resolutions_func_t)().
For more information, see get_supported_vf_framerates_func_t().
For more information, see get_time_func_t().
For more information, see set_framerate_func_t().
For more information, see get_framerate_func_t().
For more information, see parse_config_func_t().
The external camera library must define an instance of this structure named external_camera_defs that the sensor service will use to interface with the camera driver.