NVIDIA DeepStream SDK API Reference

6.4 Release
deepstream_sources.h File Reference

Go to the source code of this file.

Data Structures

struct  NvDsSourceConfig
 
struct  NvDsSrcBin
 
struct  NvDsSrcParentBin
 

Typedefs

typedef struct NvDsSrcParentBin NvDsSrcParentBin
 

Enumerations

enum  NvDsSourceType {
  NV_DS_SOURCE_CAMERA_V4L2 = 1,
  NV_DS_SOURCE_URI,
  NV_DS_SOURCE_URI_MULTIPLE,
  NV_DS_SOURCE_RTSP,
  NV_DS_SOURCE_CAMERA_CSI,
  NV_DS_SOURCE_AUDIO_WAV,
  NV_DS_SOURCE_AUDIO_URI,
  NV_DS_SOURCE_ALSA_SRC
}
 

Functions

gboolean create_source_bin (NvDsSourceConfig *config, NvDsSrcBin *bin)
 
gboolean create_audio_source_bin (NvDsSourceConfig *config, NvDsSrcBin *bin)
 
gboolean create_multi_source_bin (guint num_sub_bins, NvDsSourceConfig *configs, NvDsSrcParentBin *bin)
 Initialize NvDsSrcParentBin. More...
 
gboolean create_nvmultiurisrcbin_bin (guint num_sub_bins, NvDsSourceConfig *configs, NvDsSrcParentBin *bin)
 Initialize NvDsSrcParentBin. More...
 
gboolean reset_source_pipeline (gpointer data)
 
gboolean set_source_to_playing (gpointer data)
 
gpointer reset_encodebin (gpointer data)
 
void destroy_smart_record_bin (gpointer data)
 

Typedef Documentation

◆ NvDsSrcParentBin

Definition at line 96 of file deepstream_sources.h.

Enumeration Type Documentation

◆ NvDsSourceType

Enumerator
NV_DS_SOURCE_CAMERA_V4L2 
NV_DS_SOURCE_URI 
NV_DS_SOURCE_URI_MULTIPLE 
NV_DS_SOURCE_RTSP 
NV_DS_SOURCE_CAMERA_CSI 
NV_DS_SOURCE_AUDIO_WAV 
NV_DS_SOURCE_AUDIO_URI 
NV_DS_SOURCE_ALSA_SRC 

Definition at line 35 of file deepstream_sources.h.

Function Documentation

◆ create_audio_source_bin()

gboolean create_audio_source_bin ( NvDsSourceConfig config,
NvDsSrcBin bin 
)

◆ create_multi_source_bin()

gboolean create_multi_source_bin ( guint  num_sub_bins,
NvDsSourceConfig configs,
NvDsSrcParentBin bin 
)

Initialize NvDsSrcParentBin.

It creates and adds source and other elements needed for processing to the bin. It also sets properties mentioned in the configuration file under group CONFIG_GROUP_SOURCE

Parameters
[in]num_sub_binsnumber of source elements.
[in]configsarray of pointers of type NvDsSourceConfig parsed from configuration file.
[in]binpointer to NvDsSrcParentBin to be filled.
Returns
true if bin created successfully.

◆ create_nvmultiurisrcbin_bin()

gboolean create_nvmultiurisrcbin_bin ( guint  num_sub_bins,
NvDsSourceConfig configs,
NvDsSrcParentBin bin 
)

Initialize NvDsSrcParentBin.

It creates and adds nvmultiurisrcbin needed for processing to the bin. It also sets properties mentioned in the configuration file under group CONFIG_GROUP_SOURCE_LIST, CONFIG_GROUP_SOURCE_ALL

Parameters
[in]num_sub_binsnumber of source elements.
[in]configsarray of pointers of type NvDsSourceConfig parsed from configuration file.
[in]binpointer to NvDsSrcParentBin to be filled.
Returns
true if bin created successfully.

◆ create_source_bin()

gboolean create_source_bin ( NvDsSourceConfig config,
NvDsSrcBin bin 
)

◆ destroy_smart_record_bin()

void destroy_smart_record_bin ( gpointer  data)

◆ reset_encodebin()

gpointer reset_encodebin ( gpointer  data)

◆ reset_source_pipeline()

gboolean reset_source_pipeline ( gpointer  data)

◆ set_source_to_playing()

gboolean set_source_to_playing ( gpointer  data)