2 * gstcmmlutils.h - GStreamer CMML utility functions
3 * Copyright (C) 2005 Alessandro Decina
6 * Alessandro Decina <alessandro@nnva.org>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
24 #ifndef __GST_CMML_CLOCK_TIME_H__
25 #define __GST_CMML_CLOCK_TIME_H__
28 #include "gstcmmltag.h"
31 GstClockTime gst_cmml_clock_time_from_npt (const gchar * time);
32 GstClockTime gst_cmml_clock_time_from_smpte (const gchar * time);
33 gchar * gst_cmml_clock_time_to_npt (const GstClockTime time);
34 gint64 gst_cmml_clock_time_to_granule (GstClockTime prev_time,
35 GstClockTime current_time, gint64 granulerate_n, gint64 granulerate_d,
39 GHashTable * gst_cmml_track_list_new (void);
40 void gst_cmml_track_list_destroy (GHashTable * tracks);
41 void gst_cmml_track_list_add_clip (GHashTable * tracks, GstCmmlTagClip * clip);
42 gboolean gst_cmml_track_list_del_clip (GHashTable * tracks,
43 GstCmmlTagClip * clip);
44 gboolean gst_cmml_track_list_has_clip (GHashTable * tracks,
45 GstCmmlTagClip * clip);
46 GstCmmlTagClip * gst_cmml_track_list_get_track_last_clip (GHashTable * tracks,
47 const gchar * track_name);
48 GList * gst_cmml_track_list_get_track_clips (GHashTable * tracks,
49 const gchar * track_name);
50 GList * gst_cmml_track_list_get_clips (GHashTable * tracks);
51 void gst_cmml_track_list_set_track_data (GHashTable * tracks, gpointer data);
52 gpointer gst_cmml_track_list_get_track_data (GHashTable * tracks);
53 #endif /* __GST_CMML_CLOCK_TIME_H__ */