1 /* GStreamer bit reader dummy header for gtk-doc
2 * Copyright (C) 2010 Sebastian Dröge <sebastian.droege@collabora.co.uk>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 /* This header is not installed, it just contains stuff for gtk-doc to parse,
21 * in particular docs and some dummy function declarations for the static
22 * inline functions we generate via macros in gstbitreader.h.
25 #error "This header should never be included in code, it is only for gtk-doc"
28 * gst_bit_reader_skip_unchecked:
29 * @reader: a #GstBitReader instance
30 * @nbits: the number of bits to skip
32 * Skips @nbits bits of the #GstBitReader instance without checking if there
33 * are enough bits available in the bit reader.
35 * Returns: %TRUE if @nbits bits could be skipped, %FALSE otherwise.
39 void gst_bit_reader_skip_unchecked (GstBitReader * reader, guint nbits);
42 * gst_bit_reader_skip_to_byte_unchecked:
43 * @reader: a #GstBitReader instance
45 * Skips until the next byte without checking if there are enough bits
46 * available in the bit reader.
48 * Returns: %TRUE if successful, %FALSE otherwise.
52 void gst_bit_reader_skip_to_byte_unchecked (GstBitReader * reader);
55 * gst_bit_reader_get_bits_uint8_unchecked:
56 * @reader: a #GstBitReader instance
57 * @nbits: number of bits to read
59 * Read @nbits bits into @val and update the current position without
60 * checking if there are enough bits available in the bit reader.
62 * Returns: unsigned 8 bit integer with the bits.
66 guint8 gst_bit_reader_peek_bits_uint8_unchecked (const GstBitReader *reader, guint nbits);
69 * gst_bit_reader_peek_bits_uint8_unchecked:
70 * @reader: a #GstBitReader instance
71 * @nbits: number of bits to read
73 * Read @nbits bits into @val but keep the current position without
74 * checking if there are enough bits available in the bit reader
76 * Returns: unsigned 8 bit integer with the bits.
80 guint8 gst_bit_reader_get_bits_uint8_unchecked (GstBitReader *reader, guint nbits);
83 * gst_bit_reader_get_bits_uint16_unchecked:
84 * @reader: a #GstBitReader instance
85 * @nbits: number of bits to read
87 * Read @nbits bits into @val and update the current position without
88 * checking if there are enough bits available in the bit reader.
90 * Returns: unsigned 16 bit integer with the bits.
94 guint16 gst_bit_reader_peek_bits_uint16_unchecked (const GstBitReader *reader, guint nbits);
97 * gst_bit_reader_peek_bits_uint16_unchecked:
98 * @reader: a #GstBitReader instance
99 * @nbits: number of bits to read
101 * Read @nbits bits into @val but keep the current position without
102 * checking if there are enough bits available in the bit reader
104 * Returns: unsigned 16 bit integer with the bits.
108 guint16 gst_bit_reader_get_bits_uint16_unchecked (GstBitReader *reader, guint nbits);
111 * gst_bit_reader_get_bits_uint32_unchecked:
112 * @reader: a #GstBitReader instance
113 * @nbits: number of bits to read
115 * Read @nbits bits into @val and update the current position without
116 * checking if there are enough bits available in the bit reader.
118 * Returns: unsigned 32 bit integer with the bits.
122 guint32 gst_bit_reader_peek_bits_uint32_unchecked (const GstBitReader *reader, guint nbits);
125 * gst_bit_reader_peek_bits_uint32_unchecked:
126 * @reader: a #GstBitReader instance
127 * @nbits: number of bits to read
129 * Read @nbits bits into @val but keep the current position without
130 * checking if there are enough bits available in the bit reader
132 * Returns: unsigned 32 bit integer with the bits.
136 guint32 gst_bit_reader_get_bits_uint32_unchecked (GstBitReader *reader, guint nbits);
139 * gst_bit_reader_get_bits_uint64_unchecked:
140 * @reader: a #GstBitReader instance
141 * @nbits: number of bits to read
143 * Read @nbits bits into @val and update the current position without
144 * checking if there are enough bits available in the bit reader.
146 * Returns: unsigned 64 bit integer with the bits.
150 guint64 gst_bit_reader_peek_bits_uint64_unchecked (const GstBitReader *reader, guint nbits);
153 * gst_bit_reader_peek_bits_uint16_unchecked:
154 * @reader: a #GstBitReader instance
155 * @nbits: number of bits to read
157 * Read @nbits bits into @val but keep the current position without
158 * checking if there are enough bits available in the bit reader
160 * Returns: unsigned 64 bit integer with the bits.
164 guint64 gst_bit_reader_get_bits_uint64_unchecked (GstBitReader *reader, guint nbits);