NVIDIA DeepStream SDK API Reference

9.0 Release
_GstNvInfer Struct Reference

Detailed Description

GstNvInfer element structure.

Definition at line 178 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

Collaboration diagram for _GstNvInfer:

Data Fields

GstBaseTransform base_trans
 Should be the first member when extending from GstBaseTransform. More...
 
gboolean config_file_parse_successful
 Boolean indicating if the config parsing was successful. More...
 
guint max_batch_size
 Maximum batch size. More...
 
guint unique_id
 Unique ID of the element. More...
 
GstBufferPool * pool
 Internal buffer pool for memory required for scaling input frames and cropping object. More...
 
GQueue * process_queue
 Processing Queue and related synchronization structures. More...
 
GMutex process_lock
 
GCond process_cond
 
GQueue * input_queue
 
GThread * output_thread
 Output thread. More...
 
GThread * input_queue_thread
 
gboolean stop
 Boolean to signal output thread to stop. More...
 
gint network_width
 Network input resolution. More...
 
gint network_height
 
gboolean process_full_frame
 Boolean indicating if entire frame should be inferred or crop objects based on metadata recieved from the primary detector. More...
 
gchar * config_file_path
 Path to the configuration file for this instance of gst-nvinfer. More...
 
GstFlowReturn last_flow_ret
 GstFlowReturn returned by the latest buffer pad push. More...
 
guint gpu_id
 ID of the GPU this element uses for conversions / inference. More...
 
cudaStream_t convertStream
 Cuda Stream to launch npp operations on. More...
 
gboolean input_tensor_from_meta
 
gboolean clip_object_outside_roi
 Clip the object bounding-box which lies outside the roi specified by nvdspreprosess plugin. More...
 
gboolean maintain_aspect_ratio
 Boolean indicating if aspect ratio should be maintained when scaling to network resolution. More...
 
gboolean symmetric_padding
 Boolean indicating which padding to be used when scaling to network resolution. More...
 
std::vector< GstNvInferDetectionFilterParams > * perClassDetectionFilterParams
 Vector for per-class detection filtering parameters. More...
 
std::vector< GstNvInferColorParams > * perClassColorParams
 Vector for per-class color parameters. More...
 
guint interval
 Batch interval for full-frame processing. More...
 
guint interval_counter
 
guint secondary_reinfer_interval
 Frame interval after which objects should be reinferred on. More...
 
guint min_input_object_width
 Input object size-based filtering parameters for object processing mode. More...
 
guint min_input_object_height
 
guint max_input_object_width
 
guint max_input_object_height
 
gint operate_on_gie_id
 Source GIE ID and class-id based filtering parameters for object processing mode. More...
 
std::vector< gboolean > * operate_on_class_ids
 
std::set< uint > * filter_out_class_ids
 
std::unordered_map< gint, GstNvInferSourceInfo > * source_info
 Per source information. More...
 
gulong last_map_cleanup_frame_num
 
gulong current_batch_num
 Current batch number of the input batch. More...
 
gboolean classifier_async_mode
 Boolean indicating if the secondary classifier should run in asynchronous mode. More...
 
gchar * classifier_type
 String containing the type of classifier. More...
 
NvDsInferNetworkInfo network_info
 Network input information. More...
 
std::vector< NvDsInferLayerInfo > * layers_info
 Vector of bound layers information. More...
 
std::vector< NvDsInferLayerInfo > * output_layers_info
 Vector of bound output layers information. More...
 
gboolean write_raw_buffers_to_file
 Boolean indicating if the bound buffer contents should be written to file. More...
 
guint64 file_write_batch_num
 Batch counter for writing buffer contents to file. More...
 
gst_nvinfer_raw_output_generated_callback output_generated_callback
 Pointer to the callback function and userdata for application access to the bound buffer contents. More...
 
gpointer output_generated_userdata
 
std::vector< gboolean > * is_prop_set
 Vector of booleans indicating if properties have been set through GObject set method. More...
 
NvBufSurfTransformConfigParams transform_config_params
 Config params required by NvBufSurfTransform API. More...
 
NvBufSurfTransformParams transform_params
 Parameters to use for transforming buffers. More...
 
NvBufSurface tmp_surf
 Temporary NvBufSurface for batched transformations. More...
 
gboolean output_tensor_meta
 Boolean indicating if tensor outputs should be attached as meta on GstBuffers. More...
 
gboolean output_instance_mask
 Boolean indicating if instance masks are expected in output and has to be attached in metadata. More...
 
GstClockTime untracked_object_warn_pts
 PTS of input buffer when nvinfer last posted the warning about untracked object. More...
 
nvtxDomainHandle_t nvtx_domain
 NVTX Domain. More...
 
gboolean crop_objects_to_roi_boundary
 
gchar * dynamic_properties_string
 Dynamic properties storage as string for flexible parameter passing. More...
 
guint stabilize_buffer_count
 Number of initial buffers to pass through without inference (pipeline stabilization). More...
 
GstNvInferImplimpl
 

Field Documentation

◆ base_trans

GstBaseTransform _GstNvInfer::base_trans

Should be the first member when extending from GstBaseTransform.

Definition at line 181 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ classifier_async_mode

gboolean _GstNvInfer::classifier_async_mode

Boolean indicating if the secondary classifier should run in asynchronous mode.

Definition at line 282 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ classifier_type

gchar * _GstNvInfer::classifier_type

String containing the type of classifier.

Definition at line 285 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ clip_object_outside_roi

gboolean _GstNvInfer::clip_object_outside_roi

Clip the object bounding-box which lies outside the roi specified by nvdspreprosess plugin.

Definition at line 239 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ config_file_parse_successful

gboolean _GstNvInfer::config_file_parse_successful

Boolean indicating if the config parsing was successful.

Definition at line 184 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ config_file_path

gchar * _GstNvInfer::config_file_path

Path to the configuration file for this instance of gst-nvinfer.

Definition at line 225 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ convertStream

cudaStream_t _GstNvInfer::convertStream

Cuda Stream to launch npp operations on.

Definition at line 234 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ crop_objects_to_roi_boundary

gboolean _GstNvInfer::crop_objects_to_roi_boundary

◆ current_batch_num

gulong _GstNvInfer::current_batch_num

Current batch number of the input batch.

Definition at line 279 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ dynamic_properties_string

gchar * _GstNvInfer::dynamic_properties_string

Dynamic properties storage as string for flexible parameter passing.

Definition at line 339 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ file_write_batch_num

guint64 _GstNvInfer::file_write_batch_num

Batch counter for writing buffer contents to file.

Definition at line 300 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ filter_out_class_ids

std::set< uint > * _GstNvInfer::filter_out_class_ids

◆ gpu_id

guint _GstNvInfer::gpu_id

ID of the GPU this element uses for conversions / inference.

Definition at line 231 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ impl

GstNvInferImpl * _GstNvInfer::impl

◆ input_queue

GQueue * _GstNvInfer::input_queue

◆ input_queue_thread

GThread * _GstNvInfer::input_queue_thread

◆ input_tensor_from_meta

gboolean _GstNvInfer::input_tensor_from_meta

◆ interval

guint _GstNvInfer::interval

Batch interval for full-frame processing.

Definition at line 257 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ interval_counter

guint _GstNvInfer::interval_counter

◆ is_prop_set

std::vector< gboolean > * _GstNvInfer::is_prop_set

Vector of booleans indicating if properties have been set through GObject set method.

Definition at line 309 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ last_flow_ret

GstFlowReturn _GstNvInfer::last_flow_ret

GstFlowReturn returned by the latest buffer pad push.

Definition at line 228 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ last_map_cleanup_frame_num

gulong _GstNvInfer::last_map_cleanup_frame_num

◆ layers_info

std::vector< NvDsInferLayerInfo > * _GstNvInfer::layers_info

Vector of bound layers information.

Definition at line 291 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ maintain_aspect_ratio

gboolean _GstNvInfer::maintain_aspect_ratio

Boolean indicating if aspect ratio should be maintained when scaling to network resolution.

Right/bottom areas will be filled with black areas.

Definition at line 243 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ max_batch_size

guint _GstNvInfer::max_batch_size

Maximum batch size.

Definition at line 187 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ max_input_object_height

guint _GstNvInfer::max_input_object_height

◆ max_input_object_width

guint _GstNvInfer::max_input_object_width

◆ min_input_object_height

guint _GstNvInfer::min_input_object_height

◆ min_input_object_width

guint _GstNvInfer::min_input_object_width

Input object size-based filtering parameters for object processing mode.

Definition at line 264 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ network_height

gint _GstNvInfer::network_height

◆ network_info

NvDsInferNetworkInfo _GstNvInfer::network_info

Network input information.

Definition at line 288 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ network_width

gint _GstNvInfer::network_width

Network input resolution.

Definition at line 217 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ nvtx_domain

nvtxDomainHandle_t _GstNvInfer::nvtx_domain

NVTX Domain.

Definition at line 333 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ operate_on_class_ids

std::vector< gboolean > * _GstNvInfer::operate_on_class_ids

◆ operate_on_gie_id

gint _GstNvInfer::operate_on_gie_id

Source GIE ID and class-id based filtering parameters for object processing mode.

Definition at line 270 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ output_generated_callback

gst_nvinfer_raw_output_generated_callback _GstNvInfer::output_generated_callback

Pointer to the callback function and userdata for application access to the bound buffer contents.

Definition at line 304 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ output_generated_userdata

gpointer _GstNvInfer::output_generated_userdata

◆ output_instance_mask

gboolean _GstNvInfer::output_instance_mask

Boolean indicating if instance masks are expected in output and has to be attached in metadata.

Definition at line 326 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ output_layers_info

std::vector< NvDsInferLayerInfo > * _GstNvInfer::output_layers_info

Vector of bound output layers information.

Definition at line 294 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ output_tensor_meta

gboolean _GstNvInfer::output_tensor_meta

Boolean indicating if tensor outputs should be attached as meta on GstBuffers.

Definition at line 322 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ output_thread

GThread * _GstNvInfer::output_thread

Output thread.

Definition at line 210 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ perClassColorParams

std::vector< GstNvInferColorParams > * _GstNvInfer::perClassColorParams

Vector for per-class color parameters.

Definition at line 254 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ perClassDetectionFilterParams

std::vector< GstNvInferDetectionFilterParams > * _GstNvInfer::perClassDetectionFilterParams

Vector for per-class detection filtering parameters.

Definition at line 251 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ pool

GstBufferPool * _GstNvInfer::pool

Internal buffer pool for memory required for scaling input frames and cropping object.

Definition at line 201 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ process_cond

GCond _GstNvInfer::process_cond

◆ process_full_frame

gboolean _GstNvInfer::process_full_frame

Boolean indicating if entire frame should be inferred or crop objects based on metadata recieved from the primary detector.

Definition at line 222 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ process_lock

GMutex _GstNvInfer::process_lock

◆ process_queue

GQueue * _GstNvInfer::process_queue

Processing Queue and related synchronization structures.

Definition at line 204 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ secondary_reinfer_interval

guint _GstNvInfer::secondary_reinfer_interval

Frame interval after which objects should be reinferred on.

Definition at line 261 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ source_info

std::unordered_map< gint, GstNvInferSourceInfo > * _GstNvInfer::source_info

Per source information.

Definition at line 275 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ stabilize_buffer_count

guint _GstNvInfer::stabilize_buffer_count

Number of initial buffers to pass through without inference (pipeline stabilization).

Default 0. Config: stabilize-buffer-count.

Definition at line 343 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ stop

gboolean _GstNvInfer::stop

Boolean to signal output thread to stop.

Definition at line 214 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ symmetric_padding

gboolean _GstNvInfer::symmetric_padding

Boolean indicating which padding to be used when scaling to network resolution.

Right/bottom areas will be filled with black areas by default. Symmetric padding is used if enabled.

Definition at line 248 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ tmp_surf

NvBufSurface _GstNvInfer::tmp_surf

Temporary NvBufSurface for batched transformations.

Definition at line 318 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ transform_config_params

NvBufSurfTransformConfigParams _GstNvInfer::transform_config_params

Config params required by NvBufSurfTransform API.

Definition at line 312 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ transform_params

NvBufSurfTransformParams _GstNvInfer::transform_params

Parameters to use for transforming buffers.

Definition at line 315 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ unique_id

guint _GstNvInfer::unique_id

Unique ID of the element.

The labels generated by the element will be updated at index unique_id of attr_info array in NvDsObjectParams. For detectors, this value will be assigned to gie_unique_id of NvDsFrameMeta meta structure attached by the element to identify the meta attached by this element.

Definition at line 196 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ untracked_object_warn_pts

GstClockTime _GstNvInfer::untracked_object_warn_pts

PTS of input buffer when nvinfer last posted the warning about untracked object.

Definition at line 330 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.

◆ write_raw_buffers_to_file

gboolean _GstNvInfer::write_raw_buffers_to_file

Boolean indicating if the bound buffer contents should be written to file.

Definition at line 297 of file sources/gst-plugins/gst-nvinfer/gstnvinfer.h.


The documentation for this struct was generated from the following file: