26 #ifndef _NVDSMETA_LATENCY_H_
27 #define _NVDSMETA_LATENCY_H_
33 #define MAX_COMPONENT_LEN 64
108 gchar *element_name);
149 #define nvds_enable_latency_measurement (nvds_get_enable_latency_measurement())
gboolean nvds_get_enable_latency_measurement(void)
Holds information about latency of the given frame.
gboolean nvds_set_output_system_timestamp(GstBuffer *buffer, gchar *element_name)
Sets the system timestamp when the gst buffer is pushed to the downstream component.
gdouble comp_in_timestamp
system timestamp of buffer when it arrives at the input of the first component in the pipeline...
guint frame_num
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 the frames present in the current batch The latency will be computed till...
guint source_id
source id of the component e.g.
gdouble latency
the latency of the frame in ms
NvDsUserMeta * nvds_set_input_system_timestamp(GstBuffer *buffer, gchar *element_name)
Sets the system timestamp when the gst buffer arrives at the input of the component.