Main Page   Modules   Compound List   File List   Compound Members   File Members  

xlv_timer.h

00001 /*
00002  * xlv_timer.h
00003  *
00004  * Copyright (C) 2001 Guilhem Lavaux
00005  *
00006  * This file is part of XLV, a free middleware audio-video stream coder/decoder.
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Library General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2 of the License, or (at your option) any later version.
00012  *
00013  * XLV is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  */
00022 #ifndef _XLV_TIMER_H
00023 #define _XLV_TIMER_H
00024 
00025 #include <glib.h>
00026 
00027 typedef struct _XLV_Timer {
00028     guint32 m_time;
00029     gboolean m_realtime;
00030     guint32 m_start;
00031 } XLV_Timer;
00032 
00033 #ifdef NO_INLINE
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037 
00038     XLV_Timer *xlv_new_timer ();
00039     void xlv_release_timer (XLV_Timer * timer);
00040     void xlv_update_timer (XLV_Timer * timer, guint32 time);
00041     guint32 xlv_get_timer (XLV_Timer * timer);
00042     gboolean xlv_is_late (XLV_Timer * timer, guint32 time_stamp);
00043     gboolean xlv_is_timer_late (XLV_Timer * timer, XLV_Timer * ref_timer);
00044     void xlv_timer_wait (XLV_Timer * timer, XLV_Timer * ref_timer);
00045     void xlv_timer_start (XLV_Timer * timer);
00046     void xlv_timer_mark (XLV_Timer * timer);
00047 
00048 #ifdef __cplusplus
00049 }
00050 #endif
00051 #else
00052 #define IN_HEADER
00053 #include "xlv_timer.c"
00054 #undef IN_HEADER
00055 #endif
00056 
00057 
00058 #endif

Generated on Mon Jul 1 19:39:06 2002 for XLV by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002