NVIDIA DeepStream SDK API Reference

9.1 Release
sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2021-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 #ifndef __NVDSPREPROCESS_META_H__
34 #define __NVDSPREPROCESS_META_H__
35 
36 #include <vector>
37 #include <string>
38 #include "nvbufsurface.h"
39 #include "nvds_roi_meta.h"
40 
45 typedef struct
46 {
49 
51  guint64 buffer_size;
52 
54  std::vector<int> tensor_shape;
55 
58 
60  std::string tensor_name;
61 
63  guint gpu_id;
64 
66  void *private_data;
67 
69  guint meta_id;
70 
74 
79 typedef struct
80 {
82  std::vector<guint64> target_unique_ids;
83 
86 
88  std::vector<NvDsRoiMeta> roi_vector;
89 
91  void *private_data;
92 
94 
95 #endif /* __NVDSPREPROCESS_META_H__ */
NvDsPreProcessTensorMeta::data_type
NvDsDataType data_type
model datatype for which tensor prepared
Definition: sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:57
NvDsPreProcessTensorMeta::gpu_id
guint gpu_id
gpu-id on which tensor prepared
Definition: sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:63
GstNvDsPreProcessBatchMeta::target_unique_ids
std::vector< guint64 > target_unique_ids
target unique ids for which meta is prepared
Definition: sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:82
NvDsPreProcessTensorMeta::meta_id
guint meta_id
meta id for differentiating between multiple tensor meta from same gst buffer,for the case when sum o...
Definition: sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:69
GstNvDsPreProcessBatchMeta::roi_vector
std::vector< NvDsRoiMeta > roi_vector
list of roi vectors per batch
Definition: sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:88
NvDsPreProcessTensorMeta::tensor_name
std::string tensor_name
to be same as model input layer name
Definition: sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:60
GstNvDsPreProcessBatchMeta::private_data
void * private_data
pointer to buffer from scaling pool
Definition: sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:91
NvDsPreProcessTensorMeta::tensor_shape
std::vector< int > tensor_shape
raw tensor buffer shape
Definition: sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:54
NvDsPreProcessTensorMeta::buffer_size
guint64 buffer_size
size of raw tensor buffer
Definition: sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:51
NvDsPreProcessTensorMeta::maintain_aspect_ratio
gboolean maintain_aspect_ratio
parameter to inform whether aspect ratio is maintained in the preprocess tensor
Definition: sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:72
NvDsPreProcessTensorMeta
tensor meta containing prepared tensor and related info inside preprocess user meta which is attached...
Definition: sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:45
NvDsPreProcessTensorMeta::raw_tensor_buffer
void * raw_tensor_buffer
raw tensor buffer preprocessed for infer
Definition: sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:48
NvDsPreProcessTensorMeta::private_data
void * private_data
pointer to buffer from tensor pool
Definition: sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:66
GstNvDsPreProcessBatchMeta::tensor_meta
NvDsPreProcessTensorMeta * tensor_meta
pointer to tensor meta
Definition: sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:85
NvDsDataType
NvDsDataType
Data type used for model in infer.
Definition: sources/includes/nvds_roi_meta.h:59
GstNvDsPreProcessBatchMeta
preprocess meta as a user meta which is attached at batch level
Definition: sources/gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:79