MLT 7.4.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_types.h"
27
35{
39 int width;
40 int height;
48};
49
50extern mlt_profile mlt_profile_init( const char *name );
51extern mlt_profile mlt_profile_load_file( const char *file );
53extern mlt_profile mlt_profile_load_string( const char *string );
54extern double mlt_profile_fps( mlt_profile profile );
55extern double mlt_profile_sar( mlt_profile profile );
56extern double mlt_profile_dar( mlt_profile profile );
57extern void mlt_profile_close( mlt_profile profile );
60extern void mlt_profile_from_producer( mlt_profile profile, mlt_producer producer );
61extern char *mlt_profile_lumas_dir( mlt_profile profile );
62extern double mlt_profile_scale_width( mlt_profile profile, int width );
63extern double mlt_profile_scale_height( mlt_profile profile, int height );
64#endif
Provides forward definitions of all public types.
Producer abstract service class.
Definition: mlt_producer.h:70
Profile class.
Definition: mlt_profile.h:35
mlt_profile mlt_profile_clone(mlt_profile profile)
Make a copy of a profile.
Definition: mlt_profile.c:326
mlt_profile mlt_profile_load_properties(mlt_properties properties)
Load a profile from a properties object.
Definition: mlt_profile.c:206
int frame_rate_num
the numerator of the video frame rate
Definition: mlt_profile.h:37
int progressive
a flag to indicate if the video is progressive scan, interlace if not set
Definition: mlt_profile.h:41
int frame_rate_den
the denominator of the video frame rate
Definition: mlt_profile.h:38
int height
the vertical resolution of the video
Definition: mlt_profile.h:40
double mlt_profile_dar(mlt_profile profile)
Get the display aspect ratio as floating point value.
Definition: mlt_profile.c:294
int colorspace
the Y'CbCr colorspace standard: =601 for ITU-R 601, =709 for ITU-R 709, or =240 for SMPTE240M
Definition: mlt_profile.h:46
int width
the horizontal resolution of the video
Definition: mlt_profile.h:39
int display_aspect_den
the denominator of the image aspect ratio in case it can not be simply derived (e....
Definition: mlt_profile.h:45
int is_explicit
used internally to indicate if the profile was requested explicitly or computed or defaulted
Definition: mlt_profile.h:47
char * mlt_profile_lumas_dir(mlt_profile profile)
Get the lumas subdirectory to use for the aspect ratio.
Definition: mlt_profile.c:477
double mlt_profile_scale_width(mlt_profile profile, int width)
Get the width scale factor.
Definition: mlt_profile.c:512
int sample_aspect_den
the denominator of the pixel aspect ratio
Definition: mlt_profile.h:43
mlt_profile mlt_profile_init(const char *name)
Construct a profile.
Definition: mlt_profile.c:99
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:44
void mlt_profile_close(mlt_profile profile)
Free up the global profile resources.
Definition: mlt_profile.c:308
mlt_profile mlt_profile_load_string(const char *string)
Load an anonymous profile from string.
Definition: mlt_profile.c:236
double mlt_profile_scale_height(mlt_profile profile, int height)
Get the height scale factor.
Definition: mlt_profile.c:525
int sample_aspect_num
the numerator of the pixel aspect ratio
Definition: mlt_profile.h:42
char * description
a brief description suitable as a label in UI menu
Definition: mlt_profile.h:36
void mlt_profile_from_producer(mlt_profile profile, mlt_producer producer)
Update the profile using the attributes of a producer.
Definition: mlt_profile.c:405
double mlt_profile_sar(mlt_profile profile)
Get the sample aspect ratio as a floating point value.
Definition: mlt_profile.c:279
mlt_profile mlt_profile_load_file(const char *file)
Load a profile from specific file.
Definition: mlt_profile.c:171
double mlt_profile_fps(mlt_profile profile)
Get the video frame rate as a floating point value.
Definition: mlt_profile.c:264
mlt_properties mlt_profile_list()
Get the list of profiles.
Definition: mlt_profile.c:352
Properties class.
Definition: mlt_properties.h:40