38 #ifndef __NVDSPREPROCESS_INTERFACE_H__
39 #define __NVDSPREPROCESS_INTERFACE_H__
42 #include <cuda_runtime.h>
48 #include "nvtx3/nvToolsExt.h"
49 #include <unordered_map>
146 guint64 buffer_size = 1;
232 guint batch_index = 0;
234 gulong frame_num = 0;
241 gpointer converted_frame_ptr =
nullptr;
253 std::vector<NvDsPreProcessUnit>
units;
255 GstBuffer *inbuf =
nullptr;
257 gulong inbuf_batch_num = 0;
262 gboolean push_buffer = FALSE;
266 gboolean event_marker = FALSE;
268 GstBuffer *converted_buf =
nullptr;
276 nvtxRangeId_t nvtx_complete_buf_range = 0;
279 #endif //__NVDSPREPROCESS_INTERFACE_H__
unsigned int height
Holds the input height for the model.
class for acquiring and releasing a buffer from tensor pool by custom lib.
NvDsRoiMeta roi_meta
New meta for rois provided.
Specifies 32-bit interleaved R-G-B-A format.
struct NvBufSurfTransformSyncObj * NvBufSurfTransformSyncObj_t
Holds the information about synchronization objects for asynchronous transform/composite APIs...
Specifies NHWC network input order.
Custom Initialization parameter for custom library.
void * memory_ptr
memory ptr where to store prepared tensor
NvDsPreProcessFormat scaling_pool_format
scaling pool color format
uint32_t pitch
Holds the pitch of the buffer.
NvDsDataType
Data type used for model in infer.
unsigned int channels
Holds the number of input channels for the model.
std::string tensor_name
Name of the tensor same as input layer name of model.
Holds information about a single buffer in a batch.
gchar * config_file_path
nvdspreprocess config file path
NvDsPreprocess operation succeeded.
std::vector< NvDsPreProcessUnit > units
Vector of units in the batch.
Invalid parameters were supplied.
Custom Tensor Preparation failed.
NvDsPreProcessFormat network_color_format
Holds the network input format.
Specifies 24-bit interleaved B-G-R format.
Tensor Yet not ready to be attached as meta.
virtual NvDsPreProcessCustomBuf * acquire()=0
NvDsPreProcessTensorParams params
tensor params from plugin
std::vector< int > network_input_shape
Hold the network shape - interpreted based on network input order For resnet10 : NCHW = infer-batch-s...
NvDsBatchMeta * batch_meta
Deepstream batch meta.
NvDsDataType data_type
DataType for tensor formation.
Specifies any other custom input order handled by custom lib.
struct CustomCtx CustomCtx
Holds model parameters for tensor preparation.
virtual gboolean release(NvDsPreProcessCustomBuf *)=0
NvBufSurfaceMemType memory_type
Memory Type for tensor formation.
NvDsPreProcessStatus
Enum for the status codes returned by NvDsPreProcessImpl.
NvDsPreProcessNetworkInputOrder network_input_order
network order at which model will work
unsigned int width
Holds the input width for the model.
Specifies 8-bit Luma format.
CustomSeqProcTensorParams seq_params
Additional Custom Parameters.
Specifies 24-bit interleaved R-G-B format.
Tensor params passed to custom library for tensor preparation.
Specifies 32-bit interleaved B-G-R-x format.
NvDsPreProcessFormat
Defines model color formats.
NvBufSurfaceMemType
Specifies memory types for NvBufSurface.
CUDA error was encountered.
Holds information about the model network.
Tensor params for Custom sequence processing for 3d conv network.
Holds information about the batch of frames to be inferred.
NvDsPreProcessTensorParams tensor_params
tensor params from read from config file
Custom Library interface implementation failed.
std::vector< NvDsRoiMeta > roi_vector
vector of rois which can be modified by custom lib
Specifies NCHW network input order.
TensorRT interface failed.
Custom Group Transformation failed.
Custom Buffer passed to the custom lib for preparing tensor.
A preprocess unit for processing which can be Frame/ROI.
Resource error was encountered.
NvDsPreProcessNetworkInputOrder
Enum for the network input order according to which network shape will be provided to prepare raw ten...
std::unordered_map< std::string, std::string > user_configs
User config map key-value pair.
Failed to configure the tensor_impl instance possibly due to an erroneous initialization property...