/* gstreamermm - a C++ wrapper for gstreamer * * Copyright 2008-2016 The gstreamermm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include _DEFS(gstreamermm,gst) namespace Gst { /** A data type to hold a time, measured in nanoseconds. */ typedef GstClockTime ClockTime; /** A data type to hold a timedifference, measured in nanoseconds. */ typedef GstClockTimeDiff ClockTimeDiff; /** A constant to define an undefined clock time. */ extern GSTREAMERMM_API const ClockTime CLOCK_TIME_NONE; /** A constant that defines one GStreamer second. */ extern GSTREAMERMM_API const ClockTime SECOND; /** A constant that defines one GStreamer millisecond. */ extern GSTREAMERMM_API const ClockTime MILLI_SECOND; /** A constant that defines one GStreamer microsecond. */ extern GSTREAMERMM_API const ClockTime MICRO_SECOND; /** A constant that defines one GStreamer nanosecond. */ extern GSTREAMERMM_API const ClockTime NANO_SECOND; _WRAP_ENUM(ClockEntryType, GstClockEntryType) _WRAP_ENUM(ClockReturn, GstClockReturn) _WRAP_ENUM(ClockFlags, GstClockFlags) /** Gets the hour component of Gst::ClockTime. * @param time The Gst::ClockTime to parse. * @return The hour component of the Gst::ClockTime. */ guint get_hours(Gst::ClockTime time); /** Gets the minute component of Gst::ClockTime. * @param time The Gst::ClockTime to parse. * @return The minute component of the Gst::ClockTime. */ guint get_minutes(Gst::ClockTime time); /** Gets the seconds component of Gst::ClockTime. * @param time The Gst::ClockTime to parse. * @return The seconds component of the Gst::ClockTime. */ guint get_seconds(Gst::ClockTime time); /** Gets the milliseconds component of Gst::ClockTime. * @param time The Gst::ClockTime to parse. * @return The milliseconds component of the Gst::ClockTime. */ guint get_milliseconds(Gst::ClockTime time); /** Gets the microseconds component of Gst::ClockTime. * @param time The Gst::ClockTime to parse. * @return The microseconds component of the Gst::ClockTime. */ guint get_microseconds(Gst::ClockTime time); /** Gets the nanoseconds component of Gst::ClockTime. * @param time The Gst::ClockTime to parse. * @return The nanoseconds component of the Gst::ClockTime. */ guint get_nanoseconds(Gst::ClockTime time); /** Gets the fractional component (milli, micro and nano seconds) of * Gst::ClockTime. * @param time The Gst::ClockTime to parse. * @return The fractional component of the Gst::ClockTime. */ guint get_fractional_seconds(Gst::ClockTime time); }