mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 14:38:48 +00:00
bytereader: add inline variant of gst_byte_reader_init()
This commit is contained in:
parent
a6010a9155
commit
fcfe7085b9
1 changed files with 13 additions and 0 deletions
|
@ -333,6 +333,9 @@ __GST_BYTE_READER_GET_PEEK_BITS_INLINE(64,gdouble,float64_be)
|
||||||
|
|
||||||
#ifndef GST_BYTE_READER_DISABLE_INLINES
|
#ifndef GST_BYTE_READER_DISABLE_INLINES
|
||||||
|
|
||||||
|
#define gst_byte_reader_init(reader,data,size) \
|
||||||
|
_gst_byte_reader_init_inline(reader,data,size)
|
||||||
|
|
||||||
#define gst_byte_reader_get_remaining(reader) \
|
#define gst_byte_reader_get_remaining(reader) \
|
||||||
_gst_byte_reader_get_remaining_inline(reader)
|
_gst_byte_reader_get_remaining_inline(reader)
|
||||||
|
|
||||||
|
@ -436,6 +439,16 @@ __GST_BYTE_READER_GET_PEEK_BITS_INLINE(64,gdouble,float64_be)
|
||||||
|
|
||||||
#endif /* GST_BYTE_READER_DISABLE_INLINES */
|
#endif /* GST_BYTE_READER_DISABLE_INLINES */
|
||||||
|
|
||||||
|
static inline void
|
||||||
|
_gst_byte_reader_init_inline (GstByteReader * reader, const guint8 * data, guint size)
|
||||||
|
{
|
||||||
|
g_return_if_fail (reader != NULL);
|
||||||
|
|
||||||
|
reader->data = data;
|
||||||
|
reader->size = size;
|
||||||
|
reader->byte = 0;
|
||||||
|
}
|
||||||
|
|
||||||
static inline gboolean
|
static inline gboolean
|
||||||
_gst_byte_reader_dup_data_inline (GstByteReader * reader, guint size, guint8 ** val)
|
_gst_byte_reader_dup_data_inline (GstByteReader * reader, guint size, guint8 ** val)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue