NVIDIA DeepStream SDK API Reference

4.0.2 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvds_latency_meta.h
Go to the documentation of this file.
1 
12 #ifndef _NVDSMETA_LATENCY_H_
13 #define _NVDSMETA_LATENCY_H_
14 
15 #include "glib.h"
16 #include "gmodule.h"
17 #include "nvdsmeta.h"
18 
19 #define MAX_COMPONENT_LEN 64
20 
21 #ifdef __cplusplus
22 extern "C"
23 {
24 #endif
25 
29 typedef struct _NvDsMetaCompLatency {
45  guint source_id;
49  guint frame_num;
53  guint pad_index;
55 
59 typedef struct
60 {
64  guint source_id;
68  guint frame_num;
78  gdouble latency;
80 
94  gchar *element_name);
95 
106 gboolean nvds_set_output_system_timestamp(GstBuffer * buffer, gchar *element_name);
107 
119 guint nvds_measure_buffer_latency(GstBuffer *buf,
120  NvDsFrameLatencyInfo *latency_info);
121 
135 #define nvds_enable_latency_measurement (nvds_get_enable_latency_measurement())
136 
137 #ifdef __cplusplus
138 }
139 #endif
140 #endif
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.
struct _NvDsMetaCompLatency NvDsMetaCompLatency
Holds information about latency of the given component.
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.
gboolean nvds_get_enable_latency_measurement(void)
Holds information about latency of the given frame.
gchar component_name[MAX_COMPONENT_LEN]
name of the component for which latency is measured
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...
Holds information about latency of the given component.
Holds information of user metadata that user can specify.
Definition: nvdsmeta.h:346
#define MAX_COMPONENT_LEN
Copyright (c) 2019, NVIDIA CORPORATION.
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
guint pad_index
pad or port index of stream muxer for the frame in the batch
guint source_id
source id of the component e.g.
guint frame_num
current frame number for which latency is measured
gdouble in_system_timestamp
system timestamp of buffer when it arrives at the input of the component
guint source_id
source id of the component e.g.
gdouble out_system_timestamp
system timestamp of buffer when it is sent out to the downstream component
gdouble latency
the latency of the frame in ms