0dc5c53cffd31d6474d06a5f05793ccf63db8b25
[platform/upstream/gst-plugins-good.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 <gst/base/gstadapter.h>
24 #include <gst/rtp/gstrtpbasedepayload.h>
25
26 G_BEGIN_DECLS
27
28 #define GST_TYPE_RTP_VP8_DEPAY \
29   (gst_rtp_vp8_depay_get_type())
30 #define GST_RTP_VP8_DEPAY(obj) \
31   (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_RTP_VP8_DEPAY, GstRtpVP8Depay))
32 #define GST_RTP_VP8_DEPAY_CLASS(klass) \
33   (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_RTP_VP8_DEPAY, \
34     GstRtpVP8DepayClass))
35 #define GST_IS_RTP_VP8_DEPAY(obj) \
36   (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_RTP_VP8_DEPAY))
37 #define GST_IS_RTP_VP8_DEPAY_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_RTP_VP8_DEPAY))
39 #define GST_RTP_VP8_DEPAY_GET_CLASS(obj) \
40   (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_RTP_VP8_DEPAY, \
41     GstRtpVP8DepayClass))
42
43 typedef struct _GstRtpVP8Depay GstRtpVP8Depay;
44 typedef struct _GstRtpVP8DepayClass GstRtpVP8DepayClass;
45
46 struct _GstRtpVP8DepayClass
47 {
48   GstRTPBaseDepayloadClass parent_class;
49 };
50
51 struct _GstRtpVP8Depay
52 {
53   GstRTPBaseDepayload parent;
54   GstAdapter *adapter;
55   gboolean started;
56
57 #ifdef TIZEN_FEATURE_GST_UPSTREAM
58   gboolean waiting_for_keyframe;
59 #else
60   gboolean caps_sent;
61 #endif
62   gint last_profile;
63   gint last_width;
64   gint last_height;
65 #ifdef TIZEN_FEATURE_GST_UPSTREAM
66   gboolean wait_for_keyframe;
67 #endif
68 };
69
70 GType gst_rtp_vp8_depay_get_type (void);
71
72 gboolean gst_rtp_vp8_depay_plugin_init (GstPlugin * plugin);
73
74 G_END_DECLS
75
76 #endif /* #ifndef __GST_RTP_VP8_DEPAY_H__ */