2 * gstrtpvp9depay.h - Header for GstRtpVP9Depay
3 * Copyright (C) 2011 Sjoerd Simons <sjoerd@luon.net>
4 * Copyright (C) 2015 Stian Selnes <stian@pexip.com>
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; either
9 * version 2.1 of the License, or (at your option) any later version.
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.
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 St, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef __GST_RTP_VP9_DEPAY_H__
22 #define __GST_RTP_VP9_DEPAY_H__
24 #include <gst/base/gstadapter.h>
25 #include <gst/rtp/gstrtpbasedepayload.h>
29 #define GST_TYPE_RTP_VP9_DEPAY \
30 (gst_rtp_vp9_depay_get_type())
31 #define GST_RTP_VP9_DEPAY(obj) \
32 (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_RTP_VP9_DEPAY, GstRtpVP9Depay))
33 #define GST_RTP_VP9_DEPAY_CLASS(klass) \
34 (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_RTP_VP9_DEPAY, \
36 #define GST_IS_RTP_VP9_DEPAY(obj) \
37 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_RTP_VP9_DEPAY))
38 #define GST_IS_RTP_VP9_DEPAY_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_RTP_VP9_DEPAY))
40 #define GST_RTP_VP9_DEPAY_GET_CLASS(obj) \
41 (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_RTP_VP9_DEPAY, \
44 typedef struct _GstRtpVP9Depay GstRtpVP9Depay;
45 typedef struct _GstRtpVP9DepayClass GstRtpVP9DepayClass;
47 struct _GstRtpVP9DepayClass
49 GstRTPBaseDepayloadClass parent_class;
52 struct _GstRtpVP9Depay
54 GstRTPBaseDepayload parent;
62 guint last_picture_id;
63 GstEvent *last_lost_event;
64 /* In between pictures, we might store GstRTPPacketLost events instead
65 * of forwarding them immediately, we check upon reception of a new
66 * picture id whether a gap was introduced, in which case we do forward
67 * the event. This is to avoid forwarding spurious lost events for FEC
70 gboolean stop_lost_events;
71 gboolean inter_picture;
73 gboolean waiting_for_keyframe;
76 gboolean wait_for_keyframe;
77 gboolean request_keyframe;
80 GType gst_rtp_vp9_depay_get_type (void);
84 #endif /* #ifndef __GST_RTP_VP9_DEPAY_H__ */