Updated: October 28, 2024 |
Determine if the specified frame type allows for window creation
#include <camera/camera_api.h>
bool camera_is_create_window_supported(camera_handle_t handle, camera_frametype_t frametype)
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().
true when the device allows window creation for the frame type, otherwise false.