26 #ifndef _NVDSMETA_LATENCY_H_
27 #define _NVDSMETA_LATENCY_H_
33 #define MAX_COMPONENT_LEN 64
108 gchar *element_name);
125 gboolean
nvds_add_sub_time(GstBuffer * buffer, gchar *element_name, gchar *name,\
126 gdouble start_time, gdouble end_time);
157 #define nvds_enable_latency_measurement (nvds_get_enable_latency_measurement())
gboolean nvds_get_enable_latency_measurement(void)
Indicates whether the environment variable NVDS_ENABLE_LATENCY_MEASUREMENT is exported.
Holds information about the latency of a given frame.
gboolean nvds_set_output_system_timestamp(GstBuffer *buffer, gchar *element_name)
Sets the system timestamp when a Gst Buffer that is pushed to the downstream component.
gdouble comp_in_timestamp
Holds the system timestamp of the buffer when it arrives at the input of the first component in the p...
gboolean nvds_add_sub_time(GstBuffer *buffer, gchar *element_name, gchar *name, gdouble start_time, gdouble end_time)
guint frame_num
Holds the current frame number for which latency is measured.
struct _NvDsMetaCompLatency NvDsMetaCompLatency
Holds information about latency of the given component.
#define MAX_COMPONENT_LEN
guint nvds_measure_buffer_latency(GstBuffer *buf, NvDsFrameLatencyInfo *latency_info)
Measures the latency of all frames present in the current batch.
guint source_id
Holds the source ID of the component, e.g.
gdouble latency
Holds the latency of the frame in milliseconds.
struct _NvDsMetaSubCompLatency NvDsMetaSubCompLatency
Holds information about latency of the given subcomponent.
NvDsUserMeta * nvds_set_input_system_timestamp(GstBuffer *buffer, gchar *element_name)
Sets the system timestamp when the Gst Buffer arrives as input at the component.