|
|
NVIDIA DeepStream SDK API Reference
|
9.1 Release
|
Go to the documentation of this file.
18 #ifndef __NVGSTDS_APP_H__
19 #define __NVGSTDS_APP_H__
24 #include "deepstream_app_version.h"
25 #include "deepstream_common.h"
26 #include "deepstream_config.h"
27 #include "deepstream_osd.h"
28 #include "deepstream_segvisual.h"
29 #include "deepstream_perf.h"
30 #include "deepstream_preprocess.h"
31 #include "deepstream_primary_gie.h"
32 #include "deepstream_sinks.h"
33 #include "deepstream_sources.h"
34 #include "deepstream_streammux.h"
35 #include "deepstream_tiled_display.h"
36 #include "deepstream_dsanalytics.h"
37 #include "deepstream_dsexample.h"
38 #include "deepstream_tracker.h"
39 #include "deepstream_text_embedder.h"
40 #include "deepstream_visionencoder.h"
41 #include "deepstream_replay.h"
42 #include "deepstream_secondary_gie.h"
43 #include "deepstream_secondary_preprocess.h"
44 #include "deepstream_c2d_msg.h"
45 #include "deepstream_image_save.h"
46 #include "gst-nvdscustommessage.h"
47 #include "gst-nvdscommonconfig.h"
64 gulong all_bbox_buffer_probe_id;
65 gulong primary_bbox_buffer_probe_id;
66 gulong fps_buffer_probe_id;
77 GstElement *text_embedder;
89 gulong primary_bbox_buffer_probe_id;
96 GstElement *tiler_tee;
107 gint pipeline_recreate_sec;
108 gboolean source_list_enabled;
109 gboolean dummy_payload;
110 gboolean custom_ts_to_rfc;
111 gchar *batched_sensor_name;
112 guint total_num_sources;
113 guint num_source_sub_bins;
114 guint num_secondary_gie_sub_bins;
115 guint num_secondary_preprocess_sub_bins;
116 guint num_sink_sub_bins;
117 guint num_message_consumers;
118 guint perf_measurement_interval_sec;
119 guint sgie_batch_size;
120 gboolean extract_sei_type5_data;
122 gboolean low_latency_mode;
123 gchar *bbox_dir_path;
124 gchar *kitti_track_dir_path;
125 gchar *reid_track_dir_path;
126 gchar *terminated_track_output_path;
127 gchar *shadow_track_output_path;
130 gchar **sensor_id_list;
131 gchar **sensor_name_list;
153 gboolean use_nvmultiurisrcbin;
154 gboolean stream_name_display;
155 guint max_batch_size;
158 gboolean source_attr_all_parsed;
162 gboolean enable_error_propagation;
gboolean parse_config_file(NvDsConfig *config, gchar *cfg_file_path)
Function to read properties from configuration file.
#define MAX_SECONDARY_GIE_BINS
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,...
bbox_generated_callback all_bbox_generated_cb
REST server application context.
void destroy_pipeline(AppCtx *appCtx)
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.
GThread * ota_handler_thread
void toggle_show_bbox_text(AppCtx *appCtx)
void(* bbox_generated_callback)(AppCtx *appCtx, GstBuffer *buf, NvDsBatchMeta *batch_meta, guint index)
Holds information about the latency of a given frame.
#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(* perf_callback)(gpointer ctx, NvDsAppPerfStruct *str)
gchar * last_error
Last error message for error propagation.
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.
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]
void restart_pipeline(AppCtx *appCtx)
gboolean seek_pipeline(AppCtx *appCtx, glong milliseconds, gboolean seek_is_relative)
NvDsConfig override_config
gboolean enable_perf_measurement(NvDsAppPerfStructInt *str, GstPad *sink_bin_pad, guint num_sources, gulong interval_sec, guint num_surfaces_per_frame, perf_callback callback)
#define MAX_SECONDARY_PREPROCESS_BINS
gboolean pause_pipeline(AppCtx *appCtx)
NvDsFrameLatencyInfo * latency_info
gboolean parse_config_file_yaml(NvDsConfig *config, gchar *cfg_file_path)
Function to read properties from YML configuration file.
NvDsC2DContext * c2d_ctx[MAX_MESSAGE_CONSUMERS]
gboolean resume_pipeline(AppCtx *appCtx)
GHashTable * sensorInfoHash
Hash table to save NvDsSensorInfo obtained with REST API stream/add, remove operations The key is sou...
gboolean(* overlay_graphics_callback)(AppCtx *appCtx, GstBuffer *buf, NvDsBatchMeta *batch_meta, guint index)
struct _GstBuffer GstBuffer