mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
codecparsers: Explicitly export functions marked inline
On MSVC, inline functions are not available outside of a file unless explicitly exported
This commit is contained in:
parent
9514d06ab6
commit
2fb76c89fc
1 changed files with 7 additions and 7 deletions
|
@ -77,7 +77,7 @@ nal_reader_init (NalReader * nr, const guint8 * data, guint size)
|
||||||
nr->cache = 0xff;
|
nr->cache = 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline gboolean
|
extern inline gboolean
|
||||||
nal_reader_read (NalReader * nr, guint nbits)
|
nal_reader_read (NalReader * nr, guint nbits)
|
||||||
{
|
{
|
||||||
if (G_UNLIKELY (nr->byte * 8 + (nbits - nr->bits_in_cache) > nr->size * 8)) {
|
if (G_UNLIKELY (nr->byte * 8 + (nbits - nr->bits_in_cache) > nr->size * 8)) {
|
||||||
|
@ -115,7 +115,7 @@ nal_reader_read (NalReader * nr, guint nbits)
|
||||||
|
|
||||||
/* Skips the specified amount of bits. This is only suitable to a
|
/* Skips the specified amount of bits. This is only suitable to a
|
||||||
cacheable number of bits */
|
cacheable number of bits */
|
||||||
inline gboolean
|
extern inline gboolean
|
||||||
nal_reader_skip (NalReader * nr, guint nbits)
|
nal_reader_skip (NalReader * nr, guint nbits)
|
||||||
{
|
{
|
||||||
g_assert (nbits <= 8 * sizeof (nr->cache));
|
g_assert (nbits <= 8 * sizeof (nr->cache));
|
||||||
|
@ -146,19 +146,19 @@ nal_reader_skip_long (NalReader * nr, guint nbits)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline guint
|
extern inline guint
|
||||||
nal_reader_get_pos (const NalReader * nr)
|
nal_reader_get_pos (const NalReader * nr)
|
||||||
{
|
{
|
||||||
return nr->byte * 8 - nr->bits_in_cache;
|
return nr->byte * 8 - nr->bits_in_cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline guint
|
extern inline guint
|
||||||
nal_reader_get_remaining (const NalReader * nr)
|
nal_reader_get_remaining (const NalReader * nr)
|
||||||
{
|
{
|
||||||
return (nr->size - nr->byte) * 8 + nr->bits_in_cache;
|
return (nr->size - nr->byte) * 8 + nr->bits_in_cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline guint
|
extern inline guint
|
||||||
nal_reader_get_epb_count (const NalReader * nr)
|
nal_reader_get_epb_count (const NalReader * nr)
|
||||||
{
|
{
|
||||||
return nr->n_epb;
|
return nr->n_epb;
|
||||||
|
@ -230,7 +230,7 @@ nal_reader_get_ue (NalReader * nr, guint32 * val)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline gboolean
|
extern inline gboolean
|
||||||
nal_reader_get_se (NalReader * nr, gint32 * val)
|
nal_reader_get_se (NalReader * nr, gint32 * val)
|
||||||
{
|
{
|
||||||
guint32 value;
|
guint32 value;
|
||||||
|
@ -297,7 +297,7 @@ nal_reader_has_more_data (NalReader * nr)
|
||||||
|
|
||||||
/*********** end of nal parser ***************/
|
/*********** end of nal parser ***************/
|
||||||
|
|
||||||
inline gint
|
extern inline gint
|
||||||
scan_for_start_codes (const guint8 * data, guint size)
|
scan_for_start_codes (const guint8 * data, guint size)
|
||||||
{
|
{
|
||||||
GstByteReader br;
|
GstByteReader br;
|
||||||
|
|
Loading…
Reference in a new issue