NVIDIA DeepStream SDK API Reference

6.4 Release
nvdspreprocess_property_parser.h File Reference

Go to the source code of this file.

Macros

#define _PATH_MAX   4096
 Copyright (c) 2021-2022, NVIDIA CORPORATION. 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_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

Copyright (c) 2021-2022, NVIDIA CORPORATION.

All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. This file describes the Macro defined for config file property parser. max string length

Definition at line 34 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP

#define NVDSPREPROCESS_GROUP   "group-"

Definition at line 65 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 70 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_DRAW_ROI

#define NVDSPREPROCESS_GROUP_DRAW_ROI   "draw-roi"

Definition at line 71 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_OBJECT_MAX_HEIGHT

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

Definition at line 80 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_OBJECT_MAX_WIDTH

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

Definition at line 79 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_OBJECT_MIN_HEIGHT

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

Definition at line 78 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 77 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 73 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 68 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_PROCESS_ON_ROI

#define NVDSPREPROCESS_GROUP_PROCESS_ON_ROI   "process-on-roi"

Definition at line 67 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_ROI_COLOR

#define NVDSPREPROCESS_GROUP_ROI_COLOR   "roi-color"

Definition at line 72 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_ROI_PARAMS_SRC

#define NVDSPREPROCESS_GROUP_ROI_PARAMS_SRC   "roi-params-src"

Definition at line 69 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_GROUP_SRC_IDS

#define NVDSPREPROCESS_GROUP_SRC_IDS   "src-ids"

Definition at line 66 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY

#define NVDSPREPROCESS_PROPERTY   "property"

Definition at line 36 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_CUSTOM_LIB_NAME

#define NVDSPREPROCESS_PROPERTY_CUSTOM_LIB_NAME   "custom-lib-path"

Definition at line 60 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_ENABLE

#define NVDSPREPROCESS_PROPERTY_ENABLE   "enable"

Definition at line 39 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 38 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_GPU_ID

#define NVDSPREPROCESS_PROPERTY_GPU_ID   "gpu-id"

Definition at line 41 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_MAINTAIN_ASPECT_RATIO

#define NVDSPREPROCESS_PROPERTY_MAINTAIN_ASPECT_RATIO   "maintain-aspect-ratio"

Definition at line 45 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_NETWORK_COLOR_FORMAT

#define NVDSPREPROCESS_PROPERTY_NETWORK_COLOR_FORMAT   "network-color-format"

Definition at line 56 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_NETWORK_INPUT_ORDER

#define NVDSPREPROCESS_PROPERTY_NETWORK_INPUT_ORDER   "network-input-order"

Definition at line 54 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_NETWORK_SHAPE

#define NVDSPREPROCESS_PROPERTY_NETWORK_SHAPE   "network-input-shape"

Definition at line 55 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_PROCESS_ON_FRAME

#define NVDSPREPROCESS_PROPERTY_PROCESS_ON_FRAME   "process-on-frame"

Definition at line 42 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_PROCESSING_HEIGHT

#define NVDSPREPROCESS_PROPERTY_PROCESSING_HEIGHT   "processing-height"

Definition at line 44 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_PROCESSING_WIDTH

#define NVDSPREPROCESS_PROPERTY_PROCESSING_WIDTH   "processing-width"

Definition at line 43 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 49 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_SCALING_FILTER

#define NVDSPREPROCESS_PROPERTY_SCALING_FILTER   "scaling-filter"

Definition at line 50 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 51 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 52 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_SYMMETRIC_PADDING

#define NVDSPREPROCESS_PROPERTY_SYMMETRIC_PADDING   "symmetric-padding"

Definition at line 46 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_TARGET_IDS

#define NVDSPREPROCESS_PROPERTY_TARGET_IDS   "target-unique-ids"

Definition at line 37 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 47 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_TENSOR_DATA_TYPE

#define NVDSPREPROCESS_PROPERTY_TENSOR_DATA_TYPE   "tensor-data-type"

Definition at line 57 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_TENSOR_NAME

#define NVDSPREPROCESS_PROPERTY_TENSOR_NAME   "tensor-name"

Definition at line 58 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_TENSOR_PREPARATION_FUNCTION

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

Definition at line 61 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_PROPERTY_UNIQUE_ID

#define NVDSPREPROCESS_PROPERTY_UNIQUE_ID   "unique-id"

Definition at line 40 of file nvdspreprocess_property_parser.h.

◆ NVDSPREPROCESS_USER_CONFIGS

#define NVDSPREPROCESS_USER_CONFIGS   "user-configs"

Definition at line 63 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