MLT  7.34.0
mlt_profile.h
Go to the documentation of this file.
1 
23 #ifndef MLT_PROFILE_H
24 #define MLT_PROFILE_H
25 
26 #include "mlt_export.h"
27 #include "mlt_types.h"
28 
36 {
37  char *description;
40  int width;
41  int height;
47  int colorspace;
49 };
50 
51 MLT_EXPORT mlt_profile mlt_profile_init(const char *name);
52 MLT_EXPORT mlt_profile mlt_profile_load_file(const char *file);
54 MLT_EXPORT mlt_profile mlt_profile_load_string(const char *string);
55 MLT_EXPORT double mlt_profile_fps(mlt_profile profile);
56 MLT_EXPORT double mlt_profile_sar(mlt_profile profile);
57 MLT_EXPORT double mlt_profile_dar(mlt_profile profile);
58 MLT_EXPORT void mlt_profile_close(mlt_profile profile);
61 MLT_EXPORT void mlt_profile_from_producer(mlt_profile profile, mlt_producer producer);
62 MLT_EXPORT char *mlt_profile_lumas_dir(mlt_profile profile);
63 MLT_EXPORT double mlt_profile_scale_width(mlt_profile profile, int width);
64 MLT_EXPORT double mlt_profile_scale_height(mlt_profile profile, int height);
65 #endif
Provides forward definitions of all public types.
Producer abstract service class.
Definition: mlt_producer.h:71
Profile class.
Definition: mlt_profile.h:36
mlt_profile mlt_profile_clone(mlt_profile profile)
Make a copy of a profile.
Definition: mlt_profile.c:306
mlt_profile mlt_profile_load_properties(mlt_properties properties)
Load a profile from a properties object.
Definition: mlt_profile.c:188
int frame_rate_num
the numerator of the video frame rate
Definition: mlt_profile.h:38
int progressive
a flag to indicate if the video is progressive scan, interlace if not set
Definition: mlt_profile.h:42
int frame_rate_den
the denominator of the video frame rate
Definition: mlt_profile.h:39
int height
the vertical resolution of the video
Definition: mlt_profile.h:41
double mlt_profile_dar(mlt_profile profile)
Get the display aspect ratio as floating point value.
Definition: mlt_profile.c:275
int colorspace
the Y'CbCr colorspace standard: see mlt_colorspace
Definition: mlt_profile.h:47
int width
the horizontal resolution of the video
Definition: mlt_profile.h:40
int display_aspect_den
the denominator of the image aspect ratio in case it can not be simply derived (e....
Definition: mlt_profile.h:46
int is_explicit
used internally to indicate if the profile was requested explicitly or computed or defaulted
Definition: mlt_profile.h:48
char * mlt_profile_lumas_dir(mlt_profile profile)
Get the lumas subdirectory to use for the aspect ratio.
Definition: mlt_profile.c:437
double mlt_profile_scale_width(mlt_profile profile, int width)
Get the width scale factor.
Definition: mlt_profile.c:472
int sample_aspect_den
the denominator of the pixel aspect ratio
Definition: mlt_profile.h:44
mlt_profile mlt_profile_init(const char *name)
Construct a profile.
Definition: mlt_profile.c:93
int display_aspect_num
the numerator of the image aspect ratio in case it can not be simply derived (e.g.
Definition: mlt_profile.h:45
void mlt_profile_close(mlt_profile profile)
Free up the global profile resources.
Definition: mlt_profile.c:289
mlt_profile mlt_profile_load_string(const char *string)
Load an anonymous profile from string.
Definition: mlt_profile.c:218
double mlt_profile_scale_height(mlt_profile profile, int height)
Get the height scale factor.
Definition: mlt_profile.c:485
int sample_aspect_num
the numerator of the pixel aspect ratio
Definition: mlt_profile.h:43
char * description
a brief description suitable as a label in UI menu
Definition: mlt_profile.h:37
void mlt_profile_from_producer(mlt_profile profile, mlt_producer producer)
Update the profile using the attributes of a producer.
Definition: mlt_profile.c:387
double mlt_profile_sar(mlt_profile profile)
Get the sample aspect ratio as a floating point value.
Definition: mlt_profile.c:260
mlt_profile mlt_profile_load_file(const char *file)
Load a profile from specific file.
Definition: mlt_profile.c:155
double mlt_profile_fps(mlt_profile profile)
Get the video frame rate as a floating point value.
Definition: mlt_profile.c:245
mlt_properties mlt_profile_list()
Get the list of profiles.
Definition: mlt_profile.c:329
Properties class.
Definition: mlt_properties.h:41