[vlc-devel] commit: Cosmetics. (Laurent Aimar )
git version control
git at videolan.org
Sun Sep 28 13:35:58 CEST 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Sep 25 20:18:28 2008 +0200| [5fed39358294c743eaaaa0e8b439c7ca21622463] | committer: Laurent Aimar
Cosmetics.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5fed39358294c743eaaaa0e8b439c7ca21622463
---
src/input/clock.c | 73 ++++++++++++++++++++++++++++------------------------
1 files changed, 39 insertions(+), 34 deletions(-)
diff --git a/src/input/clock.c b/src/input/clock.c
index eee032a..dd07adb 100644
--- a/src/input/clock.c
+++ b/src/input/clock.c
@@ -115,40 +115,9 @@ struct input_clock_t
int i_cr_average;
};
-/*****************************************************************************
- * ClockStreamToSystem: converts a movie clock to system date
- *****************************************************************************/
-static mtime_t ClockStreamToSystem( input_clock_t *cl, mtime_t i_clock )
-{
- if( !cl->b_has_reference )
- return 0;
-
- return ( i_clock - cl->ref.i_clock ) * cl->i_rate / INPUT_RATE_DEFAULT +
- cl->ref.i_system;
-}
-
-/*****************************************************************************
- * ClockSystemToStream: converts a system date to movie clock
- *****************************************************************************
- * Caution : a valid reference point is needed for this to operate.
- *****************************************************************************/
-static mtime_t ClockSystemToStream( input_clock_t *cl, mtime_t i_system )
-{
- assert( cl->b_has_reference );
- return ( i_system - cl->ref.i_system ) * INPUT_RATE_DEFAULT / cl->i_rate +
- cl->ref.i_clock;
-}
-
-/*****************************************************************************
- * ClockSetReference: writes a new clock reference
- *****************************************************************************/
-static void ClockSetReference( input_clock_t *cl,
- mtime_t i_clock, mtime_t i_system )
-{
- cl->b_has_reference = true;
- cl->ref.i_clock = i_clock;
- cl->ref.i_system = i_system;
-}
+static mtime_t ClockStreamToSystem( input_clock_t *, mtime_t i_clock );
+static mtime_t ClockSystemToStream( input_clock_t *, mtime_t i_system );
+static void ClockSetReference( input_clock_t *, mtime_t i_clock, mtime_t i_system );
/*****************************************************************************
* input_clock_New: create a new clock
@@ -316,3 +285,39 @@ mtime_t input_clock_GetWakeup( input_clock_t *cl )
return ClockStreamToSystem( cl, cl->last.i_clock );
}
+/*****************************************************************************
+ * ClockStreamToSystem: converts a movie clock to system date
+ *****************************************************************************/
+static mtime_t ClockStreamToSystem( input_clock_t *cl, mtime_t i_clock )
+{
+ if( !cl->b_has_reference )
+ return 0;
+
+ return ( i_clock - cl->ref.i_clock ) * cl->i_rate / INPUT_RATE_DEFAULT +
+ cl->ref.i_system;
+}
+
+/*****************************************************************************
+ * ClockSystemToStream: converts a system date to movie clock
+ *****************************************************************************
+ * Caution : a valid reference point is needed for this to operate.
+ *****************************************************************************/
+static mtime_t ClockSystemToStream( input_clock_t *cl, mtime_t i_system )
+{
+ assert( cl->b_has_reference );
+ return ( i_system - cl->ref.i_system ) * INPUT_RATE_DEFAULT / cl->i_rate +
+ cl->ref.i_clock;
+}
+
+/*****************************************************************************
+ * ClockSetReference: writes a new clock reference
+ *****************************************************************************/
+static void ClockSetReference( input_clock_t *cl,
+ mtime_t i_clock, mtime_t i_system )
+{
+ cl->b_has_reference = true;
+ cl->ref.i_clock = i_clock;
+ cl->ref.i_system = i_system;
+}
+
+
More information about the vlc-devel
mailing list