get_supported_vf_frametypes_func_t

Updated: April 19, 2023

Retrieve the supported viewfinder frame types

Synopsis:

#include <camera/external_camera_api.h>
typedef int(* get_supported_vf_frametypes_func_t)(void *handle,
            int *numTypes,
            camera_frametype_t *types);

Arguments:

handle
The handle that's returned from calling the function open_external_camera_func_t.
numTypes
On success, this is set to the number of viewfinder frame types supported by the camera.
types
An array to fill with the supported frame types. See camera_frametype_t for details.

Library:

libcamapi

Description:

This function retrieves the supported viewfinder frame types for the specified camera (e.g., NV12, RGB).

Returns:

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