rtpvp8: port some more to new memory API
[platform/upstream/gstreamer.git] / gst / rtp / gstrtpvp8depay.h
1 /*
2  * gstrtpvp8depay.h - Header for GstRtpVP8Depay
3  * Copyright (C) 2011 Sjoerd Simons <sjoerd@luon.net>
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; either
8  * version 2.1 of the License, or (at your option) any later version.
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 St, Fifth Floor, Boston, MA  02110-1301  USA
18  */
19
20 #ifndef __GST_RTP_VP8_DEPAY_H__
21 #define __GST_RTP_VP8_DEPAY_H__
22
23 #include <glib-object.h>
24 #include <gst/base/gstadapter.h>
25 #include <gst/rtp/gstrtpbasedepayload.h>
26
27 G_BEGIN_DECLS typedef struct _GstRtpVP8Depay GstRtpVP8Depay;
28 typedef struct _GstRtpVP8DepayClass GstRtpVP8DepayClass;
29
30 struct _GstRtpVP8DepayClass
31 {
32   GstRTPBaseDepayloadClass parent_class;
33 };
34
35 struct _GstRtpVP8Depay
36 {
37   GstRTPBaseDepayload parent;
38   GstAdapter *adapter;
39   gboolean started;
40 };
41
42 GType gst_rtp_vp8_depay_get_type (void);
43
44 /* TYPE MACROS */
45 #define GST_TYPE_RTP_VP8_DEPAY \
46   (gst_rtp_vp8_depay_get_type())
47 #define GST_RTP_VP8_DEPAY(obj) \
48   (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_RTP_VP8_DEPAY, GstRtpVP8Depay))
49 #define GST_RTP_VP8_DEPAY_CLASS(klass) \
50   (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_RTP_VP8_DEPAY, \
51     GstRtpVP8DepayClass))
52 #define GST_IS_RTP_VP8_DEPAY(obj) \
53   (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_RTP_VP8_DEPAY))
54 #define GST_IS_RTP_VP8_DEPAY_CLASS(klass) \
55   (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_RTP_VP8_DEPAY))
56 #define GST_RTP_VP8_DEPAY_GET_CLASS(obj) \
57   (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_RTP_VP8_DEPAY, \
58     GstRtpVP8DepayClass))
59
60 gboolean gst_rtp_vp8_depay_plugin_init (GstPlugin * plugin);
61
62 G_END_DECLS
63 #endif /* #ifndef __GST_RTP_VP8_DEPAY_H__ */