]> git.sesse.net Git - mlt/blob - src/framework/mlt_property.h
add support for timecode and clock time strings to the framework
[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-2009 Ushodaya Enterprises Limited
7  * \author Charles Yates <charles.yates@pandora.be>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22  */
23
24 #ifndef _MLT_PROPERTY_H_
25 #define _MLT_PROPERTY_H_
26
27 #include "mlt_types.h"
28
29 #ifdef HAVE_SYS_PARAM_H
30 #include <sys/param.h>
31 #endif
32
33 #if defined(__GLIBC__) || defined(__DARWIN__) || (__FreeBSD_version >= 1000002)
34 #include <xlocale.h>
35 #else
36 typedef void* locale_t;
37 #endif
38
39 extern mlt_property mlt_property_init( );
40 extern int mlt_property_set_int( mlt_property self, int value );
41 extern int mlt_property_set_double( mlt_property self, double value );
42 extern int mlt_property_set_position( mlt_property self, mlt_position value );
43 extern int mlt_property_set_int64( mlt_property self, int64_t value );
44 extern int mlt_property_set_string( mlt_property self, const char *value );
45 extern int mlt_property_set_data( mlt_property self, void *value, int length, mlt_destructor destructor, mlt_serialiser serialiser );
46 extern int mlt_property_get_int( mlt_property self, double fps, locale_t );
47 extern double mlt_property_get_double( mlt_property self, double fps, locale_t );
48 extern mlt_position mlt_property_get_position( mlt_property self, double fps, locale_t );
49 extern int64_t mlt_property_get_int64( mlt_property self );
50 extern char *mlt_property_get_string( mlt_property self );
51 extern char *mlt_property_get_string_l( mlt_property self, locale_t );
52 extern void *mlt_property_get_data( mlt_property self, int *length );
53 extern void mlt_property_close( mlt_property self );
54 extern void mlt_property_pass( mlt_property self, mlt_property that );
55 extern char *mlt_property_get_time( mlt_property self, mlt_time_format, double fps, locale_t );
56
57 #endif