camera_is_videocodec_supported()

Updated: April 19, 2023

Verify whether a given video codec is supported

Synopsis:

#include <camera/camera_api.h>
bool camera_is_videocodec_supported(camera_handle_t handle,
                                    camera_videocodec_t codec)

Arguments:

handle
The handle returned by a call to the camera_open() function.
codec
The video codec to verify (see camera_videocodec_t).

Library:

libcamapi

Description:

Use this function to determine if a given video codec is supported on the device.

Returns:

true when the specified video codec is supported, otherwise false.