NVIDIA DeepStream SDK API Reference

8.0 Release
deepstream::SourceConfig Class Reference

Detailed Description

Definition at line 56 of file source_config.hpp.

Public Member Functions

 SourceConfig (const std::string &config_file)
 Create a source config from a yaml config file. More...
 
uint32_t nSources () const
 Get the number of the sources. More...
 
uint32_t nCameraSources () const
 Get the number of the camera sources. More...
 
std::string listSensorIds () const
 List sensor ids in a string, separated by ';'. More...
 
std::string listSensorNames () const
 List sensor names in a string, separated by ';'. More...
 
std::string listUris () const
 List sensor uris in a string, separated by ';'. More...
 
SensorInfo getSensorInfo (uint32_t index) const
 Get sensor information for a specific source. More...
 
CameraInfo getCameraInfo (uint32_t index) const
 Get information for a specific camera source. More...
 
const YAML::Node & getProperties () const
 Get properties for setting the source bin(s) More...
 
bool useMultiUriSrcBin () const
 If using the nvmultiurisrcbin. More...
 
bool useUriSrcBin () const
 If using the nvurisrcbin. More...
 
bool useCameraBin () const
 If using the nvv4l2srcbin. More...
 

Protected Attributes

std::vector< SensorInfosensor_info_
 
std::vector< CameraInfocamera_info_
 
YAML::Node properties_
 
bool use_nvmultiurisrcbin_ = false
 
bool use_nvurisrcbin_ = false
 
bool use_camerabin_ = false
 

Constructor & Destructor Documentation

◆ SourceConfig()

deepstream::SourceConfig::SourceConfig ( const std::string &  config_file)

Create a source config from a yaml config file.

Member Function Documentation

◆ getCameraInfo()

CameraInfo deepstream::SourceConfig::getCameraInfo ( uint32_t  index) const

Get information for a specific camera source.

◆ getProperties()

const YAML::Node& deepstream::SourceConfig::getProperties ( ) const

Get properties for setting the source bin(s)

◆ getSensorInfo()

SensorInfo deepstream::SourceConfig::getSensorInfo ( uint32_t  index) const

Get sensor information for a specific source.

Referenced by deepstream::MsgMetaGenerator::handleData().

◆ listSensorIds()

std::string deepstream::SourceConfig::listSensorIds ( ) const

List sensor ids in a string, separated by ';'.

◆ listSensorNames()

std::string deepstream::SourceConfig::listSensorNames ( ) const

List sensor names in a string, separated by ';'.

◆ listUris()

std::string deepstream::SourceConfig::listUris ( ) const

List sensor uris in a string, separated by ';'.

◆ nCameraSources()

uint32_t deepstream::SourceConfig::nCameraSources ( ) const

Get the number of the camera sources.

◆ nSources()

uint32_t deepstream::SourceConfig::nSources ( ) const

Get the number of the sources.

Referenced by deepstream::MsgMetaGenerator::handleData().

◆ useCameraBin()

bool deepstream::SourceConfig::useCameraBin ( ) const

If using the nvv4l2srcbin.

◆ useMultiUriSrcBin()

bool deepstream::SourceConfig::useMultiUriSrcBin ( ) const

If using the nvmultiurisrcbin.

◆ useUriSrcBin()

bool deepstream::SourceConfig::useUriSrcBin ( ) const

If using the nvurisrcbin.

Field Documentation

◆ camera_info_

std::vector<CameraInfo> deepstream::SourceConfig::camera_info_
protected

Definition at line 120 of file source_config.hpp.

◆ properties_

YAML::Node deepstream::SourceConfig::properties_
protected

Definition at line 121 of file source_config.hpp.

◆ sensor_info_

std::vector<SensorInfo> deepstream::SourceConfig::sensor_info_
protected

Definition at line 119 of file source_config.hpp.

◆ use_camerabin_

bool deepstream::SourceConfig::use_camerabin_ = false
protected

Definition at line 124 of file source_config.hpp.

◆ use_nvmultiurisrcbin_

bool deepstream::SourceConfig::use_nvmultiurisrcbin_ = false
protected

Definition at line 122 of file source_config.hpp.

◆ use_nvurisrcbin_

bool deepstream::SourceConfig::use_nvurisrcbin_ = false
protected

Definition at line 123 of file source_config.hpp.


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