NVIDIA DeepStream SDK API Reference

9.2 Release
sources/libs/gst-nvdsinferbase/include/gstnvdsinfer.h File Reference

Detailed Description

NVIDIA DeepStream GStreamer NvInfer API Specification

Description: This file specifies the APIs and function definitions for the DeepStream GStreamer NvInfer Plugin.

Definition in file sources/libs/gst-nvdsinferbase/include/gstnvdsinfer.h.

Go to the source code of this file.

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

◆ gst_nvinfer_raw_output_generated_callback

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 sources/libs/gst-nvdsinferbase/include/gstnvdsinfer.h.