1 /* 2 * gstrtpvp9depay.h - Header for GstRtpVP9Depay 3 * Copyright (C) 2011 Sjoerd Simons <sjoerd@luon.net> 4 * Copyright (C) 2015 Stian Selnes <stian@pexip.com> 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 8 * License as published by the Free Software Foundation; either 9 * version 2.1 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 Software 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 */ 20 21 #ifndef __GST_RTP_VP9_DEPAY_H__ 22 #define __GST_RTP_VP9_DEPAY_H__ 23 24 #include <gst/base/gstadapter.h> 25 #include <gst/rtp/gstrtpbasedepayload.h> 26 27 G_BEGIN_DECLS 28 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, \ 35 GstRtpVP9DepayClass)) 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, \ 42 GstRtpVP9DepayClass)) 43 44 typedef struct _GstRtpVP9Depay GstRtpVP9Depay; 45 typedef struct _GstRtpVP9DepayClass GstRtpVP9DepayClass; 46 47 struct _GstRtpVP9DepayClass 48 { 49 GstRTPBaseDepayloadClass parent_class; 50 }; 51 52 struct _GstRtpVP9Depay 53 { 54 GstRTPBaseDepayload parent; 55 GstAdapter *adapter; 56 gboolean started; 57 58 gint ss_width; 59 gint ss_height; 60 gint last_width; 61 gint last_height; 62 gboolean caps_sent; 63 }; 64 65 GType gst_rtp_vp9_depay_get_type (void); 66 67 gboolean gst_rtp_vp9_depay_plugin_init (GstPlugin * plugin); 68 69 G_END_DECLS 70 71 #endif /* #ifndef __GST_RTP_VP9_DEPAY_H__ */ 72