NVIDIA DeepStream SDK API Reference

7.1 Release
gstnvdsinfer.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2018-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
28 G_BEGIN_DECLS
29 
30 #include "nvdsinfer.h"
31 
59  NvDsInferNetworkInfo *network_info, NvDsInferLayerInfo *layers_info,
60  guint num_layers, guint batch_size, gpointer user_data);
61 
72 typedef struct
73 {
75  guint unique_id;
87  gint gpu_id;
89  void *priv_data;
99 
100 
110 typedef struct
111 {
113  guint classes;
115  guint width;
117  guint height;
120  gint* class_map;
125  void *priv_data;
127  gint unique_id;
129 
130 G_END_DECLS
131 
NvDsInferTensorMeta
Holds the raw tensor output information for one frame / one object.
Definition: gstnvdsinfer.h:72
NvDsInferTensorMeta::maintain_aspect_ratio
gboolean maintain_aspect_ratio
Whether aspect ratio was maintained while scaling to network resolution.
Definition: gstnvdsinfer.h:93
NvDsInferTensorMeta::unique_id
guint unique_id
Unique ID of the gst-nvinfer instance which attached this meta.
Definition: gstnvdsinfer.h:75
NvDsInferTensorMeta::out_buf_ptrs_dev
void ** out_buf_ptrs_dev
Array of pointers to the output device buffers for the batch / frame / object.
Definition: gstnvdsinfer.h:85
NvDsInferTensorMeta::out_buf_ptrs_host
void ** out_buf_ptrs_host
Array of pointers to the output host buffers for the batch / frame / object.
Definition: gstnvdsinfer.h:83
NvDsInferTensorMeta::num_output_layers
guint num_output_layers
Number of bound output layers.
Definition: gstnvdsinfer.h:77
NvDsInferTensorMeta::network_info
NvDsInferNetworkInfo network_info
Network information for the model specified for the nvinfer element instance.
Definition: gstnvdsinfer.h:91
NvDsInferSegmentationMeta::priv_data
void * priv_data
Private data used for the meta producer's internal memory management.
Definition: gstnvdsinfer.h:125
NvDsInferSegmentationMeta::classes
guint classes
Number of classes in the segmentation output.
Definition: gstnvdsinfer.h:113
NvDsInferTensorMeta::symmetric_padding
gboolean symmetric_padding
Whether symmetric padding was maintained while scaling to network resolution valid only when maintain...
Definition: gstnvdsinfer.h:97
NvDsInferTensorMeta::gpu_id
gint gpu_id
GPU device ID on which the device buffers have been allocated.
Definition: gstnvdsinfer.h:87
NvDsInferTensorMeta::priv_data
void * priv_data
Private data used for the meta producer's internal memory management.
Definition: gstnvdsinfer.h:89
NvDsInferNetworkInfo
Holds information about the model network.
Definition: nvdsinfer.h:112
NvDsInferSegmentationMeta::width
guint width
Width of the segmentation output class map.
Definition: gstnvdsinfer.h:115
NvDsInferLayerInfo
Holds information about one layer in the model.
Definition: nvdsinfer.h:89
NvDsInferSegmentationMeta
Holds the segmentation model output information for one frame / one object.
Definition: gstnvdsinfer.h:110
NvDsInferTensorMeta::output_layers_info
NvDsInferLayerInfo * output_layers_info
Pointer to the array containing information for the bound output layers.
Definition: gstnvdsinfer.h:81
NvDsInferSegmentationMeta::unique_id
gint unique_id
Unique ID of the gst-nvinfer instance which attached this meta.
Definition: gstnvdsinfer.h:127
nvdsinfer.h
NvDsInferSegmentationMeta::class_probabilities_map
gfloat * class_probabilities_map
Pointer to the raw array containing the probabilities.
Definition: gstnvdsinfer.h:123
GstBuffer
struct _GstBuffer GstBuffer
Definition: idatatype.h:19
NvDsInferSegmentationMeta::height
guint height
Height of the segmentation output class map.
Definition: gstnvdsinfer.h:117
NvDsInferSegmentationMeta::class_map
gint * class_map
Pointer to the array for 2D pixel class map.
Definition: gstnvdsinfer.h:120
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: gstnvdsinfer.h:58