camera_is_create_window_supported()

Updated: May 06, 2022

Determine if the specified frame type allows for window creation

Synopsis:

#include <camera/camera_api.h>
bool camera_is_create_window_supported(camera_handle_t handle,
                                       camera_frametype_t frametype)

Arguments:

handle
The handle returned by the camera_open() function.
frametype
The frame type for which you want to check if window creation is allowed (see camera_frametype_t).

Library:

libcamapi

Description:

Before calling camera_start_viewfinder() with CAMERA_IMGPROP_CREATEWINDOW set to true, it is recommended to check if the device/frame type combination allows a window to be created. You can do so by calling camera_is_create_window_supported().

Returns:

true when the device allows window creation for the frame type, otherwise false.