NVIDIA DeepStream SDK API Reference

5.0 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 
26 #ifndef _NVDSMETA_LATENCY_H_
27 #define _NVDSMETA_LATENCY_H_
28 
29 #include "glib.h"
30 #include "gmodule.h"
31 #include "nvdsmeta.h"
32 
33 #define MAX_COMPONENT_LEN 64
34 
35 #ifdef __cplusplus
36 extern "C"
37 {
38 #endif
39 
43 typedef struct _NvDsMetaCompLatency {
53  guint source_id;
55  guint frame_num;
58  guint pad_index;
60 
64 typedef struct
65 {
67  guint source_id;
69  guint frame_num;
75  gdouble latency;
77 
90  gchar *element_name);
91 
105 gboolean nvds_set_output_system_timestamp(GstBuffer * buffer, gchar *element_name);
106 
120 guint nvds_measure_buffer_latency(GstBuffer *buf,
121  NvDsFrameLatencyInfo *latency_info);
122 
130 
136 #define nvds_enable_latency_measurement (nvds_get_enable_latency_measurement())
137 
140 #ifdef __cplusplus
141 }
142 #endif
143 #endif
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.
gchar component_name[MAX_COMPONENT_LEN]
Holds the name of the component for which latency is measured.
Holds information about latency of the given component.
Holds user metadata.
Definition: nvdsmeta.h:397
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...
guint frame_num
Holds the current frame number for which latency is measured.
guint pad_index
Holds the pad or port index of the stream muxer for the frame in the batch.
guint source_id
Holds the source ID of the component, e.g.
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
Copyright (c) 2019-2020, NVIDIA CORPORATION.
gdouble in_system_timestamp
Holds the system timestamp of the buffer when it arrives at the input of the component.
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 out_system_timestamp
Holds the system timestamp of buffer when it is sent to the downstream component. ...
gdouble latency
Holds the latency of the frame in milliseconds.
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.