NVIDIA DeepStream SDK API Reference

6.3 Release
gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20  * DEALINGS IN THE SOFTWARE.
21  */
22 
38 #ifndef __NVDSPREPROCESS_META_H__
39 #define __NVDSPREPROCESS_META_H__
40 
41 #include <vector>
42 #include <string>
43 #include "nvbufsurface.h"
44 #include "nvds_roi_meta.h"
45 
50 typedef struct
51 {
54 
56  guint64 buffer_size;
57 
59  std::vector<int> tensor_shape;
60 
63 
65  std::string tensor_name;
66 
68  guint gpu_id;
69 
71  void *private_data;
72 
74  guint meta_id;
75 
77 
82 typedef struct
83 {
85  std::vector<guint64> target_unique_ids;
86 
89 
91  std::vector<NvDsRoiMeta> roi_vector;
92 
94  void *private_data;
95 
97 
98 #endif /* __NVDSPREPROCESS_META_H__ */
NvDsPreProcessTensorMeta::data_type
NvDsDataType data_type
model datatype for which tensor prepared
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:62
NvDsPreProcessTensorMeta::gpu_id
guint gpu_id
gpu-id on which tensor prepared
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:68
GstNvDsPreProcessBatchMeta::target_unique_ids
std::vector< guint64 > target_unique_ids
target unique ids for which meta is prepared
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:85
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: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:74
GstNvDsPreProcessBatchMeta::roi_vector
std::vector< NvDsRoiMeta > roi_vector
list of roi vectors per batch
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:91
NvDsPreProcessTensorMeta::tensor_name
std::string tensor_name
to be same as model input layer name
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:65
GstNvDsPreProcessBatchMeta::private_data
void * private_data
pointer to buffer from scaling pool
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:94
NvDsPreProcessTensorMeta::tensor_shape
std::vector< int > tensor_shape
raw tensor buffer shape
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:59
NvDsPreProcessTensorMeta::buffer_size
guint64 buffer_size
size of raw tensor buffer
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:56
nvds_roi_meta.h
NvDsPreProcessTensorMeta
tensor meta containing prepared tensor and related info inside preprocess user meta which is attached...
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:50
NvDsPreProcessTensorMeta::raw_tensor_buffer
void * raw_tensor_buffer
raw tensor buffer preprocessed for infer
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:53
NvDsPreProcessTensorMeta::private_data
void * private_data
pointer to buffer from tensor pool
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:71
GstNvDsPreProcessBatchMeta::tensor_meta
NvDsPreProcessTensorMeta * tensor_meta
pointer to tensor meta
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:88
nvbufsurface.h
NvDsDataType
NvDsDataType
Data type used for model in infer.
Definition: nvds_roi_meta.h:64
GstNvDsPreProcessBatchMeta
preprocess meta as a user meta which is attached at batch level
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:82