NVIDIA DeepStream SDK API Reference

9.1 Release
9.1/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;
82  guint num_output_layers;
86  NvDsInferLayerInfo *output_layers_info;
88  void **out_buf_ptrs_host;
90  void **out_buf_ptrs_dev;
92  gint gpu_id;
94  void *priv_data;
96  NvDsInferNetworkInfo network_info;
98  gboolean maintain_aspect_ratio;
102  gboolean symmetric_padding;
104 
105 
115 typedef struct
116 {
118  guint classes;
120  guint width;
122  guint height;
125  gint* class_map;
128  gfloat *class_probabilities_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
nvdsinfer.h
NvDsInferNetworkInfo
Holds information about the model network.
Definition: sources/includes/nvdsinfer.h:119
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
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: 9.1/sources/includes/gstnvdsinfer.h:63
GstBuffer
struct _GstBuffer GstBuffer
Definition: sources/includes/ds3d/common/idatatype.h:24