Initialize Tizen 2.3
[framework/multimedia/gst-openmax.git] / wearable / omx / gstomx_base_videodec.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_BASE_VIDEODEC_H
23 #define GSTOMX_BASE_VIDEODEC_H
24
25 #include <gst/gst.h>
26
27 G_BEGIN_DECLS
28 #define GST_OMX_BASE_VIDEODEC(obj) (GstOmxBaseVideoDec *) (obj)
29 #define GST_OMX_BASE_VIDEODEC_TYPE (gst_omx_base_videodec_get_type ())
30 #define GST_OMX_BASE_VIDEODEC_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GST_OMX_BASE_VIDEODEC_TYPE, GstOmxBaseVideoDecClass))
31 typedef struct GstOmxBaseVideoDec GstOmxBaseVideoDec;
32 typedef struct GstOmxBaseVideoDecClass GstOmxBaseVideoDecClass;
33
34 typedef struct EnableTimestampReorderParams EnableTimestampReorderParams;
35 typedef struct EnableGemBuffersParams EnableGemBuffersParams;
36
37 #define HLS_MAX_WIDTH 1280 // Just an assumption that resolution in HLS will not cross HD
38 #define HLS_MAX_HEIGHT 720
39
40 #include "gstomx_base_filter.h"
41
42 struct GstOmxBaseVideoDec
43 {
44   GstOmxBaseFilter omx_base;
45
46   OMX_VIDEO_CODINGTYPE compression_format;
47   gint framerate_num;
48   gint framerate_denom;
49   gboolean IsDivx;
50 };
51
52 struct GstOmxBaseVideoDecClass
53 {
54   GstOmxBaseFilterClass parent_class;
55 };
56
57 struct EnableTimestampReorderParams {
58   OMX_U32 nSize;
59   OMX_VERSIONTYPE nVersion;
60   OMX_BOOL bEnable;
61 };
62
63 struct EnableGemBuffersParams
64 {
65   OMX_U32 nSize;
66   OMX_VERSIONTYPE nVersion;
67   OMX_U32 nPortIndex;
68   OMX_BOOL enable;
69 };
70
71 GType gst_omx_base_videodec_get_type (void);
72
73 G_END_DECLS
74 #endif /* GSTOMX_BASE_VIDEODEC_H */