NVIDIA DeepStream SDK API Reference

9.1 Release
sources/includes/gstnvdsinfer.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2018-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
33 G_BEGIN_DECLS
34 
35 #include "nvdsinfer.h"
36 
64  NvDsInferNetworkInfo *network_info, NvDsInferLayerInfo *layers_info,
65  guint num_layers, guint batch_size, gpointer user_data);
66 
77 typedef struct
78 {
80  guint unique_id;
92  gint gpu_id;
94  void *priv_data;
104 
105 
115 typedef struct
116 {
118  guint classes;
120  guint width;
122  guint height;
125  gint* class_map;
130  void *priv_data;
132  gint unique_id;
134 
135 G_END_DECLS
136 
NvDsInferTensorMeta
Holds the raw tensor output information for one frame / one object.
Definition: sources/includes/gstnvdsinfer.h:77
NvDsInferTensorMeta::maintain_aspect_ratio
gboolean maintain_aspect_ratio
Whether aspect ratio was maintained while scaling to network resolution.
Definition: sources/includes/gstnvdsinfer.h:98
NvDsInferTensorMeta::unique_id
guint unique_id
Unique ID of the gst-nvinfer instance which attached this meta.
Definition: sources/includes/gstnvdsinfer.h:80
NvDsInferSegmentationMeta::class_probabilities_map
gfloat * class_probabilities_map
Pointer to the raw array containing the probabilities.
Definition: sources/includes/gstnvdsinfer.h:128
NvDsInferTensorMeta::out_buf_ptrs_dev
void ** out_buf_ptrs_dev
Array of pointers to the output device buffers for the batch / frame / object.
Definition: sources/includes/gstnvdsinfer.h:90
NvDsInferSegmentationMeta::priv_data
void * priv_data
Private data used for the meta producer's internal memory management.
Definition: sources/includes/gstnvdsinfer.h:130
NvDsInferTensorMeta::num_output_layers
guint num_output_layers
Number of bound output layers.
Definition: sources/includes/gstnvdsinfer.h:82
NvDsInferTensorMeta::network_info
NvDsInferNetworkInfo network_info
Network information for the model specified for the nvinfer element instance.
Definition: sources/includes/gstnvdsinfer.h:96
NvDsInferTensorMeta::priv_data
void * priv_data
Private data used for the meta producer's internal memory management.
Definition: sources/includes/gstnvdsinfer.h:94
NvDsInferSegmentationMeta::classes
guint classes
Number of classes in the segmentation output.
Definition: sources/includes/gstnvdsinfer.h:118
NvDsInferTensorMeta::symmetric_padding
gboolean symmetric_padding
Whether symmetric padding was maintained while scaling to network resolution valid only when maintain...
Definition: sources/includes/gstnvdsinfer.h:102
NvDsInferTensorMeta::gpu_id
gint gpu_id
GPU device ID on which the device buffers have been allocated.
Definition: sources/includes/gstnvdsinfer.h:92
nvdsinfer.h
NvDsInferNetworkInfo
Holds information about the model network.
Definition: sources/includes/nvdsinfer.h:119
NvDsInferSegmentationMeta::width
guint width
Width of the segmentation output class map.
Definition: sources/includes/gstnvdsinfer.h:120
NvDsInferLayerInfo
Holds information about one layer in the model.
Definition: sources/includes/nvdsinfer.h:96
NvDsInferSegmentationMeta
Holds the segmentation model output information for one frame / one object.
Definition: sources/includes/gstnvdsinfer.h:115
NvDsInferSegmentationMeta::unique_id
gint unique_id
Unique ID of the gst-nvinfer instance which attached this meta.
Definition: sources/includes/gstnvdsinfer.h:132
NvDsInferTensorMeta::out_buf_ptrs_host
void ** out_buf_ptrs_host
Array of pointers to the output host buffers for the batch / frame / object.
Definition: sources/includes/gstnvdsinfer.h:88
NvDsInferSegmentationMeta::height
guint height
Height of the segmentation output class map.
Definition: sources/includes/gstnvdsinfer.h:122
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.
Definition: sources/includes/gstnvdsinfer.h:63
NvDsInferSegmentationMeta::class_map
gint * class_map
Pointer to the array for 2D pixel class map.
Definition: sources/includes/gstnvdsinfer.h:125
NvDsInferTensorMeta::output_layers_info
NvDsInferLayerInfo * output_layers_info
Pointer to the array containing information for the bound output layers.
Definition: sources/includes/gstnvdsinfer.h:86
GstBuffer
struct _GstBuffer GstBuffer
Definition: sources/includes/ds3d/common/idatatype.h:24