|
|
NVIDIA DeepStream SDK API Reference
|
9.0 Release
|
Go to the documentation of this file.
13 #ifndef __NVGSTDS_APP_H__
14 #define __NVGSTDS_APP_H__
19 #include "deepstream_app_version.h"
20 #include "deepstream_common.h"
21 #include "deepstream_config.h"
22 #include "deepstream_osd.h"
23 #include "deepstream_segvisual.h"
24 #include "deepstream_perf.h"
25 #include "deepstream_preprocess.h"
26 #include "deepstream_primary_gie.h"
27 #include "deepstream_sinks.h"
28 #include "deepstream_sources.h"
29 #include "deepstream_streammux.h"
30 #include "deepstream_tiled_display.h"
31 #include "deepstream_dsanalytics.h"
32 #include "deepstream_dsexample.h"
33 #include "deepstream_tracker.h"
34 #include "deepstream_text_embedder.h"
35 #include "deepstream_visionencoder.h"
36 #include "deepstream_replay.h"
37 #include "deepstream_secondary_gie.h"
38 #include "deepstream_secondary_preprocess.h"
39 #include "deepstream_c2d_msg.h"
40 #include "deepstream_image_save.h"
41 #include "gst-nvdscustommessage.h"
42 #include "gst-nvdscommonconfig.h"
59 gulong all_bbox_buffer_probe_id;
60 gulong primary_bbox_buffer_probe_id;
61 gulong fps_buffer_probe_id;
72 GstElement *text_embedder;
84 gulong primary_bbox_buffer_probe_id;
91 GstElement *tiler_tee;
102 gint pipeline_recreate_sec;
103 gboolean source_list_enabled;
104 gboolean dummy_payload;
105 gboolean custom_ts_to_rfc;
106 gchar *batched_sensor_name;
107 guint total_num_sources;
108 guint num_source_sub_bins;
109 guint num_secondary_gie_sub_bins;
110 guint num_secondary_preprocess_sub_bins;
111 guint num_sink_sub_bins;
112 guint num_message_consumers;
113 guint perf_measurement_interval_sec;
114 guint sgie_batch_size;
115 gboolean extract_sei_type5_data;
117 gboolean low_latency_mode;
118 gchar *bbox_dir_path;
119 gchar *kitti_track_dir_path;
120 gchar *reid_track_dir_path;
121 gchar *terminated_track_output_path;
122 gchar *shadow_track_output_path;
125 gchar **sensor_id_list;
126 gchar **sensor_name_list;
148 gboolean use_nvmultiurisrcbin;
149 gboolean stream_name_display;
150 guint max_batch_size;
153 gboolean source_attr_all_parsed;
157 gboolean enable_error_propagation;
void destroy_pipeline(AppCtx *appCtx)
#define MAX_SECONDARY_GIE_BINS
gboolean(* overlay_graphics_callback)(AppCtx *appCtx, GstBuffer *buf, NvDsBatchMeta *batch_meta, guint index)
bbox_generated_callback all_bbox_generated_cb
REST server application context.
GThread * ota_handler_thread
gboolean create_pipeline(AppCtx *appCtx, bbox_generated_callback bbox_generated_post_analytics_cb, bbox_generated_callback all_bbox_generated_cb, perf_callback perf_cb, overlay_graphics_callback overlay_graphics_cb)
Create DS Anyalytics Pipeline per the appCtx configurations.
Holds information about the latency of a given frame.
void toggle_show_bbox_text(AppCtx *appCtx)
#define MAX_MESSAGE_CONSUMERS
NvDsSensorInfo * get_sensor_info(AppCtx *appCtx, guint source_id)
Function to procure the NvDsSensorInfo for the source_id that was added using the nvmultiurisrcbin RE...
overlay_graphics_callback overlay_graphics_cb
void(* bbox_generated_callback)(AppCtx *appCtx, GstBuffer *buf, NvDsBatchMeta *batch_meta, guint index)
void(* perf_callback)(gpointer ctx, NvDsAppPerfStruct *str)
void msgapi_report_error_and_cleanup(AppCtx *appCtx, const gchar *error_message)
msgapi_report_error_and_cleanup: Generic error reporting function called before application exit.
gchar * last_error
Last error message for error propagation.
NvDsAppPerfStructInt perf_struct
gpointer msgapi_lib_handle
bbox_generated_callback bbox_generated_post_analytics_cb
gpointer msgapi_conn_handle
Error propagation msgapi handles.
NvDsInstanceData instance_data[MAX_SOURCE_BINS]
gboolean resume_pipeline(AppCtx *appCtx)
gboolean pause_pipeline(AppCtx *appCtx)
NvDsConfig override_config
gboolean seek_pipeline(AppCtx *appCtx, glong milliseconds, gboolean seek_is_relative)
gboolean enable_perf_measurement(NvDsAppPerfStructInt *str, GstPad *sink_bin_pad, guint num_sources, gulong interval_sec, guint num_surfaces_per_frame, perf_callback callback)
void restart_pipeline(AppCtx *appCtx)
#define MAX_SECONDARY_PREPROCESS_BINS
NvDsFrameLatencyInfo * latency_info
NvDsC2DContext * c2d_ctx[MAX_MESSAGE_CONSUMERS]
gboolean parse_config_file(NvDsConfig *config, gchar *cfg_file_path)
Function to read properties from configuration file.
gboolean parse_config_file_yaml(NvDsConfig *config, gchar *cfg_file_path)
Function to read properties from YML configuration file.
GHashTable * sensorInfoHash
Hash table to save NvDsSensorInfo obtained with REST API stream/add, remove operations The key is sou...
gboolean msgapi_init_early(AppCtx *appCtx, const gchar *cfg_file_path)
Generic msgapi helper functions for error propagation These work with ANY DeepStream app (test1-5,...
struct _GstBuffer GstBuffer