| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/clockutils.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/clockutils.h>cxx . . $ `<file>/gstreamer/gstreamermm/clockutils.h`/ |
| 7 | #include <gstreamermm/private/clockutils_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/clockutils_p.h`/ |
| 8 | |
| 9 | |
| 10 | /* gstreamermm - a C++ wrapper for gstreamer |
| 11 | * |
| 12 | * Copyright 2008-2016 The gstreamermm Development Team |
| 13 | * |
| 14 | * This library is free software; you can redistribute it and/or |
| 15 | * modify it under the terms of the GNU Lesser General Public |
| 16 | * License as published by the Free Software Foundation; either |
| 17 | * version 2.1 of the License, or (at your option) any later version. |
| 18 | * |
| 19 | * This library is distributed in the hope that it will be useful, |
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 | * Lesser General Public License for more details. |
| 23 | * |
| 24 | * You should have received a copy of the GNU Lesser General Public |
| 25 | * License along with this library; if not, write to the Free |
| 26 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 27 | */ |
| 28 | |
| 29 | #include <gst/gst.h> |
| 30 | |
| 31 | namespace Gstcxx . . $ Gst/ |
| 32 | { |
| 33 | |
| 34 | const ClockTimecxx . . $ Gst/ClockTime# CLOCK_TIME_NONEcxx . . $ Gst/CLOCK_TIME_NONE. = GST_CLOCK_TIME_NONEcxx . . $ `<external>/3702184213503130145/gstclock.h:73:9`!; |
| 35 | const ClockTimecxx . . $ Gst/ClockTime# SECONDcxx . . $ Gst/SECOND. = GST_SECONDcxx . . $ `<external>/3702184213503130145/gstclock.h:103:9`!; |
| 36 | const ClockTimecxx . . $ Gst/ClockTime# MILLI_SECONDcxx . . $ Gst/MILLI_SECOND. = GST_MSECONDcxx . . $ `<external>/3702184213503130145/gstclock.h:109:9`!; |
| 37 | const ClockTimecxx . . $ Gst/ClockTime# MICRO_SECONDcxx . . $ Gst/MICRO_SECOND. = GST_USECONDcxx . . $ `<external>/3702184213503130145/gstclock.h:115:9`!; |
| 38 | const ClockTimecxx . . $ Gst/ClockTime# NANO_SECONDcxx . . $ Gst/NANO_SECOND. = GST_NSECONDcxx . . $ `<external>/3702184213503130145/gstclock.h:121:9`!; |
| 39 | |
| 40 | |
| 41 | guint get_hourscxx . . $ Gst/get_hours(ea88b852781e8a38).(ClockTimecxx . . $ Gst/ClockTime# time) |
| 42 | { |
| 43 | return GST_CLOCK_TIME_IS_VALIDcxx . . $ `<external>/3702184213503130145/gstclock.h:80:9`! (time) ? time / (GST_SECONDcxx . . $ `<external>/3702184213503130145/gstclock.h:103:9`! * 60 * 60) : 99; |
| 44 | } |
| 45 | |
| 46 | guint get_minutescxx . . $ Gst/get_minutes(ea88b852781e8a38).(ClockTimecxx . . $ Gst/ClockTime# time) |
| 47 | { |
| 48 | return GST_CLOCK_TIME_IS_VALIDcxx . . $ `<external>/3702184213503130145/gstclock.h:80:9`! (time) ? (time / (GST_SECONDcxx . . $ `<external>/3702184213503130145/gstclock.h:103:9`! * 60)) % 60 : 99; |
| 49 | } |
| 50 | |
| 51 | guint get_secondscxx . . $ Gst/get_seconds(ea88b852781e8a38).(ClockTimecxx . . $ Gst/ClockTime# time) |
| 52 | { |
| 53 | return GST_CLOCK_TIME_IS_VALIDcxx . . $ `<external>/3702184213503130145/gstclock.h:80:9`! (time) ? (time / GST_SECONDcxx . . $ `<external>/3702184213503130145/gstclock.h:103:9`!) % 60 : 99; |
| 54 | } |
| 55 | |
| 56 | guint get_millisecondscxx . . $ Gst/get_milliseconds(ea88b852781e8a38).(ClockTimecxx . . $ Gst/ClockTime# time) |
| 57 | { |
| 58 | return GST_CLOCK_TIME_IS_VALIDcxx . . $ `<external>/3702184213503130145/gstclock.h:80:9`! (time) ? (time / GST_MSECONDcxx . . $ `<external>/3702184213503130145/gstclock.h:109:9`!) % 1000 : 999; |
| 59 | } |
| 60 | |
| 61 | guint get_microsecondscxx . . $ Gst/get_microseconds(ea88b852781e8a38).(ClockTimecxx . . $ Gst/ClockTime# time) |
| 62 | { |
| 63 | return GST_CLOCK_TIME_IS_VALIDcxx . . $ `<external>/3702184213503130145/gstclock.h:80:9`! (time) ? (time / GST_USECONDcxx . . $ `<external>/3702184213503130145/gstclock.h:115:9`!) % 1000 : 999; |
| 64 | } |
| 65 | |
| 66 | guint get_nanosecondscxx . . $ Gst/get_nanoseconds(ea88b852781e8a38).(ClockTimecxx . . $ Gst/ClockTime# time) |
| 67 | { |
| 68 | return GST_CLOCK_TIME_IS_VALIDcxx . . $ `<external>/3702184213503130145/gstclock.h:80:9`! (time) ? (time / GST_NSECONDcxx . . $ `<external>/3702184213503130145/gstclock.h:121:9`!) % 1000 : 999; |
| 69 | } |
| 70 | |
| 71 | guint get_fractional_secondscxx . . $ Gst/get_fractional_seconds(ea88b852781e8a38).(ClockTimecxx . . $ Gst/ClockTime# time) |
| 72 | { |
| 73 | return GST_CLOCK_TIME_IS_VALIDcxx . . $ `<external>/3702184213503130145/gstclock.h:80:9`! (time) ? time % GST_SECONDcxx . . $ `<external>/3702184213503130145/gstclock.h:103:9`! : 999999999; |
| 74 | } |
| 75 | |
| 76 | } //namespace Gst |
| 77 | |
| 78 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/clockutils.cc`/ |
| 79 | { |
| 80 | } // anonymous namespace |
| 81 | |
| 82 | // static |
| 83 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::ClockEntryType>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 84 | { |
| 85 | return gst_clock_entry_type_get_type(); |
| 86 | } |
| 87 | |
| 88 | // static |
| 89 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::ClockReturn>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 90 | { |
| 91 | return gst_clock_return_get_type(); |
| 92 | } |
| 93 | |
| 94 | // static |
| 95 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::ClockFlags>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 96 | { |
| 97 | return gst_clock_flags_get_type(); |
| 98 | } |
| 99 | |
| 100 |