mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
utils: silence g-ir-scanner warnings about float conversion macros
663: Warning: Gst: symbol='GFLOAT_TO_LE': Unknown namespace for symbol 'GFLOAT_TO_LE' 664: Warning: Gst: symbol='GFLOAT_TO_BE': Unknown namespace for symbol 'GFLOAT_TO_BE' 665: Warning: Gst: symbol='GDOUBLE_TO_LE': Unknown namespace for symbol 'GDOUBLE_TO_LE' 666: Warning: Gst: symbol='GDOUBLE_TO_BE': Unknown namespace for symbol 'GDOUBLE_TO_BE' 669: Warning: Gst: symbol='GFLOAT_TO_LE': Unknown namespace for symbol 'GFLOAT_TO_LE' 670: Warning: Gst: symbol='GFLOAT_TO_BE': Unknown namespace for symbol 'GFLOAT_TO_BE' 671: Warning: Gst: symbol='GDOUBLE_TO_LE': Unknown namespace for symbol 'GDOUBLE_TO_LE' 672: Warning: Gst: symbol='GDOUBLE_TO_BE': Unknown namespace for symbol 'GDOUBLE_TO_BE' 678: Warning: Gst: symbol='GFLOAT_FROM_LE': Unknown namespace for symbol 'GFLOAT_FROM_LE' 679: Warning: Gst: symbol='GFLOAT_FROM_BE': Unknown namespace for symbol 'GFLOAT_FROM_BE' 680: Warning: Gst: symbol='GDOUBLE_FROM_LE': Unknown namespace for symbol 'GDOUBLE_FROM_LE' 681: Warning: Gst: symbol='GDOUBLE_FROM_BE': Unknown namespace for symbol 'GDOUBLE_FROM_BE' Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/579>
This commit is contained in:
parent
6e7f4491ce
commit
31ed9cf284
1 changed files with 13 additions and 10 deletions
|
@ -554,11 +554,12 @@ static inline guint16 __gst_slow_read16_le (const guint8 * data) {
|
|||
} while (0)
|
||||
|
||||
/* Float endianness conversion macros */
|
||||
#ifndef __GI_SCANNER__
|
||||
|
||||
/* FIXME: Remove this once we depend on a GLib version with this */
|
||||
#ifndef GFLOAT_FROM_LE
|
||||
/**
|
||||
* GFLOAT_SWAP_LE_BE:
|
||||
* GFLOAT_SWAP_LE_BE: (skip)
|
||||
* @in: input value
|
||||
*
|
||||
* Swap byte order of a 32-bit floating point value (float).
|
||||
|
@ -580,7 +581,7 @@ GFLOAT_SWAP_LE_BE(gfloat in)
|
|||
}
|
||||
|
||||
/**
|
||||
* GDOUBLE_SWAP_LE_BE:
|
||||
* GDOUBLE_SWAP_LE_BE: (skip)
|
||||
* @in: input value
|
||||
*
|
||||
* Swap byte order of a 64-bit floating point value (double).
|
||||
|
@ -602,28 +603,28 @@ GDOUBLE_SWAP_LE_BE(gdouble in)
|
|||
}
|
||||
|
||||
/**
|
||||
* GDOUBLE_TO_LE:
|
||||
* GDOUBLE_TO_LE: (skip)
|
||||
* @val: value
|
||||
*
|
||||
* Convert 64-bit floating point value (double) from native byte order into
|
||||
* little endian byte order.
|
||||
*/
|
||||
/**
|
||||
* GDOUBLE_TO_BE:
|
||||
* GDOUBLE_TO_BE: (skip)
|
||||
* @val: value
|
||||
*
|
||||
* Convert 64-bit floating point value (double) from native byte order into
|
||||
* big endian byte order.
|
||||
*/
|
||||
/**
|
||||
* GDOUBLE_FROM_LE:
|
||||
* GDOUBLE_FROM_LE: (skip)
|
||||
* @val: value
|
||||
*
|
||||
* Convert 64-bit floating point value (double) from little endian byte order
|
||||
* into native byte order.
|
||||
*/
|
||||
/**
|
||||
* GDOUBLE_FROM_BE:
|
||||
* GDOUBLE_FROM_BE: (skip)
|
||||
* @val: value
|
||||
*
|
||||
* Convert 64-bit floating point value (double) from big endian byte order
|
||||
|
@ -631,28 +632,28 @@ GDOUBLE_SWAP_LE_BE(gdouble in)
|
|||
*/
|
||||
|
||||
/**
|
||||
* GFLOAT_TO_LE:
|
||||
* GFLOAT_TO_LE: (skip)
|
||||
* @val: value
|
||||
*
|
||||
* Convert 32-bit floating point value (float) from native byte order into
|
||||
* little endian byte order.
|
||||
*/
|
||||
/**
|
||||
* GFLOAT_TO_BE:
|
||||
* GFLOAT_TO_BE: (skip)
|
||||
* @val: value
|
||||
*
|
||||
* Convert 32-bit floating point value (float) from native byte order into
|
||||
* big endian byte order.
|
||||
*/
|
||||
/**
|
||||
* GFLOAT_FROM_LE:
|
||||
* GFLOAT_FROM_LE: (skip)
|
||||
* @val: value
|
||||
*
|
||||
* Convert 32-bit floating point value (float) from little endian byte order
|
||||
* into native byte order.
|
||||
*/
|
||||
/**
|
||||
* GFLOAT_FROM_BE:
|
||||
* GFLOAT_FROM_BE: (skip)
|
||||
* @val: value
|
||||
*
|
||||
* Convert 32-bit floating point value (float) from big endian byte order
|
||||
|
@ -682,6 +683,8 @@ GDOUBLE_SWAP_LE_BE(gdouble in)
|
|||
|
||||
#endif /* !defined(GFLOAT_FROM_LE) */
|
||||
|
||||
#endif /* !__GI_SCANNER__ */
|
||||
|
||||
/**
|
||||
* GST_READ_FLOAT_LE:
|
||||
* @data: memory location
|
||||
|
|
Loading…
Reference in a new issue