MLT 7.42.0
Multimedia Framework
mlt_property.h
Go to the documentation of this file.
1
23#ifndef MLT_PROPERTY_H
24#define MLT_PROPERTY_H
25
26#include "mlt_export.h"
27#include "mlt_types.h"
28
29#if defined(__FreeBSD__)
30/* This header has existed since 1994 and defines __FreeBSD_version below. */
31#include <sys/param.h>
32#endif
33
34#if defined(__GLIBC__)
35#include <locale.h>
36/* mlt_locale_t is a locale object from mlt_properties_set_lcnumeric, or NULL. */
37#define MLT_LOCALE_OBJECT 1
38typedef locale_t mlt_locale_t;
39#elif defined(__APPLE__) || (defined(__FreeBSD_version) && __FreeBSD_version >= 900506)
40#include <xlocale.h>
41#define MLT_LOCALE_OBJECT 1
42typedef locale_t mlt_locale_t;
43#elif defined(__OpenBSD__)
44/* XXX matches __nop_locale glue in libc++ */
45typedef void *mlt_locale_t;
46#elif (defined _WIN32 && defined _LIBCPP_VERSION)
47struct mlt_locale_t;
48#else
49typedef char *mlt_locale_t;
50#endif
51
53MLT_EXPORT void mlt_property_clear(mlt_property self);
55MLT_EXPORT int mlt_property_set_int(mlt_property self, int value);
56MLT_EXPORT int mlt_property_set_double(mlt_property self, double value);
58MLT_EXPORT int mlt_property_set_int64(mlt_property self, int64_t value);
59MLT_EXPORT int mlt_property_set_string(mlt_property self, const char *value);
61 void *value,
62 int length,
63 mlt_destructor destructor,
64 mlt_serialiser serialiser);
65MLT_EXPORT int mlt_property_get_int(mlt_property self, double fps, mlt_locale_t);
66MLT_EXPORT double mlt_property_get_double(mlt_property self, double fps, mlt_locale_t);
68MLT_EXPORT int64_t mlt_property_get_int64(mlt_property self);
73MLT_EXPORT void *mlt_property_get_data(mlt_property self, int *length);
74MLT_EXPORT void mlt_property_close(mlt_property self);
75MLT_EXPORT void mlt_property_pass(mlt_property self, mlt_property that);
77
79 mlt_property points[],
80 double progress,
81 double fps,
82 mlt_locale_t locale,
83 mlt_keyframe_type interp);
85 mlt_property self, double fps, mlt_locale_t locale, int position, int length);
87 mlt_property self, double fps, mlt_locale_t locale, int position, int length);
89 mlt_property self, double fps, mlt_locale_t locale, int position, int length);
91 double value,
92 double fps,
93 mlt_locale_t locale,
94 int position,
95 int length,
96 mlt_keyframe_type keyframe_type);
98 int value,
99 double fps,
100 mlt_locale_t locale,
101 int position,
102 int length,
103 mlt_keyframe_type keyframe_type);
105 mlt_property self, const char *value, double fps, mlt_locale_t locale, int position, int length);
108
110MLT_EXPORT mlt_color mlt_property_get_color(mlt_property self, double fps, mlt_locale_t locale);
112 mlt_color value,
113 double fps,
114 mlt_locale_t locale,
115 int position,
116 int length,
117 mlt_keyframe_type keyframe_type);
119 mlt_property self, double fps, mlt_locale_t locale, int position, int length);
120
121MLT_EXPORT int mlt_property_set_rect(mlt_property self, mlt_rect value);
124 mlt_rect value,
125 double fps,
126 mlt_locale_t locale,
127 int position,
128 int length,
129 mlt_keyframe_type keyframe_type);
131 mlt_property self, double fps, mlt_locale_t locale, int position, int length);
132
138
139#endif
char * mlt_locale_t
Definition mlt_property.h:49
MLT_EXPORT int mlt_property_set_rect(mlt_property self, mlt_rect value)
MLT_EXPORT mlt_color mlt_property_anim_get_color(mlt_property self, double fps, mlt_locale_t locale, int position, int length)
MLT_EXPORT char * mlt_property_get_string(mlt_property self)
MLT_EXPORT int mlt_property_is_color(mlt_property self)
MLT_EXPORT int mlt_property_anim_set_string(mlt_property self, const char *value, double fps, mlt_locale_t locale, int position, int length)
MLT_EXPORT void mlt_property_close(mlt_property self)
MLT_EXPORT int mlt_property_anim_set_int(mlt_property self, int value, double fps, mlt_locale_t locale, int position, int length, mlt_keyframe_type keyframe_type)
MLT_EXPORT int mlt_property_interpolate(mlt_property self, mlt_property points[], double progress, double fps, mlt_locale_t locale, mlt_keyframe_type interp)
MLT_EXPORT void mlt_property_pass(mlt_property self, mlt_property that)
MLT_EXPORT int mlt_property_set_properties(mlt_property self, mlt_properties properties)
MLT_EXPORT mlt_property mlt_property_init()
MLT_EXPORT mlt_rect mlt_property_anim_get_rect(mlt_property self, double fps, mlt_locale_t locale, int position, int length)
MLT_EXPORT int mlt_property_is_clear(mlt_property self)
MLT_EXPORT int mlt_property_is_numeric(mlt_property self, mlt_locale_t locale)
MLT_EXPORT int mlt_property_anim_set_rect(mlt_property self, mlt_rect value, double fps, mlt_locale_t locale, int position, int length, mlt_keyframe_type keyframe_type)
MLT_EXPORT mlt_rect mlt_property_get_rect(mlt_property self, mlt_locale_t locale)
MLT_EXPORT mlt_animation mlt_property_get_animation(mlt_property self)
MLT_EXPORT mlt_properties mlt_property_get_properties(mlt_property self)
MLT_EXPORT double mlt_property_get_double(mlt_property self, double fps, mlt_locale_t)
MLT_EXPORT int mlt_property_set_data(mlt_property self, void *value, int length, mlt_destructor destructor, mlt_serialiser serialiser)
MLT_EXPORT int mlt_property_anim_get_int(mlt_property self, double fps, mlt_locale_t locale, int position, int length)
MLT_EXPORT char * mlt_property_get_string_tf(mlt_property self, mlt_time_format)
MLT_EXPORT int mlt_property_set_double(mlt_property self, double value)
MLT_EXPORT mlt_position mlt_property_get_position(mlt_property self, double fps, mlt_locale_t)
MLT_EXPORT char * mlt_property_get_string_l(mlt_property self, mlt_locale_t)
MLT_EXPORT int mlt_property_anim_set_color(mlt_property self, mlt_color value, double fps, mlt_locale_t locale, int position, int length, mlt_keyframe_type keyframe_type)
MLT_EXPORT char * mlt_property_get_string_l_tf(mlt_property self, mlt_locale_t, mlt_time_format)
MLT_EXPORT int mlt_property_set_int64(mlt_property self, int64_t value)
MLT_EXPORT int mlt_property_anim_set_double(mlt_property self, double value, double fps, mlt_locale_t locale, int position, int length, mlt_keyframe_type keyframe_type)
MLT_EXPORT int64_t mlt_property_get_int64(mlt_property self)
MLT_EXPORT int mlt_property_is_rect(mlt_property self)
MLT_EXPORT int mlt_property_is_anim(mlt_property self)
MLT_EXPORT char * mlt_property_get_time(mlt_property self, mlt_time_format, double fps, mlt_locale_t)
MLT_EXPORT void mlt_property_clear(mlt_property self)
MLT_EXPORT void * mlt_property_get_data(mlt_property self, int *length)
MLT_EXPORT int mlt_property_set_string(mlt_property self, const char *value)
MLT_EXPORT char * mlt_property_anim_get_string(mlt_property self, double fps, mlt_locale_t locale, int position, int length)
MLT_EXPORT int mlt_property_set_color(mlt_property self, mlt_color value)
MLT_EXPORT double mlt_property_anim_get_double(mlt_property self, double fps, mlt_locale_t locale, int position, int length)
MLT_EXPORT int mlt_property_set_position(mlt_property self, mlt_position value)
MLT_EXPORT int mlt_property_set_int(mlt_property self, int value)
MLT_EXPORT mlt_color mlt_property_get_color(mlt_property self, double fps, mlt_locale_t locale)
MLT_EXPORT int mlt_property_get_int(mlt_property self, double fps, mlt_locale_t)
Provides forward definitions of all public types.
mlt_time_format
The time string formats.
Definition mlt_types.h:173
int32_t mlt_position
Definition mlt_types.h:256
void(* mlt_destructor)(void *)
pointer to destructor function
Definition mlt_types.h:308
mlt_keyframe_type
Interpolation methods for animation keyframes.
Definition mlt_types.h:182
char *(* mlt_serialiser)(void *, int length)
pointer to serialization function
Definition mlt_types.h:309
Property Animation class.
Definition mlt_animation.c:52
A tuple of color components.
Definition mlt_types.h:273
Properties class.
Definition mlt_properties.h:41
Property class.
Definition mlt_property.c:175
A rectangle type with coordinates, size, and opacity.
Definition mlt_types.h:262