status_callback

Updated: October 26, 2022

Callback to notify users about stream status changes

Synopsis:

#include <camera/external_camera_api.h>
typedef int(* status_callback)(camera_unit_t unit,
            camera_devstatus_t status,
            uint16_t extra);

Arguments:

unit
The camera unit this camera corresponds to. See camera_unit_t for details.
status
The new status of the stream. See camera_devstatus_t for details.
extra
Extra information to provide more details about the status change.

Library:

libcamapi

Description:

This function can be called by the external camera library to notify users of a change in stream status.

Returns:

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