tizen beta release
[profile/ivi/gst-openmax0.10.git] / omx / gstomx.h
1 /*
2  * Copyright (C) 2007-2009 Nokia Corporation.
3  *
4  * Author: Felipe Contreras <felipe.contreras@nokia.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation
9  * version 2.1 of the License.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19  *
20  */
21
22 #ifndef GSTOMX_H
23 #define GSTOMX_H
24
25 #include <gst/gst.h>
26
27 G_BEGIN_DECLS GST_DEBUG_CATEGORY_EXTERN (gstomx_debug);
28 GST_DEBUG_CATEGORY_EXTERN (gstomx_util_debug);
29 #define GST_CAT_DEFAULT gstomx_debug
30
31 /* Fix_config_path */
32 #define OMX_CONFIG_DIRPATH "/opt/etc"
33 #define OMX_CONFIG_FILENAME "gst-openmax.conf"
34
35 enum
36 {
37   GSTOMX_ARG_0,
38   ARG_COMPONENT_NAME,
39   ARG_COMPONENT_ROLE,
40   ARG_LIBRARY_NAME,
41   GSTOMX_NUM_COMMON_PROP
42 };
43
44 gboolean gstomx_get_component_info (void *core, GType type);
45
46 void *gstomx_core_new (void *object, GType type);
47 GstCaps *gstomx_template_caps (GType type, const gchar * pad_name);
48 void gstomx_install_property_helper (GObjectClass * gobject_class);
49 gboolean gstomx_get_property_helper (void *core, guint prop_id, GValue * value);
50
51 G_END_DECLS
52 #endif /* GSTOMX_H */