Interface to the core CameraProvider methods.
Definition at line 77 of file CameraProvider.h.
◆ ~ICameraProvider()
Argus::ICameraProvider::~ICameraProvider |
( |
| ) |
|
|
inlineprotected |
◆ createCaptureSession() [1/2]
Creates and returns a new CaptureSession using the given device.
STATUS_UNAVAILABLE will be placed into status
if the device is already in use.
- Parameters
-
[in] | device | The device to use for the CaptureSession. |
[out] | status | Optional pointer to return success/status of the call. |
- Returns
- The new CaptureSession, or NULL if an error occurred.
◆ createCaptureSession() [2/2]
Creates and returns a new CaptureSession using the given device(s).
STATUS_UNAVAILABLE will be placed into status
if any of the devices are already in use.
- Parameters
-
[in] | devices | The device(s) to use for the CaptureSession. |
[out] | status | Optional pointer to return success/status of the call. |
- Returns
- The new CaptureSession, or NULL if an error occurred.
◆ getCameraDevices()
virtual Status Argus::ICameraProvider::getCameraDevices |
( |
std::vector< CameraDevice * > * |
devices | ) |
const |
|
pure virtual |
Returns the list of camera devices that are exposed by the provider.
This includes devices that may already be in use by active CaptureSessions, and it's the application's responsibility to check device availability and/or handle any errors returned when CaptureSession creation fails due to a device already being in use.
- Parameters
-
[out] | devices | A vector that will be populated by the available devices. |
- Returns
- success/status of the call.
◆ getVendor()
virtual const std::string& Argus::ICameraProvider::getVendor |
( |
| ) |
const |
|
pure virtual |
Returns the vendor string for the libargus implementation.
◆ getVersion()
virtual const std::string& Argus::ICameraProvider::getVersion |
( |
| ) |
const |
|
pure virtual |
Returns the version number of the libargus implementation.
This string will begin with the major and minor version numbers, separated by a period, and may be followed by any additional vendor-specific version information.
◆ id()
static const InterfaceID& Argus::ICameraProvider::id |
( |
| ) |
|
|
inlinestatic |
◆ supportsExtension()
virtual bool Argus::ICameraProvider::supportsExtension |
( |
const ExtensionName & |
extension | ) |
const |
|
pure virtual |
Returns whether or not an extension is supported by this libargus implementation.
This is generally used during process initialization to ensure that all required extensions are present before initializing any CaptureSessions. Note, however, that having an extension be supported does not imply that the resources or devices required for that extension are available; standard interface checking and any other extension-specific runtime checks, as described by the extension documentation, should always be performed before any extension is used.
- Parameters
-
[in] | extension | the extension identifier. |
The documentation for this class was generated from the following file: