omxvideodec: support interlace-mode=interleaved input
[platform/upstream/gstreamer.git] / omx / gstomxtheoradec.h
1 /*
2  * Copyright (C) 2013, Collabora Ltd.
3  *   Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation
8  * version 2.1 of the License.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
18  *
19  */
20
21 #ifndef __GST_OMX_THEORA_DEC_H__
22 #define __GST_OMX_THEORA_DEC_H__
23
24 #include <gst/gst.h>
25 #include "gstomxvideodec.h"
26
27 G_BEGIN_DECLS
28
29 #define GST_TYPE_OMX_THEORA_DEC \
30   (gst_omx_theora_dec_get_type())
31 #define GST_OMX_THEORA_DEC(obj) \
32   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_OMX_THEORA_DEC,GstOMXTheoraDec))
33 #define GST_OMX_THEORA_DEC_CLASS(klass) \
34   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_OMX_THEORA_DEC,GstOMXTheoraDecClass))
35 #define GST_OMX_THEORA_DEC_GET_CLASS(obj) \
36   (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_OMX_THEORA_DEC,GstOMXTheoraDecClass))
37 #define GST_IS_OMX_THEORA_DEC(obj) \
38   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_OMX_THEORA_DEC))
39 #define GST_IS_OMX_THEORA_DEC_CLASS(obj) \
40   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_OMX_THEORA_DEC))
41
42 typedef struct _GstOMXTheoraDec GstOMXTheoraDec;
43 typedef struct _GstOMXTheoraDecClass GstOMXTheoraDecClass;
44
45 struct _GstOMXTheoraDec
46 {
47   GstOMXVideoDec parent;
48   GstBuffer *header;
49 };
50
51 struct _GstOMXTheoraDecClass
52 {
53   GstOMXVideoDecClass parent_class;
54 };
55
56 GType gst_omx_theora_dec_get_type (void);
57
58 G_END_DECLS
59
60 #endif /* __GST_OMX_THEORA_DEC_H__ */
61