2009-09-02 10:20:04 +00:00
|
|
|
/* GStreamer byte reader dummy header for gtk-doc
|
|
|
|
* Copyright (C) 2009 Tim-Philipp Müller <tim centricular net>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 20:44:48 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2009-09-02 10:20:04 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* This header is not installed, it just contains stuff for gtk-doc to parse,
|
|
|
|
* in particular docs and some dummy function declarations for the static
|
|
|
|
* inline functions we generate via macros in gstbytereader.h.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#error "This header should never be included in code, it is only for gtk-doc"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_skip_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
* @nbytes: the number of bytes to skip
|
|
|
|
*
|
|
|
|
* Skips @nbytes bytes of the #GstByteReader instance without checking if
|
|
|
|
* there are enough bytes available in the byte reader.
|
|
|
|
*/
|
|
|
|
void gst_byte_reader_skip_unchecked (GstByteReader * reader, guint nbytes);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_uint8_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 8 bit integer without checking if there are enough bytes
|
|
|
|
* available in the byte reader and update the current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 8 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_uint8_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 8 bit integer without checking if there are enough bytes
|
|
|
|
* available in the byte reader, but do not advance the current read position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 8 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_int8_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an signed 8 bit integer without checking if there are enough bytes
|
|
|
|
* available in the byte reader and update the current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 8 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_int8_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an signed 8 bit integer without checking if there are enough bytes
|
|
|
|
* available in the byte reader, but do not advance the current read position.
|
|
|
|
*
|
|
|
|
* Returns: signed 8 bit integer.
|
|
|
|
*/
|
2011-11-11 16:17:43 +00:00
|
|
|
guint8 gst_byte_reader_get_uint8_unchecked (GstByteReader * reader);
|
|
|
|
guint8 gst_byte_reader_peek_uint8_unchecked (GstByteReader * reader);
|
|
|
|
gint8 gst_byte_reader_get_int8_unchecked (GstByteReader * reader);
|
|
|
|
gint8 gst_byte_reader_peek_int8_unchecked (GstByteReader * reader);
|
2009-09-02 10:20:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_uint16_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 16 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 16 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_uint16_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 16 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 16 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_uint16_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 16 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 16 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_uint16_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 16 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 16 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_int16_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 16 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 16 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_int16_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 16 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 16 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_int16_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 16 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 16 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_int16_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 16 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 16 bit integer.
|
|
|
|
*/
|
2011-11-11 16:17:43 +00:00
|
|
|
guint16 gst_byte_reader_get_uint16_le_unchecked (GstByteReader * reader);
|
|
|
|
guint16 gst_byte_reader_get_uint16_be_unchecked (GstByteReader * reader);
|
2009-09-02 10:20:04 +00:00
|
|
|
guint16 gst_byte_reader_peek_uint16_le_unchecked (GstByteReader * reader);
|
|
|
|
guint16 gst_byte_reader_peek_uint16_be_unchecked (GstByteReader * reader);
|
2011-11-11 16:17:43 +00:00
|
|
|
gint16 gst_byte_reader_get_int16_le_unchecked (GstByteReader * reader);
|
|
|
|
gint16 gst_byte_reader_get_int16_be_unchecked (GstByteReader * reader);
|
|
|
|
gint16 gst_byte_reader_peek_int16_le_unchecked (GstByteReader * reader);
|
|
|
|
gint16 gst_byte_reader_peek_int16_be_unchecked (GstByteReader * reader);
|
2009-09-02 10:20:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_uint24_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 24 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 24 bit integer (as guint32)
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_uint24_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 24 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 24 bit integer (as guint32)
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_uint24_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 24 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 24 bit integer (as guint32)
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_uint24_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 24 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 24 bit integer (as guint32)
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_int24_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 24 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 24 bit integer (as gint32)
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_int24_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 24 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 24 bit integer (as gint32)
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_int24_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 24 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 24 bit integer (as gint32)
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_int24_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 24 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 24 bit integer (as gint32)
|
|
|
|
*/
|
2011-11-11 16:17:43 +00:00
|
|
|
guint32 gst_byte_reader_get_uint24_le_unchecked (GstByteReader * reader);
|
|
|
|
guint32 gst_byte_reader_get_uint24_be_unchecked (GstByteReader * reader);
|
2009-09-02 10:20:04 +00:00
|
|
|
guint32 gst_byte_reader_peek_uint24_le_unchecked (GstByteReader * reader);
|
|
|
|
guint32 gst_byte_reader_peek_uint24_be_unchecked (GstByteReader * reader);
|
2011-11-11 16:17:43 +00:00
|
|
|
gint32 gst_byte_reader_get_int24_le_unchecked (GstByteReader * reader);
|
|
|
|
gint32 gst_byte_reader_get_int24_be_unchecked (GstByteReader * reader);
|
|
|
|
gint32 gst_byte_reader_peek_int24_le_unchecked (GstByteReader * reader);
|
|
|
|
gint32 gst_byte_reader_peek_int24_be_unchecked (GstByteReader * reader);
|
2009-09-02 10:20:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_uint32_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 32 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 32 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_uint32_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 32 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 32 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_uint32_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 32 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 32 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_uint32_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 32 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 32 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_int32_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 32 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 32 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_int32_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 32 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 32 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_int32_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 32 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 32 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_int32_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 32 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 32 bit integer.
|
|
|
|
*/
|
2011-11-11 16:17:43 +00:00
|
|
|
guint32 gst_byte_reader_get_uint32_le_unchecked (GstByteReader * reader);
|
|
|
|
guint32 gst_byte_reader_get_uint32_be_unchecked (GstByteReader * reader);
|
2009-09-02 10:20:04 +00:00
|
|
|
guint32 gst_byte_reader_peek_uint32_le_unchecked (GstByteReader * reader);
|
|
|
|
guint32 gst_byte_reader_peek_uint32_be_unchecked (GstByteReader * reader);
|
2011-11-11 16:17:43 +00:00
|
|
|
gint32 gst_byte_reader_get_int32_le_unchecked (GstByteReader * reader);
|
|
|
|
gint32 gst_byte_reader_get_int32_be_unchecked (GstByteReader * reader);
|
|
|
|
gint32 gst_byte_reader_peek_int32_le_unchecked (GstByteReader * reader);
|
|
|
|
gint32 gst_byte_reader_peek_int32_be_unchecked (GstByteReader * reader);
|
2009-09-02 10:20:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_uint64_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 64 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 64 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_uint64_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 64 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 64 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_uint64_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 64 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 64 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_uint64_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read an unsigned 64 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: unsigned 64 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_int64_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 64 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 64 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_int64_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 64 bit integer in little endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 64 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_int64_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 64 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader and update the
|
|
|
|
* current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 64 bit integer.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_int64_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a signed 64 bit integer in big endian format without checking
|
|
|
|
* if there are enough bytes available in the byte reader, but do not advance
|
|
|
|
* the current position.
|
|
|
|
*
|
|
|
|
* Returns: signed 64 bit integer.
|
|
|
|
*/
|
2011-11-11 16:17:43 +00:00
|
|
|
guint64 gst_byte_reader_get_uint64_le_unchecked (GstByteReader * reader);
|
|
|
|
guint64 gst_byte_reader_get_uint64_be_unchecked (GstByteReader * reader);
|
2009-09-02 10:20:04 +00:00
|
|
|
guint64 gst_byte_reader_peek_uint64_le_unchecked (GstByteReader * reader);
|
|
|
|
guint64 gst_byte_reader_peek_uint64_be_unchecked (GstByteReader * reader);
|
2011-11-11 16:17:43 +00:00
|
|
|
gint64 gst_byte_reader_get_int64_le_unchecked (GstByteReader * reader);
|
|
|
|
gint64 gst_byte_reader_get_int64_be_unchecked (GstByteReader * reader);
|
|
|
|
gint64 gst_byte_reader_peek_int64_le_unchecked (GstByteReader * reader);
|
|
|
|
gint64 gst_byte_reader_peek_int64_be_unchecked (GstByteReader * reader);
|
2009-09-02 10:20:04 +00:00
|
|
|
|
2009-09-04 16:15:35 +00:00
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_float32_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a 32 bit little endian float without checking if there is enough
|
|
|
|
* data available and update the current position.
|
|
|
|
*
|
|
|
|
* Returns: floating point value read
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_float32_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a 32 bit little endian float without checking if there is enough
|
|
|
|
* data available, but keep the current position.
|
|
|
|
*
|
|
|
|
* Returns: floating point value read
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_float32_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a 32 bit big endian float without checking if there is enough
|
|
|
|
* data available and update the current position.
|
|
|
|
*
|
|
|
|
* Returns: floating point value read
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_float32_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a 32 bit big endian float without checking if there is enough
|
|
|
|
* data available, but keep the current position.
|
|
|
|
*
|
|
|
|
* Returns: floating point value read
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_float64_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a 64 bit little endian float without checking if there is enough
|
|
|
|
* data available and update the current position.
|
|
|
|
*
|
|
|
|
* Returns: double precision floating point value read
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_float64_le_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a 64 bit little endian float without checking if there is enough
|
|
|
|
* data available, but keep the current position.
|
|
|
|
*
|
|
|
|
* Returns: double precision floating point value read
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_float64_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a 64 bit big endian float without checking if there is enough
|
|
|
|
* data available and update the current position.
|
|
|
|
*
|
|
|
|
* Returns: double precision floating point value read
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_float64_be_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
|
|
|
* Read a 64 bit big endian float without checking if there is enough
|
|
|
|
* data available, but keep the current position.
|
|
|
|
*
|
|
|
|
* Returns: double precision floating point value read
|
|
|
|
*/
|
|
|
|
|
2011-11-11 16:17:43 +00:00
|
|
|
gfloat gst_byte_reader_get_float32_le_unchecked (GstByteReader * reader);
|
|
|
|
gfloat gst_byte_reader_get_float32_be_unchecked (GstByteReader * reader);
|
|
|
|
gdouble gst_byte_reader_get_float64_le_unchecked (GstByteReader * reader);
|
|
|
|
gdouble gst_byte_reader_get_float64_be_unchecked (GstByteReader * reader);
|
2009-09-04 16:15:35 +00:00
|
|
|
|
|
|
|
gfloat gst_byte_reader_peek_float32_le_unchecked (GstByteReader * reader);
|
|
|
|
gfloat gst_byte_reader_peek_float32_be_unchecked (GstByteReader * reader);
|
|
|
|
gdouble gst_byte_reader_peek_float64_le_unchecked (GstByteReader * reader);
|
|
|
|
gdouble gst_byte_reader_peek_float64_be_unchecked (GstByteReader * reader);
|
2009-09-02 10:20:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_peek_data_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
*
|
2010-12-07 18:35:56 +00:00
|
|
|
* Returns: (transfer none): a constant pointer to the current data position
|
2009-09-02 10:20:04 +00:00
|
|
|
*/
|
|
|
|
const guint8 * gst_byte_reader_peek_data_unchecked (GstByteReader * reader);
|
|
|
|
/**
|
|
|
|
* gst_byte_reader_get_data_unchecked:
|
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
* @size: Size in bytes
|
|
|
|
*
|
|
|
|
* Returns a constant pointer to the current data position without checking
|
|
|
|
* if at least @size bytes are left. Advances the current read position by
|
|
|
|
* @size bytes.
|
|
|
|
*
|
2010-12-07 18:35:56 +00:00
|
|
|
* Returns: (transfer none) (array length=size): a constant pointer to the
|
|
|
|
* current data position.
|
2009-09-02 10:20:04 +00:00
|
|
|
*/
|
|
|
|
const guint8 * gst_byte_reader_get_data_unchecked (GstByteReader * reader, guint size);
|
|
|
|
/**
|
2010-10-16 18:19:47 +00:00
|
|
|
* gst_byte_reader_dup_data_unchecked:
|
2009-09-02 10:20:04 +00:00
|
|
|
* @reader: a #GstByteReader instance
|
|
|
|
* @size: Size in bytes
|
|
|
|
*
|
|
|
|
* Returns a newly-allocated copy of the data at the current data position
|
|
|
|
* without checking if at least @size bytes are left. Advances the current read
|
|
|
|
* position by @size bytes.
|
|
|
|
*
|
2010-12-07 18:35:56 +00:00
|
|
|
* Free-function: g_free
|
|
|
|
*
|
|
|
|
* Returns: (transfer full) (array length=size): a newly-allocated copy of the
|
|
|
|
* data @size bytes in size. Free with g_free() when no longer needed.
|
2009-09-02 10:20:04 +00:00
|
|
|
*/
|
|
|
|
guint8 * gst_byte_reader_dup_data_unchecked (GstByteReader * reader, guint size);
|
|
|
|
|