]> git.sesse.net Git - mlt/blob - src/framework/mlt_playlist.h
more int64 frame addressing in playlist
[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 /** Structure for returning clip information.
27 */
28
29 typedef struct
30 {
31         mlt_producer producer;
32         mlt_timecode start;
33         char *resource;
34         mlt_timecode in;
35         int64_t frame_in;
36         mlt_timecode out;
37         int64_t frame_out;
38         mlt_timecode playtime;
39         mlt_timecode length;
40         float fps;
41 }
42 mlt_playlist_clip_info;
43
44 /** Public final methods
45 */
46
47 extern mlt_playlist mlt_playlist_init( );
48 extern mlt_producer mlt_playlist_producer( mlt_playlist this );
49 extern mlt_service mlt_playlist_service( mlt_playlist this );
50 extern mlt_properties mlt_playlist_properties( mlt_playlist this );
51 extern int mlt_playlist_count( mlt_playlist this );
52 extern int mlt_playlist_clear( mlt_playlist this );
53 extern int mlt_playlist_append( mlt_playlist this, mlt_producer producer );
54 extern int mlt_playlist_append_io( mlt_playlist this, mlt_producer producer, double in, double out );
55 extern int mlt_playlist_blank( mlt_playlist this, mlt_timecode length );
56 extern mlt_timecode mlt_playlist_clip( mlt_playlist this, mlt_whence whence, int index );
57 extern int mlt_playlist_current_clip( mlt_playlist this );
58 extern mlt_producer mlt_playlist_current( mlt_playlist this );
59 extern int mlt_playlist_get_clip_info( mlt_playlist this, mlt_playlist_clip_info *info, int index );
60 extern int mlt_playlist_insert( mlt_playlist this, mlt_producer producer, int where, mlt_timecode in, mlt_timecode out );
61 extern int mlt_playlist_remove( mlt_playlist this, int where );
62 extern int mlt_playlist_move( mlt_playlist this, int from, int to );
63 extern int mlt_playlist_resize_clip( mlt_playlist this, int clip, mlt_timecode in, mlt_timecode out );
64 extern void mlt_playlist_close( mlt_playlist this );
65
66 #endif
67