NVIDIA DeepStream SDK API Reference

7.1 Release
nvdspreprocess_property_parser.h File Reference

Go to the source code of this file.

Macros

#define _PATH_MAX   4096
 This file describes the Macro defined for config file property parser. More...
 
#define NVDSPREPROCESS_PROPERTY   "property"
 
#define NVDSPREPROCESS_PROPERTY_TARGET_IDS   "target-unique-ids"
 
#define NVDSPREPROCESS_PROPERTY_GIE_ID_FOR_OPERATION   "operate-on-gie-id"
 
#define NVDSPREPROCESS_PROPERTY_ENABLE   "enable"
 
#define NVDSPREPROCESS_PROPERTY_UNIQUE_ID   "unique-id"
 
#define NVDSPREPROCESS_PROPERTY_GPU_ID   "gpu-id"
 
#define NVDSPREPROCESS_PROPERTY_PROCESS_ON_FRAME   "process-on-frame"
 
#define NVDSPREPROCESS_PROPERTY_PROCESSING_WIDTH   "processing-width"
 
#define NVDSPREPROCESS_PROPERTY_PROCESSING_HEIGHT   "processing-height"
 
#define NVDSPREPROCESS_PROPERTY_MAINTAIN_ASPECT_RATIO   "maintain-aspect-ratio"
 
#define NVDSPREPROCESS_PROPERTY_SYMMETRIC_PADDING   "symmetric-padding"
 
#define NVDSPREPROCESS_PROPERTY_TENSOR_BUF_POOL_SIZE   "tensor-buf-pool-size"
 
#define NVDSPREPROCESS_PROPERTY_SCALING_BUF_POOL_SIZE   "scaling-buf-pool-size"
 
#define NVDSPREPROCESS_PROPERTY_SCALING_FILTER   "scaling-filter"
 
#define NVDSPREPROCESS_PROPERTY_SCALING_POOL_COMPUTE_HW   "scaling-pool-compute-hw"
 
#define NVDSPREPROCESS_PROPERTY_SCALING_POOL_MEMORY_TYPE   "scaling-pool-memory-type"
 
#define NVDSPREPROCESS_PROPERTY_NETWORK_INPUT_ORDER   "network-input-order"
 
#define NVDSPREPROCESS_PROPERTY_NETWORK_SHAPE   "network-input-shape"
 
#define NVDSPREPROCESS_PROPERTY_NETWORK_COLOR_FORMAT   "network-color-format"
 
#define NVDSPREPROCESS_PROPERTY_TENSOR_DATA_TYPE   "tensor-data-type"
 
#define NVDSPREPROCESS_PROPERTY_TENSOR_NAME   "tensor-name"
 
#define NVDSPREPROCESS_PROPERTY_CUSTOM_LIB_NAME   "custom-lib-path"
 
#define NVDSPREPROCESS_PROPERTY_TENSOR_PREPARATION_FUNCTION   "custom-tensor-preparation-function"
 
#define NVDSPREPROCESS_USER_CONFIGS   "user-configs"
 
#define NVDSPREPROCESS_GROUP   "group-"
 
#define NVDSPREPROCESS_GROUP_SRC_IDS   "src-ids"
 
#define NVDSPREPROCESS_GROUP_PROCESS_ON_ROI   "process-on-roi"
 
#define NVDSPREPROCESS_GROUP_PROCESS_ON_ALL_OBJECTS   "process-on-all-objects"
 
#define NVDSPREPROCESS_GROUP_ROI_PARAMS_SRC   "roi-params-src"
 
#define NVDSPREPROCESS_GROUP_CUSTOM_INPUT_PREPROCESS_FUNCTION   "custom-input-transformation-function"
 
#define NVDSPREPROCESS_GROUP_DRAW_ROI   "draw-roi"
 
#define NVDSPREPROCESS_GROUP_ROI_COLOR   "roi-color"
 
#define NVDSPREPROCESS_GROUP_OPERATE_ON_CLASS_IDS   "operate-on-class-ids"
 
#define NVDSPREPROCESS_GROUP_INTERVAL   "interval"
 
#define NVDSPREPROCESS_GROUP_OBJECT_MIN_WIDTH   "input-object-min-width"
 Parameters for filtering objects based min/max size threshold when operating in secondary mode. More...
 
#define NVDSPREPROCESS_GROUP_OBJECT_MIN_HEIGHT   "input-object-min-height"
 
#define NVDSPREPROCESS_GROUP_OBJECT_MAX_WIDTH   "input-object-max-width"
 
#define NVDSPREPROCESS_GROUP_OBJECT_MAX_HEIGHT   "input-object-max-height"
 

Functions

gboolean nvdspreprocess_parse_config_file (GstNvDsPreProcess *nvdspreprocess, gchar *cfg_file_path)
 Get GstNvDsPreProcessMemory structure associated with buffer allocated using GstNvDsPreProcessAllocator. More...
 

Macro Definition Documentation

◆ _PATH_MAX

#define _PATH_MAX   4096

This file describes the Macro defined for config file property parser.

max string length

Definition at line 24 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP

#define NVDSPREPROCESS_GROUP   "group-"

Definition at line 55 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_CUSTOM_INPUT_PREPROCESS_FUNCTION

#define NVDSPREPROCESS_GROUP_CUSTOM_INPUT_PREPROCESS_FUNCTION   "custom-input-transformation-function"

Definition at line 60 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_DRAW_ROI

#define NVDSPREPROCESS_GROUP_DRAW_ROI   "draw-roi"

Definition at line 61 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_INTERVAL

#define NVDSPREPROCESS_GROUP_INTERVAL   "interval"

Definition at line 64 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_OBJECT_MAX_HEIGHT

#define NVDSPREPROCESS_GROUP_OBJECT_MAX_HEIGHT   "input-object-max-height"

Definition at line 71 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_OBJECT_MAX_WIDTH

#define NVDSPREPROCESS_GROUP_OBJECT_MAX_WIDTH   "input-object-max-width"

Definition at line 70 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_OBJECT_MIN_HEIGHT

#define NVDSPREPROCESS_GROUP_OBJECT_MIN_HEIGHT   "input-object-min-height"

Definition at line 69 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_OBJECT_MIN_WIDTH

#define NVDSPREPROCESS_GROUP_OBJECT_MIN_WIDTH   "input-object-min-width"

Parameters for filtering objects based min/max size threshold when operating in secondary mode.

Definition at line 68 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_OPERATE_ON_CLASS_IDS

#define NVDSPREPROCESS_GROUP_OPERATE_ON_CLASS_IDS   "operate-on-class-ids"

Definition at line 63 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_PROCESS_ON_ALL_OBJECTS

#define NVDSPREPROCESS_GROUP_PROCESS_ON_ALL_OBJECTS   "process-on-all-objects"

Definition at line 58 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_PROCESS_ON_ROI

#define NVDSPREPROCESS_GROUP_PROCESS_ON_ROI   "process-on-roi"

Definition at line 57 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_ROI_COLOR

#define NVDSPREPROCESS_GROUP_ROI_COLOR   "roi-color"

Definition at line 62 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_ROI_PARAMS_SRC

#define NVDSPREPROCESS_GROUP_ROI_PARAMS_SRC   "roi-params-src"

Definition at line 59 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_SRC_IDS

#define NVDSPREPROCESS_GROUP_SRC_IDS   "src-ids"

Definition at line 56 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY

#define NVDSPREPROCESS_PROPERTY   "property"

Definition at line 26 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_CUSTOM_LIB_NAME

#define NVDSPREPROCESS_PROPERTY_CUSTOM_LIB_NAME   "custom-lib-path"

Definition at line 50 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_ENABLE

#define NVDSPREPROCESS_PROPERTY_ENABLE   "enable"

Definition at line 29 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_GIE_ID_FOR_OPERATION

#define NVDSPREPROCESS_PROPERTY_GIE_ID_FOR_OPERATION   "operate-on-gie-id"

Definition at line 28 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_GPU_ID

#define NVDSPREPROCESS_PROPERTY_GPU_ID   "gpu-id"

Definition at line 31 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_MAINTAIN_ASPECT_RATIO

#define NVDSPREPROCESS_PROPERTY_MAINTAIN_ASPECT_RATIO   "maintain-aspect-ratio"

Definition at line 35 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_NETWORK_COLOR_FORMAT

#define NVDSPREPROCESS_PROPERTY_NETWORK_COLOR_FORMAT   "network-color-format"

Definition at line 46 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_NETWORK_INPUT_ORDER

#define NVDSPREPROCESS_PROPERTY_NETWORK_INPUT_ORDER   "network-input-order"

Definition at line 44 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_NETWORK_SHAPE

#define NVDSPREPROCESS_PROPERTY_NETWORK_SHAPE   "network-input-shape"

Definition at line 45 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_PROCESS_ON_FRAME

#define NVDSPREPROCESS_PROPERTY_PROCESS_ON_FRAME   "process-on-frame"

Definition at line 32 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_PROCESSING_HEIGHT

#define NVDSPREPROCESS_PROPERTY_PROCESSING_HEIGHT   "processing-height"

Definition at line 34 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_PROCESSING_WIDTH

#define NVDSPREPROCESS_PROPERTY_PROCESSING_WIDTH   "processing-width"

Definition at line 33 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_SCALING_BUF_POOL_SIZE

#define NVDSPREPROCESS_PROPERTY_SCALING_BUF_POOL_SIZE   "scaling-buf-pool-size"

Definition at line 39 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_SCALING_FILTER

#define NVDSPREPROCESS_PROPERTY_SCALING_FILTER   "scaling-filter"

Definition at line 40 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_SCALING_POOL_COMPUTE_HW

#define NVDSPREPROCESS_PROPERTY_SCALING_POOL_COMPUTE_HW   "scaling-pool-compute-hw"

Definition at line 41 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_SCALING_POOL_MEMORY_TYPE

#define NVDSPREPROCESS_PROPERTY_SCALING_POOL_MEMORY_TYPE   "scaling-pool-memory-type"

Definition at line 42 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_SYMMETRIC_PADDING

#define NVDSPREPROCESS_PROPERTY_SYMMETRIC_PADDING   "symmetric-padding"

Definition at line 36 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_TARGET_IDS

#define NVDSPREPROCESS_PROPERTY_TARGET_IDS   "target-unique-ids"

Definition at line 27 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_TENSOR_BUF_POOL_SIZE

#define NVDSPREPROCESS_PROPERTY_TENSOR_BUF_POOL_SIZE   "tensor-buf-pool-size"

Definition at line 37 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_TENSOR_DATA_TYPE

#define NVDSPREPROCESS_PROPERTY_TENSOR_DATA_TYPE   "tensor-data-type"

Definition at line 47 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_TENSOR_NAME

#define NVDSPREPROCESS_PROPERTY_TENSOR_NAME   "tensor-name"

Definition at line 48 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_TENSOR_PREPARATION_FUNCTION

#define NVDSPREPROCESS_PROPERTY_TENSOR_PREPARATION_FUNCTION   "custom-tensor-preparation-function"

Definition at line 51 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_UNIQUE_ID

#define NVDSPREPROCESS_PROPERTY_UNIQUE_ID   "unique-id"

Definition at line 30 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_USER_CONFIGS

#define NVDSPREPROCESS_USER_CONFIGS   "user-configs"

Definition at line 53 of file nvdspreprocess_property_parser.h.

Function Documentation

◆ nvdspreprocess_parse_config_file()

gboolean nvdspreprocess_parse_config_file ( GstNvDsPreProcess nvdspreprocess,
gchar *  cfg_file_path 
)

Get GstNvDsPreProcessMemory structure associated with buffer allocated using GstNvDsPreProcessAllocator.

Parameters
nvdspreprocesspointer to GstNvDsPreProcess structure
cfg_file_pathconfig file path
Returns
boolean denoting if successfully parsed config file