camera_external_camera_t

Functions that must be implemented by an external camera library

Synopsis:

#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;

Data:

open_external_camera_func_t open
A function pointer.

For more information, see open_external_camera_funct_t().

close_external_camera_func_t close
A function pointer.

For more information, see close_external_camera_func_t().

init_camera_func_t init
A function pointer.

For more information, see init_camera_func_t().

deinit_camera_func_t deinit
A function pointer.

For more information, see deinit_camera_func_t().

start_preview_func_t start_preview
A function pointer.

For more information, see start_preview_func_t()

stop_preview_func_t stop_preview
A function pointer.

For more information, see stop_preview_func_t().

get_preview_frame_func_t get_preview_frame
A function pointer.

For more information, see get_preview_frame_func_t().

get_preview_num_buffers_func_t get_preview_num_buffers
A function pointer.

For more information, see get_preview_num_buffers_func_t().

get_supported_vf_frametypes_func_t get_supported_vf_frametype
A function pointer.

For more information, see get_supported_vf_frametypes_func_t().

get_supported_vf_resolutions_func_t get_supported_vf_resolution
A function pointer.

For more information, see get_supported_vf_resolutions_func_t)().

get_supported_vf_framerates_func_t get_supported_vf_framerates
A function pointer.

For more information, see get_supported_vf_framerates_func_t().

get_time_func_t get_time
A function pointer.

For more information, see get_time_func_t().

set_framerate_func_t set_framerate
A function pointer.

For more information, see set_framerate_func_t().

get_framerate_func_t get_framerate
A function pointer.

For more information, see get_framerate_func_t().

parse_config_func_t parse_config
A function pointer.

For more information, see parse_config_func_t().

Library:

libcamapi

Description:

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.