MLT 6.26.0
mlt_playlist.h
Go to the documentation of this file.
1
23#ifndef MLT_PLAYLIST_H
24#define MLT_PLAYLIST_H
25
26#include "mlt_producer.h"
27
31typedef struct
32{
33 int clip;
37 char *resource;
42 float fps;
43 int repeat;
44}
46
51
73{
76
77 int size;
78 int count;
80};
81
82#define MLT_PLAYLIST_PRODUCER( playlist ) ( &( playlist )->parent )
83#define MLT_PLAYLIST_SERVICE( playlist ) MLT_PRODUCER_SERVICE( MLT_PLAYLIST_PRODUCER( playlist ) )
84#define MLT_PLAYLIST_PROPERTIES( playlist ) MLT_SERVICE_PROPERTIES( MLT_PLAYLIST_SERVICE( playlist ) )
85
93extern int mlt_playlist_append( mlt_playlist self, mlt_producer producer );
96extern int mlt_playlist_blank_time( mlt_playlist self, const char *length );
97extern mlt_position mlt_playlist_clip( mlt_playlist self, mlt_whence whence, int index );
101extern int mlt_playlist_insert( mlt_playlist self, mlt_producer producer, int where, mlt_position in, mlt_position out );
102extern int mlt_playlist_remove( mlt_playlist self, int where );
103extern int mlt_playlist_move( mlt_playlist self, int from, int to );
104extern int mlt_playlist_reorder( mlt_playlist self, const int *indices );
106extern int mlt_playlist_repeat_clip( mlt_playlist self, int clip, int repeat );
107extern int mlt_playlist_split( mlt_playlist self, int clip, mlt_position position );
108extern int mlt_playlist_split_at( mlt_playlist self, mlt_position position, int left );
109extern int mlt_playlist_join( mlt_playlist self, int clip, int count, int merge );
110extern int mlt_playlist_mix( mlt_playlist self, int clip, int length, mlt_transition transition );
111extern int mlt_playlist_mix_in( mlt_playlist self, int clip, int length );
112extern int mlt_playlist_mix_out( mlt_playlist self, int clip, int length );
113extern int mlt_playlist_mix_add( mlt_playlist self, int clip, mlt_transition transition );
117extern int mlt_playlist_clip_is_mix( mlt_playlist self, int clip );
118extern void mlt_playlist_consolidate_blanks( mlt_playlist self, int keep_length );
119extern int mlt_playlist_is_blank( mlt_playlist self, int clip );
121extern void mlt_playlist_insert_blank( mlt_playlist self, int clip, int out );
122extern void mlt_playlist_pad_blanks( mlt_playlist self, mlt_position position, int length, int find );
124extern int mlt_playlist_insert_at( mlt_playlist self, mlt_position position, mlt_producer producer, int mode );
125extern int mlt_playlist_clip_start( mlt_playlist self, int clip );
126extern int mlt_playlist_clip_length( mlt_playlist self, int clip );
127extern int mlt_playlist_blanks_from( mlt_playlist self, int clip, int bounded );
128extern int mlt_playlist_remove_region( mlt_playlist self, mlt_position position, int length );
129extern int mlt_playlist_move_region( mlt_playlist self, mlt_position position, int length, int new_position );
131
132#endif
133
int mlt_playlist_move_region(mlt_playlist self, mlt_position position, int length, int new_position)
int mlt_playlist_remove(mlt_playlist self, int where)
int mlt_playlist_clip_start(mlt_playlist self, int clip)
int mlt_playlist_remove_region(mlt_playlist self, mlt_position position, int length)
int mlt_playlist_append(mlt_playlist self, mlt_producer producer)
int mlt_playlist_current_clip(mlt_playlist self)
int mlt_playlist_is_blank_at(mlt_playlist self, mlt_position position)
int mlt_playlist_clip_is_mix(mlt_playlist self, int clip)
int mlt_playlist_get_clip_info(mlt_playlist self, mlt_playlist_clip_info *info, int index)
int mlt_playlist_insert(mlt_playlist self, mlt_producer producer, int where, mlt_position in, mlt_position out)
int mlt_playlist_mix_in(mlt_playlist self, int clip, int length)
int mlt_playlist_join(mlt_playlist self, int clip, int count, int merge)
void mlt_playlist_consolidate_blanks(mlt_playlist self, int keep_length)
int mlt_playlist_mix_add(mlt_playlist self, int clip, mlt_transition transition)
int mlt_playlist_resize_clip(mlt_playlist self, int clip, mlt_position in, mlt_position out)
mlt_producer mlt_playlist_current(mlt_playlist self)
int mlt_playlist_clip_length(mlt_playlist self, int clip)
void mlt_playlist_close(mlt_playlist self)
void mlt_playlist_insert_blank(mlt_playlist self, int clip, int out)
int mlt_playlist_clear(mlt_playlist self)
int mlt_playlist_split_at(mlt_playlist self, mlt_position position, int left)
int mlt_playlist_mix_out(mlt_playlist self, int clip, int length)
void mlt_playlist_pad_blanks(mlt_playlist self, mlt_position position, int length, int find)
int mlt_playlist_blanks_from(mlt_playlist self, int clip, int bounded)
int mlt_playlist_mix(mlt_playlist self, int clip, int length, mlt_transition transition)
int mlt_playlist_reorder(mlt_playlist self, const int *indices)
mlt_producer mlt_playlist_get_clip(mlt_playlist self, int clip)
int mlt_playlist_get_clip_index_at(mlt_playlist self, mlt_position position)
mlt_position mlt_playlist_clip(mlt_playlist self, mlt_whence whence, int index)
mlt_properties mlt_playlist_properties(mlt_playlist self)
int mlt_playlist_split(mlt_playlist self, int clip, mlt_position position)
int mlt_playlist_blank_time(mlt_playlist self, const char *length)
int mlt_playlist_append_io(mlt_playlist self, mlt_producer producer, mlt_position in, mlt_position out)
int mlt_playlist_is_blank(mlt_playlist self, int clip)
mlt_producer mlt_playlist_get_clip_at(mlt_playlist self, mlt_position position)
mlt_producer mlt_playlist_replace_with_blank(mlt_playlist self, int clip)
int mlt_playlist_insert_at(mlt_playlist self, mlt_position position, mlt_producer producer, int mode)
int mlt_playlist_repeat_clip(mlt_playlist self, int clip, int repeat)
mlt_service mlt_playlist_service(mlt_playlist self)
mlt_playlist mlt_playlist_init()
int mlt_playlist_count(mlt_playlist self)
int mlt_playlist_move(mlt_playlist self, int from, int to)
mlt_producer mlt_playlist_producer(mlt_playlist self)
mlt_playlist mlt_playlist_new(mlt_profile profile)
int mlt_playlist_blank(mlt_playlist self, mlt_position out)
abstraction for all producer services
int32_t mlt_position
Definition mlt_types.h:163
mlt_whence
The relative time qualifiers.
Definition mlt_types.h:131
structure for returning clip information from a playlist entry
Definition mlt_playlist.h:32
mlt_position length
the unedited duration of the clip
Definition mlt_playlist.h:41
float fps
the frame rate of the clip
Definition mlt_playlist.h:42
mlt_producer cut
the clips' cut producer
Definition mlt_playlist.h:35
int repeat
the number of times the clip is repeated
Definition mlt_playlist.h:43
mlt_position start
the time this begins relative to the beginning of the playlist
Definition mlt_playlist.h:36
mlt_position frame_in
the clip's in point
Definition mlt_playlist.h:38
mlt_position frame_out
the clip's out point
Definition mlt_playlist.h:39
int clip
the index of the clip within the playlist
Definition mlt_playlist.h:33
char * resource
the file name or address of the clip
Definition mlt_playlist.h:37
mlt_producer producer
the clip's producer (or parent producer of a cut)
Definition mlt_playlist.h:34
mlt_position frame_count
the duration of the clip
Definition mlt_playlist.h:40
Playlist class.
Definition mlt_playlist.h:73
int count
Definition mlt_playlist.h:78
int size
Definition mlt_playlist.h:77
struct mlt_producer_s blank
Definition mlt_playlist.h:75
playlist_entry ** list
Definition mlt_playlist.h:79
struct mlt_producer_s parent
Definition mlt_playlist.h:74
Producer abstract service class.
Definition mlt_producer.h:70
Profile class.
Definition mlt_profile.h:35
Properties class.
Definition mlt_properties.h:37
Service abstract base class.
Definition mlt_service.h:58
Transition abstract service class.
Definition mlt_transition.h:42
Virtual playlist entry used by mlt_playlist_s.
Definition mlt_playlist.c:38