NVIDIA DeepStream SDK API Reference

6.1.1 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvdspreprocess_meta.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021, 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 
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__ */
void * private_data
pointer to buffer from scaling pool
void * private_data
pointer to buffer from tensor pool
NvBufSurface Interface
std::vector< guint64 > target_unique_ids
target unique ids for which meta is prepared
NVIDIA GStreamer DeepStream: ROI Meta used in nvdspreprocess plugin
std::vector< NvDsRoiMeta > roi_vector
list of roi vectors per batch
void * raw_tensor_buffer
raw tensor buffer preprocessed for infer
NvDsDataType
Data type used for model in infer.
Definition: nvds_roi_meta.h:61
NvDsDataType data_type
model datatype for which tensor prepared
guint gpu_id
gpu-id on which tensor prepared
std::string tensor_name
to be same as model input layer name
guint64 buffer_size
size of raw tensor buffer
tensor meta containing prepared tensor and related info inside preprocess user meta which is attached...
NvDsPreProcessTensorMeta * tensor_meta
pointer to tensor meta
preprocess meta as a user meta which is attached at batch level
std::vector< int > tensor_shape
raw tensor buffer shape