|
NVIDIA DeepStream SDK API Reference
|
6.3 Release
|
Go to the documentation of this file.
38 #ifndef __NVDSPREPROCESS_INTERFACE_H__
39 #define __NVDSPREPROCESS_INTERFACE_H__
42 #include <cuda_runtime.h>
48 #include "nvtx3/nvToolsExt.h"
49 #include <unordered_map>
145 std::vector<int> network_input_shape;
149 guint64 buffer_size = 1;
155 std::string tensor_name;
168 unsigned int channels;
177 std::vector<NvDsRoiMeta> roi_vector;
201 std::unordered_map <std::string, std::string> user_configs;
203 gchar *config_file_path;
239 guint batch_index = 0;
241 gulong frame_num = 0;
248 gpointer converted_frame_ptr =
nullptr;
260 std::vector<NvDsPreProcessUnit> units;
262 std::vector<NvBufSurfTransformSyncObj_t> sync_objects;
266 gulong inbuf_batch_num = 0;
271 gboolean push_buffer = FALSE;
275 gboolean event_marker = FALSE;
285 nvtxRangeId_t nvtx_complete_buf_range = 0;
288 #endif //__NVDSPREPROCESS_INTERFACE_H__
@ NvDsPreProcessFormat_Unknown
Custom Initialization parameter for custom library.
struct NvBufSurfTransformSyncObj * NvBufSurfTransformSyncObj_t
Holds the information about synchronization objects for asynchronous transform/composite APIs.
@ NVDSPREPROCESS_CUSTOM_LIB_FAILED
Custom Library interface implementation failed.
virtual gboolean release(NvDsPreProcessCustomBuf *)=0
method to release buffer from buffer pool
@ NVDSPREPROCESS_CONFIG_FAILED
Failed to configure the tensor_impl instance possibly due to an erroneous initialization property.
@ NvDsPreProcessFormat_RGB
Specifies 24-bit interleaved R-G-B format.
@ NvDsPreProcessNetworkInputOrder_kNHWC
Specifies NHWC network input order.
Holds information about the model network.
@ NVDSPREPROCESS_TENSOR_NOT_READY
Tensor Yet not ready to be attached as meta.
@ NVDSPREPROCESS_RESOURCE_ERROR
Resource error was encountered.
Holds information about the batch of frames to be inferred.
@ NvDsPreProcessFormat_RGBA
Specifies 32-bit interleaved R-G-B-A format.
@ NvDsPreProcessFormat_GRAY
Specifies 8-bit Luma format.
@ NVDSPREPROCESS_INVALID_PARAMS
Invalid parameters were supplied.
NvDsPreProcessStatus
Enum for the status codes returned by NvDsPreProcessImpl.
@ NVDSPREPROCESS_SUCCESS
NvDsPreprocess operation succeeded.
Hold the information of single buffer in the batch.
@ NvDsPreProcessFormat_Tensor
NCHW planar.
@ NVDSPREPROCESS_CUSTOM_TENSOR_FAILED
Custom Tensor Preparation failed.
A preprocess unit for processing which can be Frame/ROI.
@ NVDSPREPROCESS_TENSORRT_ERROR
TensorRT interface failed.
Tensor params passed to custom library for tensor preparation.
@ NVDSPREPROCESS_CUSTOM_TRANSFORMATION_FAILED
Custom Group Transformation failed.
Custom Buffer passed to the custom lib for preparing tensor.
class for acquiring and releasing a buffer from tensor pool by custom lib.
NvBufSurfaceMemType
Specifies memory types for NvBufSurface.
Holds model parameters for tensor preparation.
NvDsPreProcessNetworkInputOrder
Enum for the network input order according to which network shape will be provided to prepare raw ten...
@ NvDsPreProcessFormat_BGRx
Specifies 32-bit interleaved B-G-R-x format.
struct _GstBuffer GstBuffer
@ NvDsPreProcessNetworkInputOrder_kNCHW
Specifies NCHW network input order.
@ NvDsPreProcessNetworkInputOrder_CUSTOM
Specifies any other custom input order handled by custom lib.
struct CustomCtx CustomCtx
Context for custom library.
@ NvDsPreProcessFormat_BGR
Specifies 24-bit interleaved B-G-R format.
@ NVDSPREPROCESS_OUTPUT_PARSING_FAILED
Output parsing failed.
NvDsPreProcessFormat
Defines model color formats.
@ NVDSPREPROCESS_CUDA_ERROR
CUDA error was encountered.
virtual NvDsPreProcessCustomBuf * acquire()=0
method to acquire a buffer from buffer pool
NvDsDataType
Data type used for model in infer.
Tensor params for Custom sequence processing for 3d conv network.
void * memory_ptr
memory ptr where to store prepared tensor