[gst-devel] audio/raw vs float

Simon Per Soren Kagedal simon at cs.uoregon.edu
Mon Mar 19 21:54:44 CET 2001


On Mon, Mar 19, 2001 at 08:05:04PM +0100, Wim Taymans wrote:
>   "audio/raw"
>    "format", "int",
>    "signed", true,
>    "endian", "little"

One thing about endianness - most elements that operate on int
audio/raw streams will want to have it in the host's endianness. In
specifying capabilities and meta data, you should be able to just say
"host" for endianness (in the code, that is - not in the actual stream
since that wouldn't work over a network..).  

My suggestion is to use GLib's defines for this property,
G_LITTLE_ENDIAN and G_BIG_ENDIAN.  Then elements could just use
G_BYTE_ORDER, which expands to one of these.

Simon.




More information about the gstreamer-devel mailing list