MLT 7.40.0
Multimedia Framework
MltFrame.h
Go to the documentation of this file.
1
20#ifndef MLTPP_FRAME_H
21#define MLTPP_FRAME_H
22
23#include "MltConfig.h"
24
25#include "MltProperties.h"
26#include <framework/mlt.h>
27
28namespace Mlt {
29class Properties;
30class Producer;
31class Service;
32
43{
44private:
46
47public:
48 Frame();
50 Frame(mlt_frame frame);
51 Frame(Frame &frame);
52 Frame(const Frame &frame);
53 virtual ~Frame();
54 Frame &operator=(const Frame &frame);
55 virtual mlt_frame get_frame();
56 mlt_properties get_properties() override;
59 uint8_t *get_image(mlt_image_format &format, int &w, int &h, int writable = 0);
61 unsigned char *fetch_image(mlt_image_format format, int w, int h, int writable = 0);
63 void *get_audio(mlt_audio_format &format, int &frequency, int &channels, int &samples);
65 unsigned char *get_waveform(int w, int h);
67 Producer *get_original_producer();
69 int get_position();
71 mlt_properties get_unique_properties(Service &service);
72 int set_image(uint8_t *image, int size, mlt_destructor destroy);
73 int set_alpha(uint8_t *alpha, int size, mlt_destructor destroy);
74};
75} // namespace Mlt
76
77#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_frame — a single unit of audio/video data.
Definition MltFrame.h:43
mlt_frame instance
Definition MltFrame.h:45
C++ wrapper for mlt_producer — origin of audio/video data.
Definition MltProducer.h:46
C++ wrapper for mlt_properties.
Definition MltProperties.h:41
C++ wrapper for mlt_service — abstract base for all MLT services.
Definition MltService.h:47
header file for lazy client and implementation code :-)
void(* mlt_destructor)(void *)
pointer to destructor function
Definition mlt_types.h:307
mlt_image_format
The set of supported image formats.
Definition mlt_types.h:40
mlt_audio_format
The set of supported audio formats.
Definition mlt_types.h:57
MLT C++ wrapper Copyright (C) 2015-2026 Meltytech, LLC.
Definition MltAnimation.h:27
Frame class.
Definition mlt_frame.h:91
Properties class.
Definition mlt_properties.h:41