Jetson Linux API Reference

32.7.5 Release
Argus::ICameraProvider Class Referenceabstract

Detailed Description

Interface to the core CameraProvider methods.

Definition at line 77 of file CameraProvider.h.

Inheritance diagram for Argus::ICameraProvider:
Collaboration diagram for Argus::ICameraProvider:

Public Member Functions

virtual const std::string & getVersion () const =0
 Returns the version number of the libargus implementation. More...
 
virtual const std::string & getVendor () const =0
 Returns the vendor string for the libargus implementation. More...
 
virtual bool supportsExtension (const ExtensionName &extension) const =0
 Returns whether or not an extension is supported by this libargus implementation. More...
 
virtual Status getCameraDevices (std::vector< CameraDevice * > *devices) const =0
 Returns the list of camera devices that are exposed by the provider. More...
 
virtual CaptureSessioncreateCaptureSession (CameraDevice *device, Status *status=NULL)=0
 Creates and returns a new CaptureSession using the given device. More...
 
virtual CaptureSessioncreateCaptureSession (const std::vector< CameraDevice * > &devices, Status *status=NULL)=0
 Creates and returns a new CaptureSession using the given device(s). More...
 

Static Public Member Functions

static const InterfaceIDid ()
 

Protected Member Functions

 ~ICameraProvider ()
 

Constructor & Destructor Documentation

◆ ~ICameraProvider()

Argus::ICameraProvider::~ICameraProvider ( )
inlineprotected

Definition at line 139 of file CameraProvider.h.

Member Function Documentation

◆ createCaptureSession() [1/2]

virtual CaptureSession* Argus::ICameraProvider::createCaptureSession ( CameraDevice device,
Status status = NULL 
)
pure virtual

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]deviceThe device to use for the CaptureSession.
[out]statusOptional pointer to return success/status of the call.
Returns
The new CaptureSession, or NULL if an error occurred.

◆ createCaptureSession() [2/2]

virtual CaptureSession* Argus::ICameraProvider::createCaptureSession ( const std::vector< CameraDevice * > &  devices,
Status status = NULL 
)
pure virtual

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]devicesThe device(s) to use for the CaptureSession.
[out]statusOptional 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]devicesA 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

Definition at line 80 of file CameraProvider.h.

◆ 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]extensionthe extension identifier.

The documentation for this class was generated from the following file: