From f68277289807bd1ea312e010000f577f757c8c0e Mon Sep 17 00:00:00 2001 From: Stian Selnes Date: Sat, 4 Jul 2015 20:56:42 +0200 Subject: [PATCH] rtph261pay: rtph261depay: Add documentation https://bugzilla.gnome.org/show_bug.cgi?id=751982 --- docs/plugins/gst-plugins-good-plugins-docs.sgml | 2 ++ docs/plugins/gst-plugins-good-plugins-sections.txt | 30 ++++++++++++++++++++++ gst/rtp/gstrtph261depay.c | 20 +++++++++++++++ gst/rtp/gstrtph261pay.c | 26 +++++++++++++++++++ 4 files changed, 78 insertions(+) diff --git a/docs/plugins/gst-plugins-good-plugins-docs.sgml b/docs/plugins/gst-plugins-good-plugins-docs.sgml index 9222fe4..45d86c4 100644 --- a/docs/plugins/gst-plugins-good-plugins-docs.sgml +++ b/docs/plugins/gst-plugins-good-plugins-docs.sgml @@ -134,6 +134,8 @@ + + diff --git a/docs/plugins/gst-plugins-good-plugins-sections.txt b/docs/plugins/gst-plugins-good-plugins-sections.txt index 7a9dcc8..d477796 100644 --- a/docs/plugins/gst-plugins-good-plugins-sections.txt +++ b/docs/plugins/gst-plugins-good-plugins-sections.txt @@ -1745,6 +1745,36 @@ gst_rtp_bv_pay_get_type
+element-rtph261depay +rtph261depay +GstRtpH261Depay + +GstRtpH261DepayClass +GST_RTP_H261_DEPAY +GST_IS_RTP_H261_DEPAY +GST_TYPE_RTP_H261_DEPAY +GST_RTP_H261_DEPAY_CLASS +GST_IS_RTP_H261_DEPAY_CLASS +gst_rtp_h261_depay_plugin_init +gst_rtp_h261_depay_get_type +
+ +
+element-rtph261pay +rtph261pay +GstRtpH261Pay + +GstRtpH261PayClass +GST_RTP_H261_PAY +GST_IS_RTP_H261_PAY +GST_TYPE_RTP_H261_PAY +GST_RTP_H261_PAY_CLASS +GST_IS_RTP_H261_PAY_CLASS +gst_rtp_h261_pay_plugin_init +gst_rtp_h261_pay_get_type +
+ +
element-rtpL16depay rtpL16depay GstRtpL16Depay diff --git a/gst/rtp/gstrtph261depay.c b/gst/rtp/gstrtph261depay.c index 91f7418..f1a271c 100644 --- a/gst/rtp/gstrtph261depay.c +++ b/gst/rtp/gstrtph261depay.c @@ -18,6 +18,26 @@ * Boston, MA 02111-1307, USA. */ +/** + * SECTION:element-rtph261depay + * @see_also: rtph261pay + * + * Extract encoded H.261 video frames from RTP packets according to RFC 4587. + * For detailed information see: https://www.rfc-editor.org/rfc/rfc4587.txt + * + * The depayloader takes an RTP packet and extracts its H.261 stream. It + * aggregates the extracted stream until a complete frame is received before + * it pushes it downstream. + * + * + * Example pipeline + * |[ + * gst-launch-1.0 udpsrc caps='application/x-rtp, payload=31' ! rtph261depay ! avdec_h261 ! autovideosink + * ]| This example pipeline will depayload and decode an RTP H.261 video stream. + * Refer to the rtph261pay example to create the RTP stream. + * + */ + #ifdef HAVE_CONFIG_H # include "config.h" #endif diff --git a/gst/rtp/gstrtph261pay.c b/gst/rtp/gstrtph261pay.c index a1c3841..98b2fc2 100644 --- a/gst/rtp/gstrtph261pay.c +++ b/gst/rtp/gstrtph261pay.c @@ -18,6 +18,32 @@ * */ +/** + * SECTION:element-rtph261pay + * @see_also: rtph261depay + * + * Payload encoded H.261 video frames into RTP packets according to RFC 4587. + * For detailed information see: https://www.rfc-editor.org/rfc/rfc4587.txt + * + * The payloader takes a H.261 frame, parses it and splits it into fragments + * on MB boundaries in order to match configured MTU size. For each fragment + * an RTP packet is constructed with an RTP packet header followed by the + * fragment. In addition the payloader will make sure the packetized H.261 + * stream appears as a continuous bit-stream after depacketization by shifting + * the encoded bit-stream of a frame to align with the last significant bit of + * the previous frame. This helps interoperability in the case where the + * encoder does not produce a continuous bit-stream but the decoder requires + * it. + * + * + * Example launch line + * |[ + * gst-launch-1.0 videotestsrc ! avenc_h261 ! rtph261pay ! udpsink + * ]| This will encode a test video and payload it. Refer to the rtph261depay + * example to depayload and play the RTP stream. + * + */ + #ifdef HAVE_CONFIG_H # include "config.h" #endif -- 2.7.4