NVIDIA DeepStream SDK API Reference

6.4 Release
gstnvstreammux_ntp.h File Reference

Go to the source code of this file.

Macros

#define NVDS_RFC3339_STR_BUF_LEN   32
 

Typedefs

typedef struct _GstNvDsNtpCalculator GstNvDsNtpCalculator
 

Enumerations

enum  GstNvDsNtpCalculatorMode {
  GST_NVDS_NTP_CALC_MODE_SYSTEM_TIME,
  GST_NVDS_NTP_CALC_MODE_RTCP
}
 
enum  GstNvDsNtpCorrectionMode {
  GST_NVDS_NTP_CORRECTION_DISABLED,
  GST_NVDS_NTP_CORRECTION_AUTOMATIC,
  GST_NVDS_NTP_CORRECTION_USER_FRAME_RATE
}
 

Functions

void generate_rfc3339_str_from_ts (gchar *buf, GstClockTime ts)
 
GstNvDsNtpCalculatorgst_nvds_ntp_calculator_new (GstNvDsNtpCalculatorMode mode, GstClockTime frame_duration, GstElement *elem, guint source_id)
 
void gst_nvds_ntp_calculator_add_ntp_sync_values (GstNvDsNtpCalculator *calc, GstClockTime ntp_time_epoch_ns, GstClockTime ntp_frame_timestamp, GstClockTime avg_frame_time)
 
gboolean gst_nvds_ntp_calculator_have_ntp_sync_values (GstNvDsNtpCalculator *calc)
 
void gst_nvds_ntp_calculator_get_ntp_sync_values (GstNvDsNtpCalculator *calc, GstClockTime *ntp_time_epoch_ns, GstClockTime *ntp_frame_timestamp, GstClockTime *avg_frame_time, GstClockTime *ntp_time_epoch_ns_next, GstClockTime *ntp_frame_timestamp_next)
 
GstClockTime gst_nvds_ntp_calculator_get_buffer_ntp (GstNvDsNtpCalculator *calc, GstClockTime buf_pts)
 
void gst_nvds_ntp_calculator_reset (GstNvDsNtpCalculator *calc)
 
void gst_nvds_ntp_calculator_free (GstNvDsNtpCalculator *calc)
 

Macro Definition Documentation

◆ NVDS_RFC3339_STR_BUF_LEN

#define NVDS_RFC3339_STR_BUF_LEN   32

Definition at line 32 of file gstnvstreammux_ntp.h.

Typedef Documentation

◆ GstNvDsNtpCalculator

typedef struct _GstNvDsNtpCalculator GstNvDsNtpCalculator

Definition at line 56 of file gstnvstreammux_ntp.h.

Enumeration Type Documentation

◆ GstNvDsNtpCalculatorMode

Enumerator
GST_NVDS_NTP_CALC_MODE_SYSTEM_TIME 
GST_NVDS_NTP_CALC_MODE_RTCP 

Definition at line 36 of file gstnvstreammux_ntp.h.

◆ GstNvDsNtpCorrectionMode

Enumerator
GST_NVDS_NTP_CORRECTION_DISABLED 
GST_NVDS_NTP_CORRECTION_AUTOMATIC 
GST_NVDS_NTP_CORRECTION_USER_FRAME_RATE 

Definition at line 43 of file gstnvstreammux_ntp.h.

Function Documentation

◆ generate_rfc3339_str_from_ts()

void generate_rfc3339_str_from_ts ( gchar *  buf,
GstClockTime  ts 
)

◆ gst_nvds_ntp_calculator_add_ntp_sync_values()

void gst_nvds_ntp_calculator_add_ntp_sync_values ( GstNvDsNtpCalculator calc,
GstClockTime  ntp_time_epoch_ns,
GstClockTime  ntp_frame_timestamp,
GstClockTime  avg_frame_time 
)

◆ gst_nvds_ntp_calculator_free()

void gst_nvds_ntp_calculator_free ( GstNvDsNtpCalculator calc)

Referenced by GstSinkPad::~GstSinkPad().

◆ gst_nvds_ntp_calculator_get_buffer_ntp()

GstClockTime gst_nvds_ntp_calculator_get_buffer_ntp ( GstNvDsNtpCalculator calc,
GstClockTime  buf_pts 
)

◆ gst_nvds_ntp_calculator_get_ntp_sync_values()

void gst_nvds_ntp_calculator_get_ntp_sync_values ( GstNvDsNtpCalculator calc,
GstClockTime *  ntp_time_epoch_ns,
GstClockTime *  ntp_frame_timestamp,
GstClockTime *  avg_frame_time,
GstClockTime *  ntp_time_epoch_ns_next,
GstClockTime *  ntp_frame_timestamp_next 
)

◆ gst_nvds_ntp_calculator_have_ntp_sync_values()

gboolean gst_nvds_ntp_calculator_have_ntp_sync_values ( GstNvDsNtpCalculator calc)

◆ gst_nvds_ntp_calculator_new()

GstNvDsNtpCalculator* gst_nvds_ntp_calculator_new ( GstNvDsNtpCalculatorMode  mode,
GstClockTime  frame_duration,
GstElement *  elem,
guint  source_id 
)

◆ gst_nvds_ntp_calculator_reset()

void gst_nvds_ntp_calculator_reset ( GstNvDsNtpCalculator calc)