NVIDIA DeepStream SDK API Reference

7.0 Release
gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2021-2022 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 #ifndef __NVDSPREPROCESS_META_H__
29 #define __NVDSPREPROCESS_META_H__
30 
31 #include <vector>
32 #include <string>
33 #include "nvbufsurface.h"
34 #include "nvds_roi_meta.h"
35 
40 typedef struct
41 {
44 
46  guint64 buffer_size;
47 
49  std::vector<int> tensor_shape;
50 
53 
55  std::string tensor_name;
56 
58  guint gpu_id;
59 
61  void *private_data;
62 
64  guint meta_id;
65 
67 
72 typedef struct
73 {
75  std::vector<guint64> target_unique_ids;
76 
79 
81  std::vector<NvDsRoiMeta> roi_vector;
82 
84  void *private_data;
85 
87 
88 #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:52
NvDsPreProcessTensorMeta::gpu_id
guint gpu_id
gpu-id on which tensor prepared
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:58
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:75
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:64
GstNvDsPreProcessBatchMeta::roi_vector
std::vector< NvDsRoiMeta > roi_vector
list of roi vectors per batch
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:81
NvDsPreProcessTensorMeta::tensor_name
std::string tensor_name
to be same as model input layer name
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:55
GstNvDsPreProcessBatchMeta::private_data
void * private_data
pointer to buffer from scaling pool
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:84
NvDsPreProcessTensorMeta::tensor_shape
std::vector< int > tensor_shape
raw tensor buffer shape
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:49
NvDsPreProcessTensorMeta::buffer_size
guint64 buffer_size
size of raw tensor buffer
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:46
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:40
NvDsPreProcessTensorMeta::raw_tensor_buffer
void * raw_tensor_buffer
raw tensor buffer preprocessed for infer
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:43
NvDsPreProcessTensorMeta::private_data
void * private_data
pointer to buffer from tensor pool
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:61
GstNvDsPreProcessBatchMeta::tensor_meta
NvDsPreProcessTensorMeta * tensor_meta
pointer to tensor meta
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:78
nvbufsurface.h
NvDsDataType
NvDsDataType
Data type used for model in infer.
Definition: nvds_roi_meta.h:54
GstNvDsPreProcessBatchMeta
preprocess meta as a user meta which is attached at batch level
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_meta.h:72