NVIDIA DeepStream SDK API Reference

9.1 Release
sources/includes/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 {
48  void *raw_tensor_buffer;
49 
51  guint64 buffer_size;
52 
54  std::vector<int> tensor_shape;
55 
57  NvDsDataType data_type;
58 
60  std::string tensor_name;
61 
63  guint gpu_id;
64 
66  void *private_data;
67 
69  guint meta_id;
70 
72  gboolean maintain_aspect_ratio;
74 
79 typedef struct
80 {
82  std::vector<guint64> target_unique_ids;
83 
85  NvDsPreProcessTensorMeta *tensor_meta;
86 
88  std::vector<NvDsRoiMeta> roi_vector;
89 
91  void *private_data;
92 
94 
95 #endif /* __NVDSPREPROCESS_META_H__ */
nvbufsurface.h
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
nvds_roi_meta.h
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