NVIDIA DeepStream SDK API Reference

7.0 Release
deepstream_sinks.h File Reference

Go to the source code of this file.

Data Structures

struct  NvDsSinkEncoderConfig
 
struct  NvDsSinkRenderConfig
 
struct  NvDsSinkMsgConvBrokerConfig
 
struct  NvDsSinkSubBinConfig
 
struct  NvDsSinkBinSubBin
 
struct  NvDsSinkBin
 

Enumerations

enum  NvDsSinkType {
  NV_DS_SINK_FAKE = 1,
  NV_DS_SINK_RENDER_EGL,
  NV_DS_SINK_ENCODE_FILE,
  NV_DS_SINK_UDPSINK,
  NV_DS_SINK_RENDER_DRM,
  NV_DS_SINK_MSG_CONV_BROKER
}
 
enum  NvDsContainerType {
  NV_DS_CONTAINER_MP4 = 1,
  NV_DS_CONTAINER_MKV
}
 
enum  NvDsEncoderType {
  NV_DS_ENCODER_H264 = 1,
  NV_DS_ENCODER_H265,
  NV_DS_ENCODER_MPEG4
}
 
enum  NvDsEncHwSwType {
  NV_DS_ENCODER_TYPE_HW,
  NV_DS_ENCODER_TYPE_SW
}
 
enum  NvDsEncOutputIOMode {
  NV_DS_ENCODER_OUTPUT_IO_MODE_MMAP = 2,
  NV_DS_ENCODER_OUTPUT_IO_MODE_DMABUF_IMPORT = 5
}
 

Functions

gboolean create_sink_bin (guint num_sub_bins, NvDsSinkSubBinConfig *config_array, NvDsSinkBin *bin, guint index)
 Initialize NvDsSinkBin. More...
 
void destroy_sink_bin (void)
 
gboolean create_demux_sink_bin (guint num_sub_bins, NvDsSinkSubBinConfig *config_array, NvDsSinkBin *bin, guint index)
 
void set_rtsp_udp_port_num (guint rtsp_port_num, guint udp_port_num)
 

Enumeration Type Documentation

◆ NvDsContainerType

Enumerator
NV_DS_CONTAINER_MP4 
NV_DS_CONTAINER_MKV 

Definition at line 41 of file deepstream_sinks.h.

◆ NvDsEncHwSwType

Enumerator
NV_DS_ENCODER_TYPE_HW 
NV_DS_ENCODER_TYPE_SW 

Definition at line 54 of file deepstream_sinks.h.

◆ NvDsEncoderType

Enumerator
NV_DS_ENCODER_H264 
NV_DS_ENCODER_H265 
NV_DS_ENCODER_MPEG4 

Definition at line 47 of file deepstream_sinks.h.

◆ NvDsEncOutputIOMode

Enumerator
NV_DS_ENCODER_OUTPUT_IO_MODE_MMAP 
NV_DS_ENCODER_OUTPUT_IO_MODE_DMABUF_IMPORT 

Definition at line 60 of file deepstream_sinks.h.

◆ NvDsSinkType

Enumerator
NV_DS_SINK_FAKE 
NV_DS_SINK_RENDER_EGL 
NV_DS_SINK_ENCODE_FILE 
NV_DS_SINK_UDPSINK 
NV_DS_SINK_RENDER_DRM 
NV_DS_SINK_MSG_CONV_BROKER 

Definition at line 27 of file deepstream_sinks.h.

Function Documentation

◆ create_demux_sink_bin()

gboolean create_demux_sink_bin ( guint  num_sub_bins,
NvDsSinkSubBinConfig config_array,
NvDsSinkBin bin,
guint  index 
)

◆ create_sink_bin()

gboolean create_sink_bin ( guint  num_sub_bins,
NvDsSinkSubBinConfig config_array,
NvDsSinkBin bin,
guint  index 
)

Initialize NvDsSinkBin.

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

Parameters
[in]num_sub_binsnumber of sink elements.
[in]config_arrayarray of pointers of type NvDsSinkSubBinConfig parsed from configuration file.
[in]binpointer to NvDsSinkBin to be filled.
[in]indexid of source element.
Returns
true if bin created successfully.

◆ destroy_sink_bin()

void destroy_sink_bin ( void  )

◆ set_rtsp_udp_port_num()

void set_rtsp_udp_port_num ( guint  rtsp_port_num,
guint  udp_port_num 
)