mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 14:11:15 +00:00
api update
Original commit message from CVS: api update
This commit is contained in:
parent
e5c9a61a6b
commit
4bd086921c
1 changed files with 23 additions and 38 deletions
|
@ -1,21 +1,11 @@
|
||||||
GStreamer data protocol
|
GStreamer data protocol
|
||||||
|
|
||||||
Intended to wrap GstData objects in a line protocol for use with
|
Intended to wrap GstData objects in a line protocol for use with
|
||||||
pipe / network elements.
|
pipe / network elements.
|
||||||
|
IDEAS-- -- -*for transporting buffers, have a function that creates a header for a given buffer to be written before the buffer.This way, you don 't lose
|
||||||
IDEAS
|
|
||||||
-----
|
|
||||||
* for transporting buffers, have a function that creates a header for
|
|
||||||
a given buffer to be written before the buffer. This way, you don't lose
|
|
||||||
time creating a GDP buffer from the buffer
|
time creating a GDP buffer from the buffer
|
||||||
* allow for CRC'ing of the GstBuffer, optionally
|
* allow for CRC' ing of the GstBuffer, optionally * have a version number of the protocol * optimizing the header for size is not useful since the GstData structure
|
||||||
* have a version number of the protocol
|
already contains more than 32 bytes anyway, making up half the header size PROTOCOL-- -- ----*1 byte GDP major
|
||||||
* optimizing the header for size is not useful since the GstData structure
|
version (0)
|
||||||
already contains more than 32 bytes anyway, making up half the header size
|
|
||||||
|
|
||||||
PROTOCOL
|
|
||||||
--------
|
|
||||||
* 1 byte GDP major version (0)
|
|
||||||
*1 byte GDP minor version (1)
|
*1 byte GDP minor version (1)
|
||||||
* 1 byte GDP flags
|
* 1 byte GDP flags
|
||||||
* 1 byte GDP data type
|
* 1 byte GDP data type
|
||||||
|
@ -25,16 +15,11 @@ PROTOCOL
|
||||||
* 8 byte duration of buffer
|
* 8 byte duration of buffer
|
||||||
* 8 byte offset
|
* 8 byte offset
|
||||||
* 8 byte offset_end
|
* 8 byte offset_end
|
||||||
* 2 byte buffer data flags
|
* 2 byte buffer data flags * 14 byte future extension (ABI padding)
|
||||||
* 14 byte future extension (ABI padding)
|
|
||||||
*2 byte optional header crc
|
*2 byte optional header crc
|
||||||
* 2 byte optional payload crc
|
* 2 byte optional payload crc
|
||||||
* (length) payload
|
* (length) payload
|
||||||
|
|
||||||
header:60 bytes
|
header:60 bytes
|
||||||
|
PROTOCOL CHANGELOG-- --
|
||||||
PROTOCOL CHANGELOG
|
--------------0.1:added two bytes for buffer flags all numbers use
|
||||||
------------------
|
network byte ordering.
|
||||||
0.1: added two bytes for buffer flags
|
|
||||||
|
|
||||||
all numbers use network byte ordering.
|
|
||||||
|
|
Loading…
Reference in a new issue