|
NVIDIA DeepStream SDK API Reference
|
6.2 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>
149 guint64 buffer_size = 1;
239 guint batch_index = 0;
241 gulong frame_num = 0;
248 gpointer converted_frame_ptr =
nullptr;
260 std::vector<NvDsPreProcessUnit>
units;
264 GstBuffer *inbuf =
nullptr;
266 gulong inbuf_batch_num = 0;
271 gboolean push_buffer = FALSE;
275 gboolean event_marker = FALSE;
277 GstBuffer *converted_buf =
nullptr;
285 nvtxRangeId_t nvtx_complete_buf_range = 0;
288 #endif //__NVDSPREPROCESS_INTERFACE_H__
@ NvDsPreProcessFormat_Unknown
NvDsDataType data_type
DataType for tensor formation.
Custom Initialization parameter for custom library.
NvDsPreProcessNetworkInputOrder network_input_order
network order at which model will work
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
NvDsRoiMeta roi_meta
New meta for rois provided.
@ 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.
gchar * config_file_path
nvdspreprocess config file path
std::vector< NvBufSurfTransformSyncObj_t > sync_objects
Vector of sync objects for async transformation of the batch.
NvDsBatchMeta * batch_meta
Deepstream batch meta.
@ NvDsPreProcessFormat_RGBA
Specifies 32-bit interleaved R-G-B-A format.
std::vector< NvDsRoiMeta > roi_vector
vector of rois which can be modified by custom lib
unsigned int height
Holds the input height for the model.
@ 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.
NvDsPreProcessFormat network_color_format
Holds the network input format.
NvBufSurfaceMemType memory_type
Memory Type for tensor formation.
CustomSeqProcTensorParams seq_params
Additional Custom Parameters.
Hold the information of single buffer in the batch.
@ NvDsPreProcessFormat_Tensor
NCHW planar.
uint32_t pitch
Holds the pitch of the buffer.
@ NVDSPREPROCESS_CUSTOM_TENSOR_FAILED
Custom Tensor Preparation failed.
A preprocess unit for processing which can be Frame/ROI.
unsigned int width
Holds the input width for the model.
void * memory_ptr
memory ptr where to store prepared tensor
@ NVDSPREPROCESS_TENSORRT_ERROR
TensorRT interface failed.
Tensor params passed to custom library for tensor preparation.
std::vector< NvDsPreProcessUnit > units
Vector of units in the batch.
@ NVDSPREPROCESS_CUSTOM_TRANSFORMATION_FAILED
Custom Group Transformation failed.
NvDsPreProcessFormat scaling_pool_format
scaling pool color format
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.
NvDsPreProcessTensorParams tensor_params
tensor params from read from config file
Holds model parameters for tensor preparation.
NvDsPreProcessTensorParams params
tensor params from plugin
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.
guint unique_id
unique id of the preprocess plugin
@ NvDsPreProcessNetworkInputOrder_kNCHW
Specifies NCHW network input order.
std::string tensor_name
Name of the tensor same as input layer name of model.
unsigned int channels
Holds the number of input channels for the model.
@ 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.
std::unordered_map< std::string, std::string > user_configs
User config map key-value pair.
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.
std::vector< int > network_input_shape
Hold the network shape - interpreted based on network input order For resnet10 : NCHW = infer-batch-s...