gstreamer/libs/gst/net
Sebastian Dröge 8d77759834 ptp: Initial implementation of a PTP clock
GstPtpClock implements a PTP (IEEE1588:2008) ordinary clock in
slave-only mode, that allows a GStreamer pipeline to synchronize
to a PTP network clock in some specific domain.

The PTP subsystem can be initialized with gst_ptp_init(), which then
starts a helper process to do the actual communication via the PTP
ports. This is required as PTP listens on ports < 1024 and thus
requires special privileges. Once this helper process is started, the
main process will synchronize to all PTP domains that are detected on
the selected interfaces.

gst_ptp_clock_new() then allows to create a GstClock that provides the
PTP time from a master clock inside a specific PTP domain. This clock
will only return valid timestamps once the timestamps in the PTP domain
are known. To check this, the GstPtpClock::internal-clock property and
the related notify::clock signal can be used. Once the internal clock
is not NULL, the PTP domain's time is known. Alternatively you can wait
for this with gst_ptp_clock_wait_ready().

To gather statistics about the PTP clock synchronization,
gst_ptp_statistics_callback_add() can be used. This gives the
application the possibility to collect all kinds of statistics
from the clock synchronization.

https://bugzilla.gnome.org/show_bug.cgi?id=749391
2015-06-03 13:55:28 +02:00
..
.gitignore Update a bunch of gitignores to clean up my git status output 2009-01-23 16:08:40 +00:00
gstnet.h libs: Add missing single include headers and use them in GIRs 2012-11-21 11:00:40 +01:00
gstnetaddressmeta.c docs: Fix documentation typos and inconsistencies 2014-07-09 09:22:11 +02:00
gstnetaddressmeta.h docs: Fix documentation typos and inconsistencies 2014-07-09 09:22:11 +02:00
gstnetclientclock.c net: keep GCancellable fd around instead of re-creating it constantly 2015-05-19 14:34:04 +01:00
gstnetclientclock.h net: Constify a parameter to gst_net_client_clock_new() 2013-10-18 09:59:25 +01:00
gstnetcontrolmessagemeta.c meta: Add GstNetControlMessageMeta 2015-03-14 13:54:51 +01:00
gstnetcontrolmessagemeta.h meta: Add GstNetControlMessageMeta 2015-03-14 13:54:51 +01:00
gstnettimepacket.c docs: remove outdated and pointless 'Last reviewed' lines from docs 2014-04-26 21:21:51 +01:00
gstnettimepacket.h Fix FSF address 2012-11-03 20:44:48 +00:00
gstnettimeprovider.c net: keep GCancellable fd around instead of re-creating it constantly 2015-05-19 14:34:04 +01:00
gstnettimeprovider.h Fix FSF address 2012-11-03 20:44:48 +00:00
gstptp_private.h ptp: Initial implementation of a PTP clock 2015-06-03 13:55:28 +02:00
gstptpclock.c ptp: Initial implementation of a PTP clock 2015-06-03 13:55:28 +02:00
gstptpclock.h ptp: Initial implementation of a PTP clock 2015-06-03 13:55:28 +02:00
Makefile.am ptp: Initial implementation of a PTP clock 2015-06-03 13:55:28 +02:00
net.h ptp: Initial implementation of a PTP clock 2015-06-03 13:55:28 +02:00