Definitions in camera_api.h

Preprocessor macro definitions for the camera_api.h header file in the libcamapi library

Definitions:

#include <camera/camera_api.h>
#define CAMERA_API_VERSION 3

The version of the Camera library.

The version is used for IPC handshaking and communication between the Camera API and the operating system. You can compare CAMERA_API_VERSION with the value returned by the camera_get_api_version() function to determine whether the runtime library is different from the version your application was compiled with. Differences may indicate potential incompatibilities.

#define CAMERA_HANDLE_INVALID (-1)

A safe-initializer value for a camera_handle_t.

Use this value to check that correct initialization occurred and whether a call to the camera_open() function was successful. You should use this value to initialize camera handle variables, and after you close a handle.

#define CAMERA_ROLL_NAMELEN (256)

The maximum length of a filename returned by camera-roll functions.

The value is useful for you to determine the largest char* buffer to allocate. The camera roll is a directory where video files are saved.

#define CAMERA_ROLL_SUFFIXLEN (64)

The maximum length of a filename suffix to add to filenames returned by camera-roll functions.

#define CAMERA_MAX_FRAMEDESC_SIZE (256)

The maximum size, in bytes, of the frame descriptor.

#define CAMERA_LOCATION_NAMELEN (64)

The maximum length of a string returned for camera location name.

The value is useful for you to determine the largest char* buffer to allocate.

#define CAMERA_VIDEO_GROUP_INVALID (-1)

A safe-initializer value for a camera_video_group_id_t.

Use this value to check that the correct initialization occurred and whether a call to the camera_create_video_group() function was successful. You should use this value to initialize camera_video_group_id_t variables, and after you destroy the video group associated with it.

Library:

libcamapi