gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) <2005> Wim Taymans <wim@fluendo.com>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 23:05:09 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
*/
|
|
|
|
|
2011-11-11 11:24:08 +00:00
|
|
|
#ifndef __GST_RTP_BASE_PAYLOAD_H__
|
|
|
|
#define __GST_RTP_BASE_PAYLOAD_H__
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
|
|
|
|
#include <gst/gst.h>
|
2018-03-13 11:17:58 +00:00
|
|
|
#include <gst/rtp/rtp-prelude.h>
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2011-11-11 11:24:08 +00:00
|
|
|
#define GST_TYPE_RTP_BASE_PAYLOAD \
|
|
|
|
(gst_rtp_base_payload_get_type())
|
|
|
|
#define GST_RTP_BASE_PAYLOAD(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_BASE_PAYLOAD,GstRTPBasePayload))
|
|
|
|
#define GST_RTP_BASE_PAYLOAD_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_BASE_PAYLOAD,GstRTPBasePayloadClass))
|
|
|
|
#define GST_RTP_BASE_PAYLOAD_GET_CLASS(obj) \
|
|
|
|
(G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_RTP_BASE_PAYLOAD, GstRTPBasePayloadClass))
|
|
|
|
#define GST_IS_RTP_BASE_PAYLOAD(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_BASE_PAYLOAD))
|
|
|
|
#define GST_IS_RTP_BASE_PAYLOAD_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_BASE_PAYLOAD))
|
|
|
|
#define GST_RTP_BASE_PAYLOAD_CAST(obj) \
|
|
|
|
((GstRTPBasePayload*)(obj))
|
|
|
|
|
|
|
|
typedef struct _GstRTPBasePayload GstRTPBasePayload;
|
|
|
|
typedef struct _GstRTPBasePayloadPrivate GstRTPBasePayloadPrivate;
|
|
|
|
typedef struct _GstRTPBasePayloadClass GstRTPBasePayloadClass;
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
|
2007-08-12 16:30:36 +00:00
|
|
|
/**
|
2011-11-11 11:24:08 +00:00
|
|
|
* GST_RTP_BASE_PAYLOAD_SINKPAD:
|
|
|
|
* @payload: a #GstRTPBasePayload
|
2007-08-12 16:30:36 +00:00
|
|
|
*
|
|
|
|
* Get access to the sinkpad of @payload.
|
|
|
|
*/
|
2011-11-11 11:24:08 +00:00
|
|
|
#define GST_RTP_BASE_PAYLOAD_SINKPAD(payload) (GST_RTP_BASE_PAYLOAD (payload)->sinkpad)
|
2007-08-12 16:30:36 +00:00
|
|
|
/**
|
2011-11-11 11:24:08 +00:00
|
|
|
* GST_RTP_BASE_PAYLOAD_SRCPAD:
|
|
|
|
* @payload: a #GstRTPBasePayload
|
2007-08-12 16:30:36 +00:00
|
|
|
*
|
|
|
|
* Get access to the srcpad of @payload.
|
|
|
|
*/
|
2011-11-11 11:24:08 +00:00
|
|
|
#define GST_RTP_BASE_PAYLOAD_SRCPAD(payload) (GST_RTP_BASE_PAYLOAD (payload)->srcpad)
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
|
2007-08-12 16:30:36 +00:00
|
|
|
/**
|
2011-11-11 11:24:08 +00:00
|
|
|
* GST_RTP_BASE_PAYLOAD_PT:
|
|
|
|
* @payload: a #GstRTPBasePayload
|
2007-08-12 16:30:36 +00:00
|
|
|
*
|
|
|
|
* Get access to the configured payload type of @payload.
|
|
|
|
*/
|
2011-11-11 11:24:08 +00:00
|
|
|
#define GST_RTP_BASE_PAYLOAD_PT(payload) (GST_RTP_BASE_PAYLOAD (payload)->pt)
|
2007-08-12 16:30:36 +00:00
|
|
|
/**
|
2011-11-11 11:24:08 +00:00
|
|
|
* GST_RTP_BASE_PAYLOAD_MTU:
|
|
|
|
* @payload: a #GstRTPBasePayload
|
2007-08-12 16:30:36 +00:00
|
|
|
*
|
|
|
|
* Get access to the configured MTU of @payload.
|
|
|
|
*/
|
2011-11-11 11:24:08 +00:00
|
|
|
#define GST_RTP_BASE_PAYLOAD_MTU(payload) (GST_RTP_BASE_PAYLOAD (payload)->mtu)
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
|
2011-11-11 11:24:08 +00:00
|
|
|
struct _GstRTPBasePayload
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
{
|
|
|
|
GstElement element;
|
|
|
|
|
2005-11-30 19:08:14 +00:00
|
|
|
/*< private >*/
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
GstPad *sinkpad;
|
|
|
|
GstPad *srcpad;
|
|
|
|
|
|
|
|
guint32 ts_base;
|
|
|
|
guint16 seqnum_base;
|
|
|
|
|
|
|
|
gchar *media;
|
|
|
|
gchar *encoding_name;
|
|
|
|
gboolean dynamic;
|
|
|
|
guint32 clock_rate;
|
|
|
|
|
2005-09-20 11:50:20 +00:00
|
|
|
gint32 ts_offset;
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
guint32 timestamp;
|
2005-09-20 13:34:02 +00:00
|
|
|
gint16 seqnum_offset;
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
guint16 seqnum;
|
gst-libs/gst/rtp/gstbasertppayload.*: Added max-ptime to control amount of data in the rtp packets.
Original commit message from CVS:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_setcaps), (gst_basertppayload_chain),
(gst_basertppayload_set_options), (gst_basertppayload_set_outcaps),
(gst_basertppayload_is_filled), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added max-ptime to control amount of data in the rtp packets.
2005-09-22 14:13:04 +00:00
|
|
|
gint64 max_ptime;
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
guint pt;
|
|
|
|
guint ssrc;
|
|
|
|
guint current_ssrc;
|
|
|
|
guint mtu;
|
2005-11-30 19:08:14 +00:00
|
|
|
|
|
|
|
GstSegment segment;
|
|
|
|
|
gst-libs/gst/rtp/gstbasertpaudiopayload.c: Some cleanups, remove minptime property as it is now in the parent class.
Original commit message from CVS:
* gst-libs/gst/rtp/gstbasertpaudiopayload.c:
(gst_base_rtp_audio_payload_class_init),
(gst_base_rtp_audio_payload_init),
(gst_base_rtp_audio_payload_finalize),
(gst_base_rtp_audio_payload_handle_frame_based_buffer),
(gst_base_rtp_audio_payload_handle_sample_based_buffer),
(gst_base_rtp_payload_audio_handle_event):
Some cleanups, remove minptime property as it is now in the parent
class.
Override parent class event function.
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_event), (gst_basertppayload_set_property),
(gst_basertppayload_get_property):
* gst-libs/gst/rtp/gstbasertppayload.h:
Add min-ptime property.
Add handle-event vmethod. Fixes #415001.
2007-05-21 09:45:28 +00:00
|
|
|
guint64 min_ptime;
|
2011-11-11 18:21:09 +00:00
|
|
|
guint64 ptime; /* in ns */
|
|
|
|
guint64 ptime_multiple; /* in ns */
|
gst-libs/gst/rtp/gstbasertpaudiopayload.c: Some cleanups, remove minptime property as it is now in the parent class.
Original commit message from CVS:
* gst-libs/gst/rtp/gstbasertpaudiopayload.c:
(gst_base_rtp_audio_payload_class_init),
(gst_base_rtp_audio_payload_init),
(gst_base_rtp_audio_payload_finalize),
(gst_base_rtp_audio_payload_handle_frame_based_buffer),
(gst_base_rtp_audio_payload_handle_sample_based_buffer),
(gst_base_rtp_payload_audio_handle_event):
Some cleanups, remove minptime property as it is now in the parent
class.
Override parent class event function.
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_event), (gst_basertppayload_set_property),
(gst_basertppayload_get_property):
* gst-libs/gst/rtp/gstbasertppayload.h:
Add min-ptime property.
Add handle-event vmethod. Fixes #415001.
2007-05-21 09:45:28 +00:00
|
|
|
|
2005-11-30 19:08:14 +00:00
|
|
|
/*< private >*/
|
2011-11-11 11:24:08 +00:00
|
|
|
GstRTPBasePayloadPrivate *priv;
|
gst-libs/gst/rtp/gstbasertpaudiopayload.c: Some cleanups, remove minptime property as it is now in the parent class.
Original commit message from CVS:
* gst-libs/gst/rtp/gstbasertpaudiopayload.c:
(gst_base_rtp_audio_payload_class_init),
(gst_base_rtp_audio_payload_init),
(gst_base_rtp_audio_payload_finalize),
(gst_base_rtp_audio_payload_handle_frame_based_buffer),
(gst_base_rtp_audio_payload_handle_sample_based_buffer),
(gst_base_rtp_payload_audio_handle_event):
Some cleanups, remove minptime property as it is now in the parent
class.
Override parent class event function.
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_event), (gst_basertppayload_set_property),
(gst_basertppayload_get_property):
* gst-libs/gst/rtp/gstbasertppayload.h:
Add min-ptime property.
Add handle-event vmethod. Fixes #415001.
2007-05-21 09:45:28 +00:00
|
|
|
|
2011-11-11 18:21:09 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
};
|
|
|
|
|
2011-05-23 20:12:50 +00:00
|
|
|
/**
|
2011-11-11 11:24:08 +00:00
|
|
|
* GstRTPBasePayloadClass:
|
2011-05-23 20:12:50 +00:00
|
|
|
* @parent_class: the parent class
|
2011-11-15 15:30:38 +00:00
|
|
|
* @get_caps: get desired caps
|
2011-05-23 20:12:50 +00:00
|
|
|
* @set_caps: configure the payloader
|
|
|
|
* @handle_buffer: process data
|
2011-11-15 15:30:38 +00:00
|
|
|
* @sink_event: custom event handling on the sinkpad
|
|
|
|
* @src_event: custom event handling on the srcpad
|
|
|
|
* @query: custom query handling
|
2011-05-23 20:12:50 +00:00
|
|
|
*
|
|
|
|
* Base class for audio RTP payloader.
|
|
|
|
*/
|
2011-11-11 11:24:08 +00:00
|
|
|
struct _GstRTPBasePayloadClass
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
{
|
|
|
|
GstElementClass parent_class;
|
|
|
|
|
2011-06-13 14:28:58 +00:00
|
|
|
/* query accepted caps */
|
2011-11-11 11:24:08 +00:00
|
|
|
GstCaps * (*get_caps) (GstRTPBasePayload *payload, GstPad * pad, GstCaps * filter);
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
/* receive caps on the sink pad, configure the payloader. */
|
2011-11-11 11:24:08 +00:00
|
|
|
gboolean (*set_caps) (GstRTPBasePayload *payload, GstCaps *caps);
|
2011-06-13 14:28:58 +00:00
|
|
|
|
2011-11-11 11:24:08 +00:00
|
|
|
/* handle a buffer, perform 0 or more gst_rtp_base_payload_push() on
|
2009-04-27 08:15:44 +00:00
|
|
|
* the RTP buffers. This function takes ownership of the buffer. */
|
2011-11-11 11:24:08 +00:00
|
|
|
GstFlowReturn (*handle_buffer) (GstRTPBasePayload *payload,
|
2005-12-06 19:42:02 +00:00
|
|
|
GstBuffer *buffer);
|
2011-11-15 15:30:38 +00:00
|
|
|
/* handle events and queries */
|
|
|
|
gboolean (*sink_event) (GstRTPBasePayload *payload, GstEvent * event);
|
|
|
|
gboolean (*src_event) (GstRTPBasePayload *payload, GstEvent * event);
|
|
|
|
gboolean (*query) (GstRTPBasePayload *payload, GstPad *pad, GstQuery * query);
|
2005-11-30 19:08:14 +00:00
|
|
|
|
|
|
|
/*< private >*/
|
2011-06-13 14:28:58 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
};
|
|
|
|
|
2018-03-13 11:17:58 +00:00
|
|
|
GST_RTP_API
|
2011-11-11 11:24:08 +00:00
|
|
|
GType gst_rtp_base_payload_get_type (void);
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
|
2018-03-13 11:17:58 +00:00
|
|
|
GST_RTP_API
|
2011-11-11 11:24:08 +00:00
|
|
|
void gst_rtp_base_payload_set_options (GstRTPBasePayload *payload,
|
2010-03-19 21:33:58 +00:00
|
|
|
const gchar *media,
|
|
|
|
gboolean dynamic,
|
|
|
|
const gchar *encoding_name,
|
2005-12-06 19:42:02 +00:00
|
|
|
guint32 clock_rate);
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
|
2018-03-13 11:17:58 +00:00
|
|
|
GST_RTP_API
|
2011-11-11 11:24:08 +00:00
|
|
|
gboolean gst_rtp_base_payload_set_outcaps (GstRTPBasePayload *payload,
|
2010-03-19 21:33:58 +00:00
|
|
|
const gchar *fieldname, ...);
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
|
2018-03-13 11:17:58 +00:00
|
|
|
GST_RTP_API
|
2011-11-11 11:24:08 +00:00
|
|
|
gboolean gst_rtp_base_payload_is_filled (GstRTPBasePayload *payload,
|
2005-12-06 19:42:02 +00:00
|
|
|
guint size, GstClockTime duration);
|
gst-libs/gst/rtp/gstbasertppayload.*: Added max-ptime to control amount of data in the rtp packets.
Original commit message from CVS:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_setcaps), (gst_basertppayload_chain),
(gst_basertppayload_set_options), (gst_basertppayload_set_outcaps),
(gst_basertppayload_is_filled), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added max-ptime to control amount of data in the rtp packets.
2005-09-22 14:13:04 +00:00
|
|
|
|
2018-03-13 11:17:58 +00:00
|
|
|
GST_RTP_API
|
2011-11-11 11:24:08 +00:00
|
|
|
GstFlowReturn gst_rtp_base_payload_push (GstRTPBasePayload *payload,
|
2005-12-06 19:42:02 +00:00
|
|
|
GstBuffer *buffer);
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
|
2018-03-13 11:17:58 +00:00
|
|
|
GST_RTP_API
|
2011-11-11 11:24:08 +00:00
|
|
|
GstFlowReturn gst_rtp_base_payload_push_list (GstRTPBasePayload *payload,
|
2009-06-19 13:52:34 +00:00
|
|
|
GstBufferList *list);
|
|
|
|
|
2018-10-10 18:16:12 +00:00
|
|
|
GST_RTP_API
|
|
|
|
GstBuffer * gst_rtp_base_payload_allocate_output_buffer (GstRTPBasePayload * payload,
|
|
|
|
guint payload_len, guint8 pad_len,
|
|
|
|
guint8 csrc_count);
|
|
|
|
|
|
|
|
GST_RTP_API
|
|
|
|
void gst_rtp_base_payload_set_source_info_enabled (GstRTPBasePayload * payload,
|
|
|
|
gboolean enable);
|
|
|
|
|
|
|
|
GST_RTP_API
|
|
|
|
gboolean gst_rtp_base_payload_is_source_info_enabled (GstRTPBasePayload * payload);
|
|
|
|
|
|
|
|
GST_RTP_API
|
|
|
|
guint gst_rtp_base_payload_get_source_count (GstRTPBasePayload * payload,
|
|
|
|
GstBuffer * buffer);
|
|
|
|
|
2015-11-10 17:54:23 +00:00
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTPBasePayload, gst_object_unref)
|
|
|
|
|
gst-libs/gst/rtp/: Added rtp payloader base class.
Original commit message from CVS:
* gst-libs/gst/rtp/Makefile.am:
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_get_type), (gst_basertppayload_base_init),
(gst_basertppayload_class_init), (gst_basertppayload_init),
(gst_basertppayload_finalize), (gst_basertppayload_setcaps),
(gst_basertppayload_chain), (gst_basertppayload_set_options),
(gst_basertppayload_set_outcaps), (gst_basertppayload_push),
(gst_basertppayload_set_property),
(gst_basertppayload_get_property),
(gst_basertppayload_change_state):
* gst-libs/gst/rtp/gstbasertppayload.h:
Added rtp payloader base class.
2005-09-15 13:50:05 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
2011-11-11 11:24:08 +00:00
|
|
|
#endif /* __GST_RTP_BASE_PAYLOAD_H__ */
|