MLT  7.38.0
Multimedia Framework
MltProducer.h
Go to the documentation of this file.
1 
20 #ifndef MLTPP_PRODUCER_H
21 #define MLTPP_PRODUCER_H
22 
23 #include "MltConfig.h"
24 
25 #include <framework/mlt.h>
26 
27 #include "MltService.h"
28 
29 namespace Mlt {
30 class Service;
31 class Filter;
32 class Profile;
33 class Frame;
34 
46 {
47 private:
50 
51 public:
52  Producer();
54  Producer(Profile &profile, const char *id, const char *service = NULL);
55  Producer(mlt_profile profile, const char *id, const char *service = NULL);
56  Producer(Service &producer);
58  Producer(mlt_producer producer);
59  Producer(Producer &producer);
60  Producer(const Producer &producer);
61  Producer(Producer *producer);
62  virtual ~Producer();
63  Producer &operator=(const Producer &producer);
64  virtual mlt_producer get_producer();
66  Producer &parent();
67  mlt_producer get_parent();
68  mlt_service get_service() override;
70  int seek(int position);
72  int seek(const char *time);
74  int position();
76  int frame();
78  char *frame_time(mlt_time_format = mlt_time_smpte_df);
80  int set_speed(double speed);
82  int pause();
84  double get_speed();
86  double get_fps();
88  int set_in_and_out(int in, int out);
90  int get_in();
92  int get_out();
94  int get_length();
95  char *get_length_time(mlt_time_format = mlt_time_smpte_df);
97  int get_playtime();
99  Producer *cut(int in = 0, int out = -1);
101  bool is_cut();
103  bool is_blank();
104  bool same_clip(Producer &that);
105  bool runs_into(Producer &that);
106  void optimise();
107  int clear();
108  int64_t get_creation_time();
109  void set_creation_time(int64_t creation_time);
110  bool probe();
111 };
112 } // namespace Mlt
113 
114 #endif
#define MLTPP_DECLSPEC
MltConfig.h - Convenience header file for all mlt++ objects Copyright (C) 2004-2026 Meltytech,...
Definition: MltConfig.h:33
C++ wrapper for mlt_producer — origin of audio/video data.
Definition: MltProducer.h:46
mlt_producer instance
Definition: MltProducer.h:48
Producer * parent_
Definition: MltProducer.h:49
C++ wrapper for mlt_profile — video format parameters.
Definition: MltProfile.h:45
C++ wrapper for mlt_service — abstract base for all MLT services.
Definition: MltService.h:47
header file for lazy client and implementation code :-)
mlt_time_format
The time string formats.
Definition: mlt_types.h:172
@ mlt_time_smpte_df
SMPTE timecode as [[[hh:]mm:]ss{:|;}]frames.
Definition: mlt_types.h:175
MLT C++ wrapper Copyright (C) 2015-2026 Meltytech, LLC.
Definition: MltAnimation.h:27
Producer abstract service class.
Definition: mlt_producer.h:71
Profile class.
Definition: mlt_profile.h:36
Service abstract base class.
Definition: mlt_service.h:59