parse_config_func_t

Updated: October 26, 2022

Parse a camera-specific attribute from the configuration file

Synopsis:

#include <camera/external_camera_api.h>
typedef int(* parse_config_func_t)(void *handle,
            char *name,
            char *value);

Arguments:

handle
The handle that's returned from calling the function open_external_camera_func_t.
name
The name of the camera attribute.
value
The value of the camera attribute.

Library:

libcamapi

Description:

This function is called for each attribute associated with the camera in the sensor configuration file.

Note:

This function is optional. It is called before the function init_camera_func_t.

Returns:

CAMERA_EOK if the attribute was parsed successfully by the sensor, CAMERA_EOPNOTSUPP if the attribute is not a camera-specific attribute, another camera_error_t value if any errors were encountered in the parsing of the attribute.