logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetNumCameraDrivers - Use this function to get the number of built-in camera drivers.

Availability

       This function is available since SDL 3.2.0.

Description

       This  function  returns  a hardcoded number. This never returns a negative value; if there are no drivers
       compiled into this build of SDL, this function returns zero. The presence of a driver in this  list  does
       not  mean it will function, it just means SDL is capable of interacting with that interface. For example,
       a build of SDL might have v4l2 support, but if there's no kernel support  available,  SDL's  v4l2  driver
       would fail if used.

       By default, SDL tries all drivers, in its preferred order, until one is found to be usable.

Name

       SDL_GetNumCameraDrivers - Use this function to get the number of built-in camera drivers.

Return Value

       Returns the number of built-in camera drivers.

See Also

SDL_GetCameraDriver(3)

Simple Directmedia Layer                           SDL 3.2.20                         SDL_GetNumCameraDrivers(3)

Synopsis

#include<SDL3/SDL_camera.h>intSDL_GetNumCameraDrivers(void);

Thread Safety

       It is safe to call this function from any thread.

See Also