TSdlCameraDriver
Camera driver.
Definition
Unit: Neslib.Sdl3.Video
Properties
Name | Description |
---|---|
Current | The current camera driver, or nil if no driver has been initialized.. |
DriverCount | The number of built-in camera drivers. |
Drivers | The built in camera drivers. |
Name | The name of a built in camera driver. |
Operators
Name | Description |
---|---|
Equal(TSdlCameraDriver, TSdlCameraDriver) | Used to compare against another TSdlCameraDriver. |
Equal(TSdlCameraDriver, Pointer) | Used to compare against nil . |
Implicit | Used to set the value to nil . |
NotEqual(TSdlCameraDriver, TSdlCameraDriver) | Used to compare against another TSdlCameraDriver. |
NotEqual(TSdlCameraDriver, Pointer) | Used to compare against nil . |
Property Descriptions
Current
The current camera driver, or nil if no driver has been initialized..
class property Current: TSdlCameraDriver read GetCurrent
Type: TSdlCameraDriver
Remarks
It is safe to use this property from any thread
DriverCount
The number of built-in camera drivers.
This property 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.
class property DriverCount: Integer read GetDriverCount
Type: Integer
See Also
Remarks
It is safe to use this property from any thread
Drivers
The built in camera drivers.
The list of camera drivers is given in the order that they are normally initialized by default; the drivers that seem more reasonable to choose first (as far as the SDL developers believe) are earlier in the list.
class property Drivers[const AIndex: Integer]: TSdlCameraDriver read GetDriver
Type: TSdlCameraDriver
See Also
Remarks
It is safe to use this property from any thread
Name
The name of a built in camera driver.
The list of camera drivers is given in the order that they are normally initialized by default; the drivers that seem more reasonable to choose first (as far as the SDL developers believe) are earlier in the list.
The names of drivers are all simple, low-ASCII identifiers, like "v4l2", "coremedia" or "android". These never have Unicode characters, and are not meant to be proper names.
property Name: String read FName
Type: String
Operator Descriptions
Equal(TSdlCameraDriver, TSdlCameraDriver)
Used to compare against another TSdlCameraDriver.
class operator Equal(const ALeft, ARight: TSdlCameraDriver): Boolean; inline; static
Parameters
ALeft
: TSdlCameraDriver
ARight
: TSdlCameraDriver
Returns
Boolean
Equal(TSdlCameraDriver, Pointer)
Used to compare against nil
.
class operator Equal(const ALeft: TSdlCameraDriver; const ARight: Pointer): Boolean; inline; static
Parameters
ALeft
: TSdlCameraDriver
ARight
: Pointer
Returns
Boolean
Implicit(Pointer)
Used to set the value to nil
.
class operator Implicit(const AValue: Pointer): TSdlCameraDriver; inline; static
Parameters
AValue
: Pointer
Returns
NotEqual(TSdlCameraDriver, TSdlCameraDriver)
Used to compare against another TSdlCameraDriver.
class operator NotEqual(const ALeft, ARight: TSdlCameraDriver): Boolean; inline; static
Parameters
ALeft
: TSdlCameraDriver
ARight
: TSdlCameraDriver
Returns
Boolean
NotEqual(TSdlCameraDriver, Pointer)
Used to compare against nil
.
class operator NotEqual(const ALeft: TSdlCameraDriver; const ARight: Pointer): Boolean; inline; static
Parameters
ALeft
: TSdlCameraDriver
ARight
: Pointer
Returns
Boolean