Thomas Vander Stichele | f446400 | 2006-05-22 14:56:29 +0000 | [diff] [blame] | 1 | /* GStreamer |
Wim Taymans | 5e27695 | 2008-11-25 18:03:02 +0000 | [diff] [blame] | 2 | * Copyright (C) <2005> Wim Taymans <wim.taymans@gmail.com> |
Wim Taymans | 9a5c8cd | 2005-08-18 10:33:15 +0000 | [diff] [blame] | 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Library General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Library General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Library General Public |
| 15 | * License along with this library; if not, write to the |
Tim-Philipp Müller | 230cf41 | 2012-11-04 00:07:18 +0000 | [diff] [blame] | 16 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, |
| 17 | * Boston, MA 02110-1301, USA. |
Wim Taymans | 9a5c8cd | 2005-08-18 10:33:15 +0000 | [diff] [blame] | 18 | */ |
| 19 | |
Thomas Vander Stichele | 7a4f865 | 2005-12-01 14:30:01 +0000 | [diff] [blame] | 20 | #ifndef __GST_RTP_H263P_PAY_H__ |
| 21 | #define __GST_RTP_H263P_PAY_H__ |
Wim Taymans | 9a5c8cd | 2005-08-18 10:33:15 +0000 | [diff] [blame] | 22 | |
| 23 | #include <gst/gst.h> |
Wim Taymans | e84b8db | 2011-11-11 12:32:41 +0100 | [diff] [blame] | 24 | #include <gst/rtp/gstrtpbasepayload.h> |
Wim Taymans | 9a5c8cd | 2005-08-18 10:33:15 +0000 | [diff] [blame] | 25 | #include <gst/base/gstadapter.h> |
| 26 | |
| 27 | G_BEGIN_DECLS |
| 28 | |
Thomas Vander Stichele | 7a4f865 | 2005-12-01 14:30:01 +0000 | [diff] [blame] | 29 | #define GST_TYPE_RTP_H263P_PAY \ |
| 30 | (gst_rtp_h263p_pay_get_type()) |
| 31 | #define GST_RTP_H263P_PAY(obj) \ |
| 32 | (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_H263P_PAY,GstRtpH263PPay)) |
| 33 | #define GST_RTP_H263P_PAY_CLASS(klass) \ |
Stefan Kost | 1def669 | 2006-06-01 21:07:26 +0000 | [diff] [blame] | 34 | (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_H263P_PAY,GstRtpH263PPayClass)) |
Thomas Vander Stichele | 7a4f865 | 2005-12-01 14:30:01 +0000 | [diff] [blame] | 35 | #define GST_IS_RTP_H263P_PAY(obj) \ |
| 36 | (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_H263P_PAY)) |
Stefan Kost | 1def669 | 2006-06-01 21:07:26 +0000 | [diff] [blame] | 37 | #define GST_IS_RTP_H263P_PAY_CLASS(klass) \ |
Thomas Vander Stichele | 7a4f865 | 2005-12-01 14:30:01 +0000 | [diff] [blame] | 38 | (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_H263P_PAY)) |
Wim Taymans | 9a5c8cd | 2005-08-18 10:33:15 +0000 | [diff] [blame] | 39 | |
Thomas Vander Stichele | 7a4f865 | 2005-12-01 14:30:01 +0000 | [diff] [blame] | 40 | typedef struct _GstRtpH263PPay GstRtpH263PPay; |
| 41 | typedef struct _GstRtpH263PPayClass GstRtpH263PPayClass; |
Wim Taymans | 9a5c8cd | 2005-08-18 10:33:15 +0000 | [diff] [blame] | 42 | |
Antoine Tremblay | 0ff05f8 | 2007-05-21 08:57:18 +0000 | [diff] [blame] | 43 | typedef enum |
| 44 | { |
| 45 | GST_FRAGMENTATION_MODE_NORMAL = 0, |
| 46 | GST_FRAGMENTATION_MODE_SYNC = 1 |
| 47 | } GstFragmentationMode; |
| 48 | |
Thomas Vander Stichele | 7a4f865 | 2005-12-01 14:30:01 +0000 | [diff] [blame] | 49 | struct _GstRtpH263PPay |
Wim Taymans | 9a5c8cd | 2005-08-18 10:33:15 +0000 | [diff] [blame] | 50 | { |
Wim Taymans | 249d008 | 2011-11-11 12:25:01 +0100 | [diff] [blame] | 51 | GstRTPBasePayload payload; |
Wim Taymans | 9a5c8cd | 2005-08-18 10:33:15 +0000 | [diff] [blame] | 52 | |
Antoine Tremblay | 0ff05f8 | 2007-05-21 08:57:18 +0000 | [diff] [blame] | 53 | GstAdapter *adapter; |
Wim Taymans | 2428a1c | 2008-10-27 11:03:53 +0000 | [diff] [blame] | 54 | GstClockTime first_timestamp; |
| 55 | GstClockTime first_duration; |
Antoine Tremblay | 0ff05f8 | 2007-05-21 08:57:18 +0000 | [diff] [blame] | 56 | GstFragmentationMode fragmentation_mode; |
Wim Taymans | 9a5c8cd | 2005-08-18 10:33:15 +0000 | [diff] [blame] | 57 | }; |
| 58 | |
Thomas Vander Stichele | 7a4f865 | 2005-12-01 14:30:01 +0000 | [diff] [blame] | 59 | struct _GstRtpH263PPayClass |
Wim Taymans | 9a5c8cd | 2005-08-18 10:33:15 +0000 | [diff] [blame] | 60 | { |
Wim Taymans | 249d008 | 2011-11-11 12:25:01 +0100 | [diff] [blame] | 61 | GstRTPBasePayloadClass parent_class; |
Wim Taymans | 9a5c8cd | 2005-08-18 10:33:15 +0000 | [diff] [blame] | 62 | }; |
| 63 | |
Benjamin Otte | 3342b16 | 2010-03-17 18:23:00 +0100 | [diff] [blame] | 64 | GType gst_rtp_h263p_pay_get_type (void); |
| 65 | |
Thomas Vander Stichele | 7a4f865 | 2005-12-01 14:30:01 +0000 | [diff] [blame] | 66 | gboolean gst_rtp_h263p_pay_plugin_init (GstPlugin * plugin); |
Wim Taymans | 9a5c8cd | 2005-08-18 10:33:15 +0000 | [diff] [blame] | 67 | |
| 68 | G_END_DECLS |
| 69 | |
Thomas Vander Stichele | 7a4f865 | 2005-12-01 14:30:01 +0000 | [diff] [blame] | 70 | #endif /* __GST_RTP_H263P_PAY_H__ */ |