[gst-devel] Re: [gst-cvs] thomasvs gstreamer: gstreamer/ gstreamer/docs/libs/ gstreamer/docs/libs/tmpl/ gstreamer/libs/gst/ gstreamer/libs/gst/dataprotocol/

Ronald Bultje rbultje at ronald.bitfreak.net
Wed May 19 09:48:02 CEST 2004


Hi,

On Wed, 19 May 2004, Thomas Vander Stichele wrote:
> clean up libs docs; add dataprotocol

Cool stuff.

> /*** private functions ***/
> #define GST_DP_WRITE_GUINT64(buf, value) (*((guint64 *) (buf)) = GUINT64_TO_BE (value))
> #define GST_DP_WRITE_GUINT32(buf, value) (*((guint32 *) (buf)) = GUINT32_TO_BE (value))
> #define GST_DP_WRITE_GUINT16(buf, value) (*((guint16 *) (buf)) = GUINT16_TO_BE (value))
[..]
> /* read the given type out of the byte buffer using glib conversion macros */
> #define GST_DP_GUINT16(x)		GUINT16_FROM_BE (* (guint16 *) (x))
> #define GST_DP_GUINT32(x)		GUINT32_FROM_BE (* (guint32 *) (x))
> #define GST_DP_GUINT64(x)		GUINT64_FROM_BE (* (guint64 *) (x))

Please use the functions in utils.h instead. Those don't work on ARM and
other platforms and they're duplicates anyway. :).

Ronald





More information about the gstreamer-devel mailing list