Do burger's rename for rtp payloaders and depayloaders

Original commit message from CVS:

* docs/libs/tmpl/gstcolorbalance.sgml:
* gst-libs/gst/rtp/gstbasertpdepayload.c:
* gst-libs/gst/rtp/gstbasertppayload.c:
* gst-libs/gst/rtp/gstrtpbuffer.c:
* gst-libs/gst/rtp/gstrtpbuffer.h:
Do burger's rename for rtp payloaders and depayloaders
This commit is contained in:
Thomas Vander Stichele 2005-12-01 14:29:59 +00:00
parent 9db2e7681a
commit ff18d8e298
6 changed files with 100 additions and 98 deletions

View file

@ -1,3 +1,12 @@
2005-12-01 Thomas Vander Stichele <thomas (at) apestaart (dot) org>
* docs/libs/tmpl/gstcolorbalance.sgml:
* gst-libs/gst/rtp/gstbasertpdepayload.c:
* gst-libs/gst/rtp/gstbasertppayload.c:
* gst-libs/gst/rtp/gstrtpbuffer.c:
* gst-libs/gst/rtp/gstrtpbuffer.h:
Do burger's rename for rtp payloaders and depayloaders
2005-12-01 Thomas Vander Stichele <thomas at apestaart dot org> 2005-12-01 Thomas Vander Stichele <thomas at apestaart dot org>
* win32/: * win32/:

View file

@ -23,15 +23,6 @@ interface for adjusting color balance settings
</para> </para>
<!-- ##### SIGNAL GstColorBalance::value-changed ##### -->
<para>
</para>
@gstcolorbalance: the object which received the signal.
@arg1:
@arg2:
<!-- ##### STRUCT GstColorBalanceClass ##### --> <!-- ##### STRUCT GstColorBalanceClass ##### -->
<para> <para>

View file

@ -220,8 +220,8 @@ gst_base_rtp_depayload_add_to_queue (GstBaseRTPDepayload * filter,
guint16 seqnum, queueseq; guint16 seqnum, queueseq;
guint32 timestamp; guint32 timestamp;
seqnum = gst_rtpbuffer_get_seq (in); seqnum = gst_rtp_buffer_get_seq (in);
queueseq = gst_rtpbuffer_get_seq (GST_BUFFER (g_queue_peek_head (queue))); queueseq = gst_rtp_buffer_get_seq (GST_BUFFER (g_queue_peek_head (queue)));
/* look for right place to insert it */ /* look for right place to insert it */
int i = 0; int i = 0;
@ -234,14 +234,14 @@ gst_base_rtp_depayload_add_to_queue (GstBaseRTPDepayload * filter,
if (!data) if (!data)
break; break;
queueseq = gst_rtpbuffer_get_seq (GST_BUFFER (data)); queueseq = gst_rtp_buffer_get_seq (GST_BUFFER (data));
} }
/* now insert it at that place */ /* now insert it at that place */
g_queue_push_nth (queue, in, i); g_queue_push_nth (queue, in, i);
QUEUE_UNLOCK (filter); QUEUE_UNLOCK (filter);
timestamp = gst_rtpbuffer_get_timestamp (in); timestamp = gst_rtp_buffer_get_timestamp (in);
GST_DEBUG_OBJECT (filter, GST_DEBUG_OBJECT (filter,
"Packet added to queue %d at pos %d timestamp %u sn %d", "Packet added to queue %d at pos %d timestamp %u sn %d",
@ -272,7 +272,7 @@ gst_base_rtp_depayload_push (GstBaseRTPDepayload * filter, GstBuffer * rtp_buf)
* maybe i should add a way to override this timestamp from the * maybe i should add a way to override this timestamp from the
* depayloader child class * depayloader child class
*/ */
bclass->set_gst_timestamp (filter, gst_rtpbuffer_get_timestamp (rtp_buf), bclass->set_gst_timestamp (filter, gst_rtp_buffer_get_timestamp (rtp_buf),
out_buf); out_buf);
/* push it */ /* push it */
GST_DEBUG_OBJECT (filter, "Pushing buffer size %d, timestamp %u", GST_DEBUG_OBJECT (filter, "Pushing buffer size %d, timestamp %u",
@ -333,8 +333,10 @@ gst_base_rtp_depayload_queue_release (GstBaseRTPDepayload * filter)
guint maxtsunits = (gfloat) filter->clock_rate * q_size_secs; guint maxtsunits = (gfloat) filter->clock_rate * q_size_secs;
QUEUE_LOCK (filter); QUEUE_LOCK (filter);
headts = gst_rtpbuffer_get_timestamp (GST_BUFFER (g_queue_peek_head (queue))); headts =
tailts = gst_rtpbuffer_get_timestamp (GST_BUFFER (g_queue_peek_tail (queue))); gst_rtp_buffer_get_timestamp (GST_BUFFER (g_queue_peek_head (queue)));
tailts =
gst_rtp_buffer_get_timestamp (GST_BUFFER (g_queue_peek_tail (queue)));
bclass = GST_BASE_RTP_DEPAYLOAD_GET_CLASS (filter); bclass = GST_BASE_RTP_DEPAYLOAD_GET_CLASS (filter);
@ -347,7 +349,7 @@ gst_base_rtp_depayload_queue_release (GstBaseRTPDepayload * filter)
gst_base_rtp_depayload_push (filter, in); gst_base_rtp_depayload_push (filter, in);
} }
headts = headts =
gst_rtpbuffer_get_timestamp (GST_BUFFER (g_queue_peek_head (queue))); gst_rtp_buffer_get_timestamp (GST_BUFFER (g_queue_peek_head (queue)));
} }
QUEUE_UNLOCK (filter); QUEUE_UNLOCK (filter);
} }

View file

@ -372,12 +372,12 @@ gst_basertppayload_push (GstBaseRTPPayload * payload, GstBuffer * buffer)
if (payload->clock_rate == 0) if (payload->clock_rate == 0)
goto no_rate; goto no_rate;
gst_rtpbuffer_set_ssrc (buffer, payload->current_ssrc); gst_rtp_buffer_set_ssrc (buffer, payload->current_ssrc);
gst_rtpbuffer_set_payload_type (buffer, payload->pt); gst_rtp_buffer_set_payload_type (buffer, payload->pt);
/* can wrap around, which is perfectly fine */ /* can wrap around, which is perfectly fine */
gst_rtpbuffer_set_seq (buffer, payload->seqnum++); gst_rtp_buffer_set_seq (buffer, payload->seqnum++);
/* add our random offset to the timestamp */ /* add our random offset to the timestamp */
ts = payload->ts_base; ts = payload->ts_base;
@ -393,7 +393,7 @@ gst_basertppayload_push (GstBaseRTPPayload * payload, GstBuffer * buffer)
ts += rtime; ts += rtime;
} }
gst_rtpbuffer_set_timestamp (buffer, ts); gst_rtp_buffer_set_timestamp (buffer, ts);
payload->timestamp = ts; payload->timestamp = ts;

View file

@ -60,7 +60,7 @@ typedef struct _GstRTPHeader
#define GST_RTP_HEADER_CSRC_SIZE(buf) (GST_RTP_HEADER_CSRC_COUNT(buf) * sizeof (guint32)) #define GST_RTP_HEADER_CSRC_SIZE(buf) (GST_RTP_HEADER_CSRC_COUNT(buf) * sizeof (guint32))
void void
gst_rtpbuffer_allocate_data (GstBuffer * buffer, guint payload_len, gst_rtp_buffer_allocate_data (GstBuffer * buffer, guint payload_len,
guint8 pad_len, guint8 csrc_count) guint8 pad_len, guint8 csrc_count)
{ {
guint len; guint len;
@ -88,7 +88,7 @@ gst_rtpbuffer_allocate_data (GstBuffer * buffer, guint payload_len,
} }
GstBuffer * GstBuffer *
gst_rtpbuffer_new_take_data (gpointer data, guint len) gst_rtp_buffer_new_take_data (gpointer data, guint len)
{ {
GstBuffer *result; GstBuffer *result;
@ -105,13 +105,13 @@ gst_rtpbuffer_new_take_data (gpointer data, guint len)
} }
GstBuffer * GstBuffer *
gst_rtpbuffer_new_copy_data (gpointer data, guint len) gst_rtp_buffer_new_copy_data (gpointer data, guint len)
{ {
return gst_rtpbuffer_new_take_data (g_memdup (data, len), len); return gst_rtp_buffer_new_take_data (g_memdup (data, len), len);
} }
GstBuffer * GstBuffer *
gst_rtpbuffer_new_allocate (guint payload_len, guint8 pad_len, gst_rtp_buffer_new_allocate (guint payload_len, guint8 pad_len,
guint8 csrc_count) guint8 csrc_count)
{ {
GstBuffer *result; GstBuffer *result;
@ -119,26 +119,26 @@ gst_rtpbuffer_new_allocate (guint payload_len, guint8 pad_len,
g_return_val_if_fail (csrc_count <= 15, NULL); g_return_val_if_fail (csrc_count <= 15, NULL);
result = gst_buffer_new (); result = gst_buffer_new ();
gst_rtpbuffer_allocate_data (result, payload_len, pad_len, csrc_count); gst_rtp_buffer_allocate_data (result, payload_len, pad_len, csrc_count);
return result; return result;
} }
GstBuffer * GstBuffer *
gst_rtpbuffer_new_allocate_len (guint packet_len, guint8 pad_len, gst_rtp_buffer_new_allocate_len (guint packet_len, guint8 pad_len,
guint8 csrc_count) guint8 csrc_count)
{ {
guint len; guint len;
g_return_val_if_fail (csrc_count <= 15, NULL); g_return_val_if_fail (csrc_count <= 15, NULL);
len = gst_rtpbuffer_calc_payload_len (packet_len, pad_len, csrc_count); len = gst_rtp_buffer_calc_payload_len (packet_len, pad_len, csrc_count);
return gst_rtpbuffer_new_allocate (len, pad_len, csrc_count); return gst_rtp_buffer_new_allocate (len, pad_len, csrc_count);
} }
guint guint
gst_rtpbuffer_calc_header_len (guint8 csrc_count) gst_rtp_buffer_calc_header_len (guint8 csrc_count)
{ {
g_return_val_if_fail (csrc_count <= 15, 0); g_return_val_if_fail (csrc_count <= 15, 0);
@ -146,7 +146,7 @@ gst_rtpbuffer_calc_header_len (guint8 csrc_count)
} }
guint guint
gst_rtpbuffer_calc_packet_len (guint payload_len, guint8 pad_len, gst_rtp_buffer_calc_packet_len (guint payload_len, guint8 pad_len,
guint8 csrc_count) guint8 csrc_count)
{ {
g_return_val_if_fail (csrc_count <= 15, 0); g_return_val_if_fail (csrc_count <= 15, 0);
@ -156,7 +156,7 @@ gst_rtpbuffer_calc_packet_len (guint payload_len, guint8 pad_len,
} }
guint guint
gst_rtpbuffer_calc_payload_len (guint packet_len, guint8 pad_len, gst_rtp_buffer_calc_payload_len (guint packet_len, guint8 pad_len,
guint8 csrc_count) guint8 csrc_count)
{ {
g_return_val_if_fail (csrc_count <= 15, 0); g_return_val_if_fail (csrc_count <= 15, 0);
@ -166,7 +166,7 @@ gst_rtpbuffer_calc_payload_len (guint packet_len, guint8 pad_len,
} }
gboolean gboolean
gst_rtpbuffer_validate_data (guint8 * data, guint len) gst_rtp_buffer_validate_data (guint8 * data, guint len)
{ {
guint8 padding; guint8 padding;
guint8 csrc_count; guint8 csrc_count;
@ -209,7 +209,7 @@ gst_rtpbuffer_validate_data (guint8 * data, guint len)
} }
gboolean gboolean
gst_rtpbuffer_validate (GstBuffer * buffer) gst_rtp_buffer_validate (GstBuffer * buffer)
{ {
guint8 *data; guint8 *data;
guint len; guint len;
@ -219,12 +219,12 @@ gst_rtpbuffer_validate (GstBuffer * buffer)
data = GST_BUFFER_DATA (buffer); data = GST_BUFFER_DATA (buffer);
len = GST_BUFFER_SIZE (buffer); len = GST_BUFFER_SIZE (buffer);
return gst_rtpbuffer_validate_data (data, len); return gst_rtp_buffer_validate_data (data, len);
} }
void void
gst_rtpbuffer_set_packet_len (GstBuffer * buffer, guint len) gst_rtp_buffer_set_packet_len (GstBuffer * buffer, guint len)
{ {
guint oldlen; guint oldlen;
@ -247,7 +247,7 @@ gst_rtpbuffer_set_packet_len (GstBuffer * buffer, guint len)
} }
guint guint
gst_rtpbuffer_get_packet_len (GstBuffer * buffer) gst_rtp_buffer_get_packet_len (GstBuffer * buffer)
{ {
g_return_val_if_fail (GST_IS_BUFFER (buffer), 0); g_return_val_if_fail (GST_IS_BUFFER (buffer), 0);
@ -255,7 +255,7 @@ gst_rtpbuffer_get_packet_len (GstBuffer * buffer)
} }
guint8 guint8
gst_rtpbuffer_get_version (GstBuffer * buffer) gst_rtp_buffer_get_version (GstBuffer * buffer)
{ {
g_return_val_if_fail (GST_IS_BUFFER (buffer), 0); g_return_val_if_fail (GST_IS_BUFFER (buffer), 0);
g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0); g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0);
@ -264,7 +264,7 @@ gst_rtpbuffer_get_version (GstBuffer * buffer)
} }
void void
gst_rtpbuffer_set_version (GstBuffer * buffer, guint8 version) gst_rtp_buffer_set_version (GstBuffer * buffer, guint8 version)
{ {
g_return_if_fail (GST_IS_BUFFER (buffer)); g_return_if_fail (GST_IS_BUFFER (buffer));
g_return_if_fail (version < 0x04); g_return_if_fail (version < 0x04);
@ -275,7 +275,7 @@ gst_rtpbuffer_set_version (GstBuffer * buffer, guint8 version)
gboolean gboolean
gst_rtpbuffer_get_padding (GstBuffer * buffer) gst_rtp_buffer_get_padding (GstBuffer * buffer)
{ {
g_return_val_if_fail (GST_IS_BUFFER (buffer), FALSE); g_return_val_if_fail (GST_IS_BUFFER (buffer), FALSE);
g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, FALSE); g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, FALSE);
@ -284,7 +284,7 @@ gst_rtpbuffer_get_padding (GstBuffer * buffer)
} }
void void
gst_rtpbuffer_set_padding (GstBuffer * buffer, gboolean padding) gst_rtp_buffer_set_padding (GstBuffer * buffer, gboolean padding)
{ {
g_return_if_fail (GST_IS_BUFFER (buffer)); g_return_if_fail (GST_IS_BUFFER (buffer));
g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL); g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL);
@ -293,7 +293,7 @@ gst_rtpbuffer_set_padding (GstBuffer * buffer, gboolean padding)
} }
void void
gst_rtpbuffer_pad_to (GstBuffer * buffer, guint len) gst_rtp_buffer_pad_to (GstBuffer * buffer, guint len)
{ {
g_return_if_fail (GST_IS_BUFFER (buffer)); g_return_if_fail (GST_IS_BUFFER (buffer));
g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL); g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL);
@ -306,7 +306,7 @@ gst_rtpbuffer_pad_to (GstBuffer * buffer, guint len)
gboolean gboolean
gst_rtpbuffer_get_extension (GstBuffer * buffer) gst_rtp_buffer_get_extension (GstBuffer * buffer)
{ {
g_return_val_if_fail (GST_IS_BUFFER (buffer), FALSE); g_return_val_if_fail (GST_IS_BUFFER (buffer), FALSE);
g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, FALSE); g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, FALSE);
@ -315,7 +315,7 @@ gst_rtpbuffer_get_extension (GstBuffer * buffer)
} }
void void
gst_rtpbuffer_set_extension (GstBuffer * buffer, gboolean extension) gst_rtp_buffer_set_extension (GstBuffer * buffer, gboolean extension)
{ {
g_return_if_fail (GST_IS_BUFFER (buffer)); g_return_if_fail (GST_IS_BUFFER (buffer));
g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL); g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL);
@ -324,7 +324,7 @@ gst_rtpbuffer_set_extension (GstBuffer * buffer, gboolean extension)
} }
guint32 guint32
gst_rtpbuffer_get_ssrc (GstBuffer * buffer) gst_rtp_buffer_get_ssrc (GstBuffer * buffer)
{ {
g_return_val_if_fail (GST_IS_BUFFER (buffer), 0); g_return_val_if_fail (GST_IS_BUFFER (buffer), 0);
g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0); g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0);
@ -333,7 +333,7 @@ gst_rtpbuffer_get_ssrc (GstBuffer * buffer)
} }
void void
gst_rtpbuffer_set_ssrc (GstBuffer * buffer, guint32 ssrc) gst_rtp_buffer_set_ssrc (GstBuffer * buffer, guint32 ssrc)
{ {
g_return_if_fail (GST_IS_BUFFER (buffer)); g_return_if_fail (GST_IS_BUFFER (buffer));
g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL); g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL);
@ -342,7 +342,7 @@ gst_rtpbuffer_set_ssrc (GstBuffer * buffer, guint32 ssrc)
} }
guint8 guint8
gst_rtpbuffer_get_csrc_count (GstBuffer * buffer) gst_rtp_buffer_get_csrc_count (GstBuffer * buffer)
{ {
g_return_val_if_fail (GST_IS_BUFFER (buffer), 0); g_return_val_if_fail (GST_IS_BUFFER (buffer), 0);
g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0); g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0);
@ -351,7 +351,7 @@ gst_rtpbuffer_get_csrc_count (GstBuffer * buffer)
} }
guint32 guint32
gst_rtpbuffer_get_csrc (GstBuffer * buffer, guint8 idx) gst_rtp_buffer_get_csrc (GstBuffer * buffer, guint8 idx)
{ {
g_return_val_if_fail (GST_IS_BUFFER (buffer), 0); g_return_val_if_fail (GST_IS_BUFFER (buffer), 0);
g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0); g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0);
@ -361,7 +361,7 @@ gst_rtpbuffer_get_csrc (GstBuffer * buffer, guint8 idx)
} }
void void
gst_rtpbuffer_set_csrc (GstBuffer * buffer, guint8 idx, guint32 csrc) gst_rtp_buffer_set_csrc (GstBuffer * buffer, guint8 idx, guint32 csrc)
{ {
g_return_if_fail (GST_IS_BUFFER (buffer)); g_return_if_fail (GST_IS_BUFFER (buffer));
g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL); g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL);
@ -371,7 +371,7 @@ gst_rtpbuffer_set_csrc (GstBuffer * buffer, guint8 idx, guint32 csrc)
} }
gboolean gboolean
gst_rtpbuffer_get_marker (GstBuffer * buffer) gst_rtp_buffer_get_marker (GstBuffer * buffer)
{ {
g_return_val_if_fail (GST_IS_BUFFER (buffer), FALSE); g_return_val_if_fail (GST_IS_BUFFER (buffer), FALSE);
g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, FALSE); g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, FALSE);
@ -380,7 +380,7 @@ gst_rtpbuffer_get_marker (GstBuffer * buffer)
} }
void void
gst_rtpbuffer_set_marker (GstBuffer * buffer, gboolean marker) gst_rtp_buffer_set_marker (GstBuffer * buffer, gboolean marker)
{ {
g_return_if_fail (GST_IS_BUFFER (buffer)); g_return_if_fail (GST_IS_BUFFER (buffer));
g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL); g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL);
@ -390,7 +390,7 @@ gst_rtpbuffer_set_marker (GstBuffer * buffer, gboolean marker)
guint8 guint8
gst_rtpbuffer_get_payload_type (GstBuffer * buffer) gst_rtp_buffer_get_payload_type (GstBuffer * buffer)
{ {
g_return_val_if_fail (GST_IS_BUFFER (buffer), 0); g_return_val_if_fail (GST_IS_BUFFER (buffer), 0);
g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0); g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0);
@ -399,7 +399,7 @@ gst_rtpbuffer_get_payload_type (GstBuffer * buffer)
} }
void void
gst_rtpbuffer_set_payload_type (GstBuffer * buffer, guint8 payload_type) gst_rtp_buffer_set_payload_type (GstBuffer * buffer, guint8 payload_type)
{ {
g_return_if_fail (GST_IS_BUFFER (buffer)); g_return_if_fail (GST_IS_BUFFER (buffer));
g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL); g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL);
@ -410,7 +410,7 @@ gst_rtpbuffer_set_payload_type (GstBuffer * buffer, guint8 payload_type)
guint16 guint16
gst_rtpbuffer_get_seq (GstBuffer * buffer) gst_rtp_buffer_get_seq (GstBuffer * buffer)
{ {
g_return_val_if_fail (GST_IS_BUFFER (buffer), 0); g_return_val_if_fail (GST_IS_BUFFER (buffer), 0);
g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0); g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0);
@ -419,7 +419,7 @@ gst_rtpbuffer_get_seq (GstBuffer * buffer)
} }
void void
gst_rtpbuffer_set_seq (GstBuffer * buffer, guint16 seq) gst_rtp_buffer_set_seq (GstBuffer * buffer, guint16 seq)
{ {
g_return_if_fail (GST_IS_BUFFER (buffer)); g_return_if_fail (GST_IS_BUFFER (buffer));
g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL); g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL);
@ -429,7 +429,7 @@ gst_rtpbuffer_set_seq (GstBuffer * buffer, guint16 seq)
guint32 guint32
gst_rtpbuffer_get_timestamp (GstBuffer * buffer) gst_rtp_buffer_get_timestamp (GstBuffer * buffer)
{ {
g_return_val_if_fail (GST_IS_BUFFER (buffer), 0); g_return_val_if_fail (GST_IS_BUFFER (buffer), 0);
g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0); g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0);
@ -438,7 +438,7 @@ gst_rtpbuffer_get_timestamp (GstBuffer * buffer)
} }
void void
gst_rtpbuffer_set_timestamp (GstBuffer * buffer, guint32 timestamp) gst_rtp_buffer_set_timestamp (GstBuffer * buffer, guint32 timestamp)
{ {
g_return_if_fail (GST_IS_BUFFER (buffer)); g_return_if_fail (GST_IS_BUFFER (buffer));
g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL); g_return_if_fail (GST_BUFFER_DATA (buffer) != NULL);
@ -447,21 +447,21 @@ gst_rtpbuffer_set_timestamp (GstBuffer * buffer, guint32 timestamp)
} }
GstBuffer * GstBuffer *
gst_rtpbuffer_get_payload_buffer (GstBuffer * buffer) gst_rtp_buffer_get_payload_buffer (GstBuffer * buffer)
{ {
guint len; guint len;
g_return_val_if_fail (GST_IS_BUFFER (buffer), 0); g_return_val_if_fail (GST_IS_BUFFER (buffer), 0);
g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0); g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, 0);
len = gst_rtpbuffer_get_payload_len (buffer); len = gst_rtp_buffer_get_payload_len (buffer);
return gst_buffer_create_sub (buffer, GST_RTP_HEADER_LEN return gst_buffer_create_sub (buffer, GST_RTP_HEADER_LEN
+ GST_RTP_HEADER_CSRC_SIZE (buffer), len); + GST_RTP_HEADER_CSRC_SIZE (buffer), len);
} }
guint guint
gst_rtpbuffer_get_payload_len (GstBuffer * buffer) gst_rtp_buffer_get_payload_len (GstBuffer * buffer)
{ {
guint len; guint len;
@ -478,7 +478,7 @@ gst_rtpbuffer_get_payload_len (GstBuffer * buffer)
} }
gpointer gpointer
gst_rtpbuffer_get_payload (GstBuffer * buffer) gst_rtp_buffer_get_payload (GstBuffer * buffer)
{ {
g_return_val_if_fail (GST_IS_BUFFER (buffer), NULL); g_return_val_if_fail (GST_IS_BUFFER (buffer), NULL);
g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, NULL); g_return_val_if_fail (GST_BUFFER_DATA (buffer) != NULL, NULL);

View file

@ -72,57 +72,57 @@ typedef enum
#define GST_RTP_PAYLOAD_H263_STRING "34" #define GST_RTP_PAYLOAD_H263_STRING "34"
/* creating buffers */ /* creating buffers */
GstBuffer* gst_rtpbuffer_new (void); GstBuffer* gst_rtp_buffer_new (void);
void gst_rtpbuffer_allocate_data (GstBuffer *buffer, guint payload_len, void gst_rtp_buffer_allocate_data (GstBuffer *buffer, guint payload_len,
guint8 pad_len, guint8 csrc_count); guint8 pad_len, guint8 csrc_count);
GstBuffer* gst_rtpbuffer_new_take_data (gpointer data, guint len); GstBuffer* gst_rtp_buffer_new_take_data (gpointer data, guint len);
GstBuffer* gst_rtpbuffer_new_copy_data (gpointer data, guint len); GstBuffer* gst_rtp_buffer_new_copy_data (gpointer data, guint len);
GstBuffer* gst_rtpbuffer_new_allocate (guint payload_len, guint8 pad_len, guint8 csrc_count); GstBuffer* gst_rtp_buffer_new_allocate (guint payload_len, guint8 pad_len, guint8 csrc_count);
GstBuffer* gst_rtpbuffer_new_allocate_len (guint packet_len, guint8 pad_len, guint8 csrc_count); GstBuffer* gst_rtp_buffer_new_allocate_len (guint packet_len, guint8 pad_len, guint8 csrc_count);
guint gst_rtpbuffer_calc_header_len (guint8 csrc_count); guint gst_rtp_buffer_calc_header_len (guint8 csrc_count);
guint gst_rtpbuffer_calc_packet_len (guint payload_len, guint8 pad_len, guint8 csrc_count); guint gst_rtp_buffer_calc_packet_len (guint payload_len, guint8 pad_len, guint8 csrc_count);
guint gst_rtpbuffer_calc_payload_len (guint packet_len, guint8 pad_len, guint8 csrc_count); guint gst_rtp_buffer_calc_payload_len (guint packet_len, guint8 pad_len, guint8 csrc_count);
gboolean gst_rtpbuffer_validate_data (guint8 *data, guint len); gboolean gst_rtp_buffer_validate_data (guint8 *data, guint len);
gboolean gst_rtpbuffer_validate (GstBuffer *buffer); gboolean gst_rtp_buffer_validate (GstBuffer *buffer);
void gst_rtpbuffer_set_packet_len (GstBuffer *buffer, guint len); void gst_rtp_buffer_set_packet_len (GstBuffer *buffer, guint len);
guint gst_rtpbuffer_get_packet_len (GstBuffer *buffer); guint gst_rtp_buffer_get_packet_len (GstBuffer *buffer);
guint8 gst_rtpbuffer_get_version (GstBuffer *buffer); guint8 gst_rtp_buffer_get_version (GstBuffer *buffer);
void gst_rtpbuffer_set_version (GstBuffer *buffer, guint8 version); void gst_rtp_buffer_set_version (GstBuffer *buffer, guint8 version);
gboolean gst_rtpbuffer_get_padding (GstBuffer *buffer); gboolean gst_rtp_buffer_get_padding (GstBuffer *buffer);
void gst_rtpbuffer_set_padding (GstBuffer *buffer, gboolean padding); void gst_rtp_buffer_set_padding (GstBuffer *buffer, gboolean padding);
void gst_rtpbuffer_pad_to (GstBuffer *buffer, guint len); void gst_rtp_buffer_pad_to (GstBuffer *buffer, guint len);
gboolean gst_rtpbuffer_get_extension (GstBuffer *buffer); gboolean gst_rtp_buffer_get_extension (GstBuffer *buffer);
void gst_rtpbuffer_set_extension (GstBuffer *buffer, gboolean extension); void gst_rtp_buffer_set_extension (GstBuffer *buffer, gboolean extension);
guint32 gst_rtpbuffer_get_ssrc (GstBuffer *buffer); guint32 gst_rtp_buffer_get_ssrc (GstBuffer *buffer);
void gst_rtpbuffer_set_ssrc (GstBuffer *buffer, guint32 ssrc); void gst_rtp_buffer_set_ssrc (GstBuffer *buffer, guint32 ssrc);
guint8 gst_rtpbuffer_get_csrc_count (GstBuffer *buffer); guint8 gst_rtp_buffer_get_csrc_count (GstBuffer *buffer);
guint32 gst_rtpbuffer_get_csrc (GstBuffer *buffer, guint8 idx); guint32 gst_rtp_buffer_get_csrc (GstBuffer *buffer, guint8 idx);
void gst_rtpbuffer_set_csrc (GstBuffer *buffer, guint8 idx, guint32 csrc); void gst_rtp_buffer_set_csrc (GstBuffer *buffer, guint8 idx, guint32 csrc);
gboolean gst_rtpbuffer_get_marker (GstBuffer *buffer); gboolean gst_rtp_buffer_get_marker (GstBuffer *buffer);
void gst_rtpbuffer_set_marker (GstBuffer *buffer, gboolean marker); void gst_rtp_buffer_set_marker (GstBuffer *buffer, gboolean marker);
guint8 gst_rtpbuffer_get_payload_type (GstBuffer *buffer); guint8 gst_rtp_buffer_get_payload_type (GstBuffer *buffer);
void gst_rtpbuffer_set_payload_type (GstBuffer *buffer, guint8 payload_type); void gst_rtp_buffer_set_payload_type (GstBuffer *buffer, guint8 payload_type);
guint16 gst_rtpbuffer_get_seq (GstBuffer *buffer); guint16 gst_rtp_buffer_get_seq (GstBuffer *buffer);
void gst_rtpbuffer_set_seq (GstBuffer *buffer, guint16 seq); void gst_rtp_buffer_set_seq (GstBuffer *buffer, guint16 seq);
guint32 gst_rtpbuffer_get_timestamp (GstBuffer *buffer); guint32 gst_rtp_buffer_get_timestamp (GstBuffer *buffer);
void gst_rtpbuffer_set_timestamp (GstBuffer *buffer, guint32 timestamp); void gst_rtp_buffer_set_timestamp (GstBuffer *buffer, guint32 timestamp);
GstBuffer* gst_rtpbuffer_get_payload_buffer (GstBuffer *buffer); GstBuffer* gst_rtp_buffer_get_payload_buffer (GstBuffer *buffer);
guint gst_rtpbuffer_get_payload_len (GstBuffer *buffer); guint gst_rtp_buffer_get_payload_len (GstBuffer *buffer);
gpointer gst_rtpbuffer_get_payload (GstBuffer *buffer); gpointer gst_rtp_buffer_get_payload (GstBuffer *buffer);
G_END_DECLS G_END_DECLS