MLT 7.40.0
Multimedia Framework
MltProfile.h
Go to the documentation of this file.
1
20#ifndef MLTPP_PROFILE_H
21#define MLTPP_PROFILE_H
22
23#include "MltConfig.h"
24
25#ifdef SWIG
26#define MLTPP_DECLSPEC
27#endif
28
29#include <framework/mlt.h>
30
31namespace Mlt {
32class Properties;
33class Producer;
34
45{
46private:
48
49public:
50 Profile();
51 Profile(const char *name);
52 Profile(Properties &properties);
53 Profile(mlt_profile profile);
54 ~Profile();
55
56 bool is_valid() const;
57 mlt_profile get_profile() const;
58 char *description() const;
59 int frame_rate_num() const;
60 int frame_rate_den() const;
61 double fps() const;
62 int width() const;
63 int height() const;
64 bool progressive() const;
65 int sample_aspect_num() const;
66 int sample_aspect_den() const;
67 double sar() const;
68 int display_aspect_num() const;
69 int display_aspect_den() const;
70 double dar() const;
71 int is_explicit() const;
72 int colorspace() const;
74 static Properties *list();
75 void from_producer(Producer &producer);
76 void set_width(int width);
77 void set_height(int height);
78 void set_sample_aspect(int numerator, int denominator);
79 void set_display_aspect(int numerator, int denominator);
80 void set_progressive(int progressive);
81 void set_colorspace(int colorspace);
82 void set_frame_rate(int numerator, int denominator);
83 void set_explicit(int boolean);
84 double scale_width(int width);
85 double scale_height(int height);
86 bool is_valid();
87};
88} // namespace Mlt
89
90#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
C++ wrapper for mlt_profile — video format parameters.
Definition MltProfile.h:45
mlt_profile instance
Definition MltProfile.h:47
C++ wrapper for mlt_properties.
Definition MltProperties.h:41
header file for lazy client and implementation code :-)
MLT C++ wrapper Copyright (C) 2015-2026 Meltytech, LLC.
Definition MltAnimation.h:27
Profile class.
Definition mlt_profile.h:36