]> git.sesse.net Git - mlt/blob - src/framework/mlt_property.h
c951762ddb44acf1e784d62fea49c68fea598036
[mlt] / src / framework / mlt_property.h
1 /**
2  * \file mlt_property.h
3  * \brief Property class declaration
4  * \see mlt_property_s
5  *
6  * Copyright (C) 2003-2013 Ushodaya Enterprises Limited
7  * \author Charles Yates <charles.yates@pandora.be>
8  * \author Dan Dennedy <dan@dennedy.org>
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 2.1 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this library; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23  */
24
25 #ifndef _MLT_PROPERTY_H_
26 #define _MLT_PROPERTY_H_
27
28 #include "mlt_types.h"
29
30 #if defined(__FreeBSD__)
31 /* This header has existed since 1994 and defines __FreeBSD_version below. */
32 #include <sys/param.h>
33 #endif
34
35 #if defined(__GLIBC__) || defined(__DARWIN__) || (__FreeBSD_version >= 900506)
36 #include <xlocale.h>
37 #else
38 typedef void* locale_t;
39 #endif
40
41 extern mlt_property mlt_property_init( );
42 extern int mlt_property_set_int( mlt_property self, int value );
43 extern int mlt_property_set_double( mlt_property self, double value );
44 extern int mlt_property_set_position( mlt_property self, mlt_position value );
45 extern int mlt_property_set_int64( mlt_property self, int64_t value );
46 extern int mlt_property_set_string( mlt_property self, const char *value );
47 extern int mlt_property_set_data( mlt_property self, void *value, int length, mlt_destructor destructor, mlt_serialiser serialiser );
48 extern int mlt_property_get_int( mlt_property self, double fps, locale_t );
49 extern double mlt_property_get_double( mlt_property self, double fps, locale_t );
50 extern mlt_position mlt_property_get_position( mlt_property self, double fps, locale_t );
51 extern int64_t mlt_property_get_int64( mlt_property self );
52 extern char *mlt_property_get_string( mlt_property self );
53 extern char *mlt_property_get_string_l( mlt_property self, locale_t );
54 extern void *mlt_property_get_data( mlt_property self, int *length );
55 extern void mlt_property_close( mlt_property self );
56 extern void mlt_property_pass( mlt_property self, mlt_property that );
57 extern char *mlt_property_get_time( mlt_property self, mlt_time_format, double fps, locale_t );
58
59 extern int mlt_property_interpolate( mlt_property self, mlt_property points[], double progress, double fps, locale_t locale, mlt_keyframe_type interp );
60 extern double mlt_property_anim_get_double( mlt_property self, double fps, locale_t locale, int position, int length );
61 extern int mlt_property_anim_get_int( mlt_property self, double fps, locale_t locale, int position, int length );
62 extern char* mlt_property_anim_get_string( mlt_property self, double fps, locale_t locale, int position, int length );
63 extern int mlt_property_anim_set_double( mlt_property self, double value, double fps, locale_t locale, int position, int length, mlt_keyframe_type keyframe_type );
64 extern int mlt_property_anim_set_int( mlt_property self, int value, double fps, locale_t locale, int position, int length, mlt_keyframe_type keyframe_type );
65 extern int mlt_property_anim_set_string( mlt_property self, const char *value, double fps, locale_t locale, int position, int length );
66 extern mlt_animation mlt_property_get_animation( mlt_property self );
67
68 extern int mlt_property_set_rect( mlt_property self, mlt_rect value );
69 extern mlt_rect mlt_property_get_rect( mlt_property self, locale_t locale );
70 extern int mlt_property_anim_set_rect( mlt_property self, mlt_rect value, double fps, locale_t locale, int position, int length, mlt_keyframe_type keyframe_type );
71 extern mlt_rect mlt_property_anim_get_rect( mlt_property self, double fps, locale_t locale, int position, int length );
72
73 #endif