mpeg4: replace GstVaapiTSB with GstAdapter (gst-plugins-base >= 0.10.24).
[profile/ivi/gstreamer-vaapi.git] / gst-libs / gst / vaapi / gstvaapidecoder_mpeg4.h
1 /*
2  *  gstvaapidecoder_mpeg4.h - MPEG-4 decoder
3  *
4  *  Copyright (C) 2011 Intel Corporation
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 License
8  *  as published by the Free Software Foundation; either version 2.1
9  *  of the License, or (at your option) any later version.
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
18  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  *  Boston, MA 02110-1301 USA
20  */
21
22 #ifndef GST_VAAPI_DECODER_MPEG4_H
23 #define GST_VAAPI_DECODER_MPEG4_H
24
25 #include <gst/vaapi/gstvaapidecoder.h>
26 #include <gst/base/gstadapter.h>
27
28 G_BEGIN_DECLS
29
30 #define GST_VAAPI_TYPE_DECODER_MPEG4 \
31     (gst_vaapi_decoder_mpeg4_get_type())
32
33 #define GST_VAAPI_DECODER_MPEG4(obj)                            \
34     (G_TYPE_CHECK_INSTANCE_CAST((obj),                          \
35                                 GST_VAAPI_TYPE_DECODER_MPEG4,   \
36                                 GstVaapiDecoderMpeg4))
37
38 #define GST_VAAPI_DECODER_MPEG4_CLASS(klass)                    \
39     (G_TYPE_CHECK_CLASS_CAST((klass),                           \
40                              GST_VAAPI_TYPE_DECODER_MPEG4,      \
41                              GstVaapiDecoderMpeg4Class))
42
43 #define GST_VAAPI_IS_DECODER_MPEG4(obj) \
44     (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_VAAPI_TYPE_DECODER_MPEG4))
45
46 #define GST_VAAPI_IS_DECODER_MPEG4_CLASS(klass) \
47     (G_TYPE_CHECK_CLASS_TYPE((klass), GST_VAAPI_TYPE_DECODER_MPEG4))
48
49 #define GST_VAAPI_DECODER_MPEG4_GET_CLASS(obj)                  \
50     (G_TYPE_INSTANCE_GET_CLASS((obj),                           \
51                                GST_VAAPI_TYPE_DECODER_MPEG4,    \
52                                GstVaapiDecoderMpeg4Class))
53
54 typedef struct _GstVaapiDecoderMpeg4            GstVaapiDecoderMpeg4;
55 typedef struct _GstVaapiDecoderMpeg4Private     GstVaapiDecoderMpeg4Private;
56 typedef struct _GstVaapiDecoderMpeg4Class       GstVaapiDecoderMpeg4Class;
57
58 /**
59  * GstVaapiDecoderMpeg4:
60  *
61  * A decoder based on Mpeg4.
62  */
63 struct _GstVaapiDecoderMpeg4 {
64     /*< private >*/
65     GstVaapiDecoder parent_instance;
66
67     GstVaapiDecoderMpeg4Private *priv;
68 };
69
70 /**
71  * GstVaapiDecoderMpeg4Class:
72  *
73  * A decoder class based on Mpeg4.
74  */
75 struct _GstVaapiDecoderMpeg4Class {
76     /*< private >*/
77     GstVaapiDecoderClass parent_class;
78 };
79
80 GType
81 gst_vaapi_decoder_mpeg4_get_type(void);
82
83 GstVaapiDecoder *
84 gst_vaapi_decoder_mpeg4_new(GstVaapiDisplay *display, GstCaps *caps);
85
86 G_END_DECLS
87
88 #endif /* GST_VAAPI_DECODER_MPEG4_H */