mlt 0.7.6

mlt_playlist.h

Go to the documentation of this file.
00001 
00024 #ifndef _MLT_PLAYLIST_H_
00025 #define _MLT_PLAYLIST_H_
00026 
00027 #include "mlt_producer.h"
00028 
00032 typedef struct
00033 {
00034     int clip;                 
00035     mlt_producer producer;    
00036     mlt_producer cut;         
00037     mlt_position start;       
00038     char *resource;           
00039     mlt_position frame_in;    
00040     mlt_position frame_out;   
00041     mlt_position frame_count; 
00042     mlt_position length;      
00043     float fps;                
00044     int repeat;               
00045 }
00046 mlt_playlist_clip_info;
00047 
00051 typedef struct playlist_entry_s playlist_entry;
00052 
00068 struct mlt_playlist_s
00069 {
00070     struct mlt_producer_s parent;
00071     struct mlt_producer_s blank;
00072 
00073     int size;
00074     int count;
00075     playlist_entry **list;
00076 };
00077 
00078 #define MLT_PLAYLIST_PRODUCER( playlist )   ( &( playlist )->parent )
00079 #define MLT_PLAYLIST_SERVICE( playlist )    MLT_PRODUCER_SERVICE( MLT_PLAYLIST_PRODUCER( playlist ) )
00080 #define MLT_PLAYLIST_PROPERTIES( playlist ) MLT_SERVICE_PROPERTIES( MLT_PLAYLIST_SERVICE( playlist ) )
00081 
00082 extern mlt_playlist mlt_playlist_init( );
00083 extern mlt_producer mlt_playlist_producer( mlt_playlist self );
00084 extern mlt_service mlt_playlist_service( mlt_playlist self );
00085 extern mlt_properties mlt_playlist_properties( mlt_playlist self );
00086 extern int mlt_playlist_count( mlt_playlist self );
00087 extern int mlt_playlist_clear( mlt_playlist self );
00088 extern int mlt_playlist_append( mlt_playlist self, mlt_producer producer );
00089 extern int mlt_playlist_append_io( mlt_playlist self, mlt_producer producer, mlt_position in, mlt_position out );
00090 extern int mlt_playlist_blank( mlt_playlist self, mlt_position length );
00091 extern mlt_position mlt_playlist_clip( mlt_playlist self, mlt_whence whence, int index );
00092 extern int mlt_playlist_current_clip( mlt_playlist self );
00093 extern mlt_producer mlt_playlist_current( mlt_playlist self );
00094 extern int mlt_playlist_get_clip_info( mlt_playlist self, mlt_playlist_clip_info *info, int index );
00095 extern int mlt_playlist_insert( mlt_playlist self, mlt_producer producer, int where, mlt_position in, mlt_position out );
00096 extern int mlt_playlist_remove( mlt_playlist self, int where );
00097 extern int mlt_playlist_move( mlt_playlist self, int from, int to );
00098 extern int mlt_playlist_resize_clip( mlt_playlist self, int clip, mlt_position in, mlt_position out );
00099 extern int mlt_playlist_repeat_clip( mlt_playlist self, int clip, int repeat );
00100 extern int mlt_playlist_split( mlt_playlist self, int clip, mlt_position position );
00101 extern int mlt_playlist_split_at( mlt_playlist self, mlt_position position, int left );
00102 extern int mlt_playlist_join( mlt_playlist self, int clip, int count, int merge );
00103 extern int mlt_playlist_mix( mlt_playlist self, int clip, int length, mlt_transition transition );
00104 extern int mlt_playlist_mix_add( mlt_playlist self, int clip, mlt_transition transition );
00105 extern mlt_producer mlt_playlist_get_clip( mlt_playlist self, int clip );
00106 extern mlt_producer mlt_playlist_get_clip_at( mlt_playlist self, mlt_position position );
00107 extern int mlt_playlist_get_clip_index_at( mlt_playlist self, mlt_position position );
00108 extern int mlt_playlist_clip_is_mix( mlt_playlist self, int clip );
00109 extern void mlt_playlist_consolidate_blanks( mlt_playlist self, int keep_length );
00110 extern int mlt_playlist_is_blank( mlt_playlist self, int clip );
00111 extern int mlt_playlist_is_blank_at( mlt_playlist self, mlt_position position );
00112 extern void mlt_playlist_insert_blank( mlt_playlist self, int clip, int length );
00113 extern void mlt_playlist_pad_blanks( mlt_playlist self, mlt_position position, int length, int find );
00114 extern mlt_producer mlt_playlist_replace_with_blank( mlt_playlist self, int clip );
00115 extern int mlt_playlist_insert_at( mlt_playlist self, mlt_position position, mlt_producer producer, int mode );
00116 extern int mlt_playlist_clip_start( mlt_playlist self, int clip );
00117 extern int mlt_playlist_clip_length( mlt_playlist self, int clip );
00118 extern int mlt_playlist_blanks_from( mlt_playlist self, int clip, int bounded );
00119 extern int mlt_playlist_remove_region( mlt_playlist self, mlt_position position, int length );
00120 extern int mlt_playlist_move_region( mlt_playlist self, mlt_position position, int length, int new_position );
00121 extern void mlt_playlist_close( mlt_playlist self );
00122 
00123 #endif
00124 
TWiki Appliance - Powered by TurnKey Linux