camera_is_create_window_supported()

Determine if the frame type specified 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 you want to check if it allows for a window to be created.

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.

Returns:

true when the device allows window creation for the specified frame type, otherwise a value of false.