MLT 7.40.0
Multimedia Framework
mlt_producer.h
Go to the documentation of this file.
1
23#ifndef MLT_PRODUCER_H
24#define MLT_PRODUCER_H
25
26#include "mlt_export.h"
27#include "mlt_filter.h"
28#include "mlt_profile.h"
29#include "mlt_service.h"
30
108
109/*
110 * Public final methods
111 */
112
113#define MLT_PRODUCER_SERVICE(producer) (&(producer)->parent)
114#define MLT_PRODUCER_PROPERTIES(producer) MLT_SERVICE_PROPERTIES(MLT_PRODUCER_SERVICE(producer))
115
116MLT_EXPORT int mlt_producer_init(mlt_producer self, void *child);
120MLT_EXPORT int mlt_producer_seek(mlt_producer self, mlt_position position);
121MLT_EXPORT int mlt_producer_seek_time(mlt_producer self, const char *time);
125MLT_EXPORT int mlt_producer_set_speed(mlt_producer self, double speed);
126MLT_EXPORT double mlt_producer_get_speed(mlt_producer self);
127MLT_EXPORT double mlt_producer_get_fps(mlt_producer self);
129MLT_EXPORT int mlt_producer_clear(mlt_producer self);
136MLT_EXPORT int mlt_producer_attach(mlt_producer self, mlt_filter filter);
137MLT_EXPORT int mlt_producer_detach(mlt_producer self, mlt_filter filter);
138MLT_EXPORT mlt_filter mlt_producer_filter(mlt_producer self, int index);
139MLT_EXPORT mlt_producer mlt_producer_cut(mlt_producer self, int in, int out);
145MLT_EXPORT void mlt_producer_close(mlt_producer self);
147MLT_EXPORT void mlt_producer_set_creation_time(mlt_producer self, int64_t creation_time);
148MLT_EXPORT int mlt_producer_probe(mlt_producer self);
149
150#endif
abstraction for all filter services
MLT_EXPORT mlt_producer mlt_producer_new(mlt_profile)
MLT_EXPORT mlt_producer mlt_producer_cut_parent(mlt_producer self)
MLT_EXPORT int mlt_producer_detach(mlt_producer self, mlt_filter filter)
MLT_EXPORT int mlt_producer_init(mlt_producer self, void *child)
MLT_EXPORT void mlt_producer_prepare_next(mlt_producer self)
MLT_EXPORT int64_t mlt_producer_get_creation_time(mlt_producer self)
MLT_EXPORT mlt_position mlt_producer_get_playtime(mlt_producer self)
MLT_EXPORT int mlt_producer_is_mix(mlt_producer self)
MLT_EXPORT mlt_properties mlt_producer_properties(mlt_producer self)
MLT_EXPORT int mlt_producer_is_cut(mlt_producer self)
MLT_EXPORT double mlt_producer_get_fps(mlt_producer self)
MLT_EXPORT int mlt_producer_attach(mlt_producer self, mlt_filter filter)
MLT_EXPORT mlt_filter mlt_producer_filter(mlt_producer self, int index)
MLT_EXPORT int mlt_producer_seek_time(mlt_producer self, const char *time)
MLT_EXPORT char * mlt_producer_get_length_time(mlt_producer self, mlt_time_format)
MLT_EXPORT int mlt_producer_optimise(mlt_producer self)
MLT_EXPORT mlt_position mlt_producer_get_length(mlt_producer self)
MLT_EXPORT void mlt_producer_set_creation_time(mlt_producer self, int64_t creation_time)
MLT_EXPORT mlt_position mlt_producer_frame(mlt_producer self)
MLT_EXPORT char * mlt_producer_frame_time(mlt_producer self, mlt_time_format)
MLT_EXPORT int mlt_producer_seek(mlt_producer self, mlt_position position)
MLT_EXPORT int mlt_producer_clear(mlt_producer self)
MLT_EXPORT int mlt_producer_probe(mlt_producer self)
MLT_EXPORT mlt_service mlt_producer_service(mlt_producer self)
MLT_EXPORT mlt_producer mlt_producer_cut(mlt_producer self, int in, int out)
MLT_EXPORT void mlt_producer_close(mlt_producer self)
MLT_EXPORT double mlt_producer_get_speed(mlt_producer self)
MLT_EXPORT mlt_position mlt_producer_position(mlt_producer self)
MLT_EXPORT int mlt_producer_is_blank(mlt_producer self)
MLT_EXPORT int mlt_producer_set_speed(mlt_producer self, double speed)
MLT_EXPORT int mlt_producer_set_in_and_out(mlt_producer self, mlt_position in, mlt_position out)
MLT_EXPORT mlt_position mlt_producer_get_in(mlt_producer self)
MLT_EXPORT mlt_position mlt_producer_get_out(mlt_producer self)
video output definition
interface declaration for all service classes
mlt_time_format
The time string formats.
Definition mlt_types.h:172
int32_t mlt_position
Definition mlt_types.h:255
struct mlt_frame_s ** mlt_frame_ptr
pointer to Frame object
Definition mlt_types.h:281
struct mlt_producer_s * mlt_producer
pointer to Producer object
Definition mlt_types.h:286
void(* mlt_destructor)(void *)
pointer to destructor function
Definition mlt_types.h:307
Filter abstract service class.
Definition mlt_filter.h:41
Producer abstract service class.
Definition mlt_producer.h:71
mlt_destructor close
the destructor virtual function
Definition mlt_producer.h:102
void * local
instance object
Definition mlt_producer.h:105
int(* seek)(mlt_producer, mlt_position)
Seek to a specified position (virtual function).
Definition mlt_producer.h:90
int(* get_frame)(mlt_producer, mlt_frame_ptr, int)
Get a frame of data (virtual function).
Definition mlt_producer.h:82
struct mlt_service_s parent
A producer is a service.
Definition mlt_producer.h:73
void * close_object
the object supplied to the close virtual function
Definition mlt_producer.h:103
int(* set_in_and_out)(mlt_producer, mlt_position, mlt_position)
Set the in and out points.
Definition mlt_producer.h:99
void * child
the object of a subclass
Definition mlt_producer.h:106
Profile class.
Definition mlt_profile.h:36
Properties class.
Definition mlt_properties.h:41
Service abstract base class.
Definition mlt_service.h:59
void * child
the object of a subclass
Definition mlt_service.h:76