2 * mlt_playlist.h -- playlist service class
3 * Copyright (C) 2003-2004 Ushodaya Enterprises Limited
4 * Author: Charles Yates <charles.yates@pandora.be>
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.
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.
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.
21 #ifndef _MLT_PLAYLIST_H_
22 #define _MLT_PLAYLIST_H_
24 #include "mlt_producer.h"
26 /** Structure for returning clip information.
32 mlt_producer producer
;
36 mlt_position frame_in
;
37 mlt_position frame_out
;
38 mlt_position frame_count
;
43 mlt_playlist_clip_info
;
45 /** Public final methods
48 extern mlt_playlist
mlt_playlist_init( );
49 extern mlt_producer
mlt_playlist_producer( mlt_playlist self
);
50 extern mlt_service
mlt_playlist_service( mlt_playlist self
);
51 extern mlt_properties
mlt_playlist_properties( mlt_playlist self
);
52 extern int mlt_playlist_count( mlt_playlist self
);
53 extern int mlt_playlist_clear( mlt_playlist self
);
54 extern int mlt_playlist_append( mlt_playlist self
, mlt_producer producer
);
55 extern int mlt_playlist_append_io( mlt_playlist self
, mlt_producer producer
, mlt_position in
, mlt_position out
);
56 extern int mlt_playlist_blank( mlt_playlist self
, mlt_position length
);
57 extern mlt_position
mlt_playlist_clip( mlt_playlist self
, mlt_whence whence
, int index
);
58 extern int mlt_playlist_current_clip( mlt_playlist self
);
59 extern mlt_producer
mlt_playlist_current( mlt_playlist self
);
60 extern int mlt_playlist_get_clip_info( mlt_playlist self
, mlt_playlist_clip_info
*info
, int index
);
61 extern int mlt_playlist_insert( mlt_playlist self
, mlt_producer producer
, int where
, mlt_position in
, mlt_position out
);
62 extern int mlt_playlist_remove( mlt_playlist self
, int where
);
63 extern int mlt_playlist_move( mlt_playlist self
, int from
, int to
);
64 extern int mlt_playlist_resize_clip( mlt_playlist self
, int clip
, mlt_position in
, mlt_position out
);
65 extern int mlt_playlist_split( mlt_playlist self
, int clip
, mlt_position position
);
66 extern int mlt_playlist_join( mlt_playlist self
, int clip
, int count
, int merge
);
67 extern int mlt_playlist_mix( mlt_playlist self
, int clip
, int length
, mlt_transition transition
);
68 extern void mlt_playlist_close( mlt_playlist self
);