GNOME Bugzilla – Bug 631128
Add methods to manipulate RFC 5285 header extensions
Last modified: 2010-10-05 15:25:03 UTC
Here is a series of patches to manipulate RTP header extensions defined in RFC 5285. There are functions to handle both GstBuffer and GstBufferList, also to handle one byte or two byte header extensions. I also added a function to transform an existing GstBuffer into a GstBufferList so that the header can be manipulated without having to copy the payload. Can be found as a git branch at: http://git.collabora.co.uk/?p=user/tester/gst-plugins-base.git;a=shortlog;h=refs/heads/rtp-hdrext
Created attachment 171526 [details] [review] rtpbuffer: Add function to parse RFC 5285 header extensions RFC 5285 describes a generic method to add multiple header extensions to RTP packets. These functions parse these headers and return them, both for the one-byte header and the two bytes headers.
Created attachment 171527 [details] [review] rtpbuffer: Add function to append RFC 5285 one byte header extensions
Created attachment 171528 [details] [review] rtpbuffer: Add function to add RTP header extensions with a two bytes header
Created attachment 171529 [details] [review] tests: Add test for RTP header extension functions
Created attachment 171530 [details] [review] rtpbuffer: Add function to read RFC 5285 header extensions from GstBufferLists
Created attachment 171531 [details] [review] rtpbuffer: Add functions to add RFC 5285 header extensions to GstBufferLists Add functions to add header extensions to buffer lists, these functions only modify the header part of the buffer lists, so the data is not copied.
Created attachment 171532 [details] [review] rtpbuffer: Add function to transform a GstBuffer into a GstBufferList Add a new function called gst_rtp_buffer_list_from_buffer() that takes a GstBuffer containing a RTP packets and spits out a GstBufferList containing two buffers, one with the header and the other with the payload.
Created attachment 171533 [details] [review] tests: Test the manipulations of bufferlists containing RFC 5285 header extensions
Created attachment 171534 [details] [review] rtcpbuffer: Add function to manipulation the data in RTCP feedback packets Add methods to get/set the length of the Feedback Control Information (FCI) as well as getting a pointer to the FCI itself.
Commited with fixed unit tests