]> git.sesse.net Git - mlt/blob - src/framework/mlt_playlist.h
More miracle mods
[mlt] / src / framework / mlt_playlist.h
1 /*
2  * mlt_playlist.h -- playlist service class
3  * Copyright (C) 2003-2004 Ushodaya Enterprises Limited
4  * Author: Charles Yates <charles.yates@pandora.be>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software Foundation,
18  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef _MLT_PLAYLIST_H_
22 #define _MLT_PLAYLIST_H_
23
24 #include "mlt_producer.h"
25
26 /** Structur for returning clip information.
27 */
28
29 typedef struct
30 {
31         char *resource;
32         double in;
33         double out;
34         double playtime;
35         double length;
36         float fps;
37 }
38 mlt_playlist_clip_info;
39
40 /** Public final methods
41 */
42
43 extern mlt_playlist mlt_playlist_init( );
44 extern mlt_producer mlt_playlist_producer( mlt_playlist this );
45 extern mlt_service mlt_playlist_service( mlt_playlist this );
46 extern mlt_properties mlt_playlist_properties( mlt_playlist this );
47 extern int mlt_playlist_count( mlt_playlist this );
48 extern int mlt_playlist_clear( mlt_playlist this );
49 extern int mlt_playlist_append( mlt_playlist this, mlt_producer producer );
50 extern int mlt_playlist_append_io( mlt_playlist this, mlt_producer producer, double in, double out );
51 extern int mlt_playlist_blank( mlt_playlist this, mlt_timecode length );
52 extern mlt_timecode mlt_playlist_clip( mlt_playlist this, mlt_whence whence, int index );
53 extern int mlt_playlist_current_clip( mlt_playlist this );
54 extern mlt_producer mlt_playlist_current( mlt_playlist this );
55 extern int mlt_playlist_get_clip_info( mlt_playlist this, mlt_playlist_clip_info *info, int index );
56 extern int mlt_playlist_insert( mlt_playlist this, mlt_producer producer, int where, mlt_timecode in, mlt_timecode out );
57 extern int mlt_playlist_remove( mlt_playlist this, int where );
58 extern int mlt_playlist_move( mlt_playlist this, int from, int to );
59 extern void mlt_playlist_close( mlt_playlist this );
60
61 #endif
62