| Top |
| guint64 | timeout | Read / Write |
| gint | window-size | Read / Write |
| gint | window-threshold | Read / Write |
| struct | GstClock |
| struct | GstClockClass |
| typedef | GstClockTime |
| typedef | GstClockTimeDiff |
| typedef | GstClockID |
| #define | GST_CLOCK_TIME_NONE |
| #define | GST_CLOCK_STIME_NONE |
| #define | GST_SECOND |
| #define | GST_MSECOND |
| #define | GST_USECOND |
| #define | GST_NSECOND |
| struct | GstClockEntry |
| enum | GstClockEntryType |
| enum | GstClockReturn |
| enum | GstClockFlags |
#define GST_CLOCK_TIME_IS_VALID(time) (((GstClockTime)(time)) != GST_CLOCK_TIME_NONE)
#define GST_CLOCK_STIME_IS_VALID(time) (((GstClockTimeDiff)(time)) != GST_CLOCK_STIME_NONE)
#define GST_TIMEVAL_TO_TIME(tv) (GstClockTime)((tv).tv_sec * GST_SECOND + (tv).tv_usec * GST_USECOND)
#define GST_TIMESPEC_TO_TIME(ts) (GstClockTime)((ts).tv_sec * GST_SECOND + (ts).tv_nsec * GST_NSECOND)
gboolean (*GstClockCallback) (GstClock *clock,GstClockTime time,GstClockID id,gpointer user_data);
gboolean gst_clock_add_observation (GstClock *clock,GstClockTime slave,GstClockTime master,gdouble *r_squared);
gboolean gst_clock_add_observation_unapplied (GstClock *clock,GstClockTime slave,GstClockTime master,gdouble *r_squared,GstClockTime *internal,GstClockTime *external,GstClockTime *rate_num,GstClockTime *rate_denom);
GstClockTime gst_clock_set_resolution (GstClock *clock,GstClockTime resolution);
GstClockID gst_clock_new_single_shot_id (GstClock *clock,GstClockTime time);
GstClockID gst_clock_new_periodic_id (GstClock *clock,GstClockTime start_time,GstClockTime interval);
gboolean gst_clock_single_shot_id_reinit (GstClock *clock,GstClockID id,GstClockTime time);
gboolean gst_clock_periodic_id_reinit (GstClock *clock,GstClockID id,GstClockTime start_time,GstClockTime interval);
GstClockTime gst_clock_adjust_unlocked (GstClock *clock,GstClockTime internal);
GstClockTime gst_clock_unadjust_unlocked (GstClock *clock,GstClockTime external);
GstClockTime gst_clock_adjust_with_calibration (GstClock *clock,GstClockTime internal_target,GstClockTime cinternal,GstClockTime cexternal,GstClockTime cnum,GstClockTime cdenom);
GstClockTime gst_clock_unadjust_with_calibration (GstClock *clock,GstClockTime external_target,GstClockTime cinternal,GstClockTime cexternal,GstClockTime cnum,GstClockTime cdenom);
void gst_clock_get_calibration (GstClock *clock,GstClockTime *internal,GstClockTime *external,GstClockTime *rate_num,GstClockTime *rate_denom);
void gst_clock_set_calibration (GstClock *clock,GstClockTime internal,GstClockTime external,GstClockTime rate_num,GstClockTime rate_denom);
gboolean gst_clock_wait_for_sync (GstClock *clock,GstClockTime timeout);
GstClockReturn gst_clock_id_wait_async (GstClockID id,GstClockCallback func,gpointer user_data,GDestroyNotify destroy_data);
struct GstClockClass {
GstObjectClass parent_class;
/* vtable */
GstClockTime (*change_resolution) (GstClock *clock,
GstClockTime old_resolution,
GstClockTime new_resolution);
GstClockTime (*get_resolution) (GstClock *clock);
GstClockTime (*get_internal_time) (GstClock *clock);
/* waiting on an ID */
GstClockReturn (*wait) (GstClock *clock, GstClockEntry *entry,
GstClockTimeDiff *jitter);
GstClockReturn (*wait_async) (GstClock *clock, GstClockEntry *entry);
void (*unschedule) (GstClock *clock, GstClockEntry *entry);
};
“timeout” property“timeout” guint64
The amount of time, in nanoseconds, to sample master and slave clocks.
Flags: Read / Write
Default value: 100000000
“window-size” property“window-size” gint
The size of the window used to calculate rate and offset.
Flags: Read / Write
Allowed values: [2,1024]
Default value: 32
“window-threshold” property“window-threshold” gint
The threshold to start calculating rate and offset.
Flags: Read / Write
Allowed values: [2,1024]
Default value: 4