camera_get_filename()

Updated: April 19, 2023

Retrieve the filename associated with a camera

Synopsis:

#include <camera/camera_api.h>
camera_error_t camera_get_filename(camera_handle_t handle,
                                   char *filename,
                                   uint32_t filename_len)

Arguments:

handle
The handle returned by a call to the camera_open() function.
filename
The name of the file associated with the camera.
filename_len
The size of the buffer provided by the caller as filename. The recommended size for filenames is defined by CAMERA_ROLL_NAMELEN.

Library:

libcamapi

Description:

For cameras that support the feature CAMERA_FEATURE_FILENAME, this function permits retrieving the name of the file used to generate the simulated content of the camera frames.

Returns:

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