NVIDIA DeepStream SDK API Reference

4.0.1 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
NvInfer Plugin

Detailed Description

Defines an API for the GStreamer NvInfer plugin.

Data Structures

struct  NvDsInferTensorMeta
 Holds the raw tensor output information for one frame / one object. More...
 
struct  NvDsInferSegmentationMeta
 Holds the segmentation model output information for one frame / one object. More...
 

Variables

G_BEGIN_DECLS typedef void(* gst_nvinfer_raw_output_generated_callback )(GstBuffer *buf, NvDsInferNetworkInfo *network_info, NvDsInferLayerInfo *layers_info, guint num_layers, guint batch_size, gpointer user_data)
 Function definition for the inference raw output generated callback of Gst-NvInfer plugin. More...
 

Variable Documentation

G_BEGIN_DECLS typedef void(* gst_nvinfer_raw_output_generated_callback)(GstBuffer *buf, NvDsInferNetworkInfo *network_info, NvDsInferLayerInfo *layers_info, guint num_layers, guint batch_size, gpointer user_data)

Function definition for the inference raw output generated callback of Gst-NvInfer plugin.

The callback function can be registered by setting "raw-output-generated-callback" property on an "nvinfer" element instance. Additionally, a pointer to user data can be set through the "raw-output-generated-userdata" property. This pointer will be passed to the raw output generated callback function through the userdata parameter.

Refer to the reference deepstream-app sources for a sample implementation of the callback.

Parameters
[in]bufPointer to the GstBuffer on whose contents inference has been executed. The implementation should assume the buffer to be read-only and should not modify the buffer in any way.
[in]network_infoNetwork information for the model specified for the nvinfer element instance.
[in]layers_infoPointer to the array containing information for all bound layers for the inference engine.
[in]num_layersNumber of layers bound for the inference engine i.e. number of elements in the layers_info array.
[in]batch_sizeNumber of valid input frames in the batch.
[in]user_dataPointer to the user data set through the "raw-output-generated-userdata" property.

Definition at line 56 of file gstnvdsinfer.h.