VLC  3.0.15
Data Structures | Macros | Typedefs | Functions
vlc_common.h File Reference
Include dependency graph for vlc_common.h:

Go to the source code of this file.

Data Structures

union  vlc_value_t
 VLC value structure. More...
 
struct  vlc_list_t
 VLC list structure. More...
 
struct  vlc_common_members
 Common structure members. More...
 
struct  vlc_rational_t
 

Macros

#define VLC_GCC_VERSION(maj, min)   (0)
 
#define VLC_DEPRECATED
 
#define VLC_DEPRECATED_ENUM
 
#define VLC_FORMAT(x, y)
 
#define VLC_FORMAT_ARG(x)
 
#define VLC_MALLOC
 
#define VLC_USED
 
#define likely(p)   (!!(p))
 
#define unlikely(p)   (!!(p))
 
#define unreachable()   ((void)0)
 
#define vlc_assert_unreachable()   (assert(!"unreachable"), unreachable())
 
#define VLC_EXTERN
 
#define VLC_EXPORT
 
#define VLC_API   VLC_EXTERN VLC_EXPORT
 
#define VLC_FOURCC(a, b, c, d)
 
#define VLC_TWOCC(a, b)   ( (uint16_t)(a) | ( (uint16_t)(b) << 8 ) )
 
#define VLC_SUCCESS   (-0)
 No error. More...
 
#define VLC_EGENERIC   (-1)
 Unspecified error. More...
 
#define VLC_ENOMEM   (-2)
 Not enough memory. More...
 
#define VLC_ETIMEOUT   (-3)
 Timeout. More...
 
#define VLC_ENOMOD   (-4)
 Module not found. More...
 
#define VLC_ENOOBJ   (-5)
 Object not found. More...
 
#define VLC_ENOVAR   (-6)
 Variable not found. More...
 
#define VLC_EBADVAR   (-7)
 Bad variable value. More...
 
#define VLC_ENOITEM   (-8)
 Item not found. More...
 
#define VLC_COMMON_MEMBERS   struct vlc_common_members obj;
 Backward compatibility macro. More...
 
#define VLC_OBJECT(x)
 Type-safe vlc_object_t cast. More...
 
#define VLC_CLIP(v, min, max)   __MIN(__MAX((v), (min)), (max))
 
#define clz8(x)   (clz(x) - ((sizeof(unsigned) - sizeof (uint8_t)) * 8))
 
#define clz16(x)   (clz(x) - ((sizeof(unsigned) - sizeof (uint16_t)) * 8))
 
#define clz32(x)   (clz(x) - ((sizeof(unsigned) - sizeof (uint32_t)) * 8))
 
#define add_overflow(a, b, r)
 
#define mul_overflow(a, b, r)
 
#define FREENULL(a)   do { free( a ); a = NULL; } while(0)
 
#define EMPTY_STR(str)   (!str || !*str)
 
#define hton16(i)   bswap16(i)
 
#define hton32(i)   bswap32(i)
 
#define hton64(i)   bswap64(i)
 
#define ntoh16(i)   hton16(i)
 
#define ntoh32(i)   hton32(i)
 
#define ntoh64(i)   hton64(i)
 
#define GetWBE(p)   U16_AT(p)
 
#define GetDWBE(p)   U32_AT(p)
 
#define GetQWBE(p)   U64_AT(p)
 
#define VLC_UNUSED(x)   (void)(x)
 
#define container_of(ptr, type, member)   ((type *)(((char *)(ptr)) - offsetof(type, member)))
 
#define vlc_pgettext(ctx, id)   vlc_pgettext_aux( ctx "\004" id, id )
 
#define DIR_SEP_CHAR   '/'
 
#define DIR_SEP   "/"
 
#define PATH_SEP_CHAR   ':'
 
#define PATH_SEP   ":"
 
#define LICENSE_MSG
 

Typedefs

typedef int64_t mtime_t
 High precision date or time interval. More...
 
typedef uint32_t vlc_fourcc_t
 The vlc_fourcc_t type. More...
 
typedef struct vlc_list_t vlc_list_t
 
typedef struct vlc_object_t vlc_object_t
 
typedef struct libvlc_int_t libvlc_int_t
 
typedef struct date_t date_t
 
typedef struct playlist_t playlist_t
 
typedef struct playlist_item_t playlist_item_t
 
typedef struct services_discovery_t services_discovery_t
 
typedef struct services_discovery_sys_t services_discovery_sys_t
 
typedef struct vlc_renderer_discovery_t vlc_renderer_discovery_t
 
typedef struct vlc_renderer_item_t vlc_renderer_item_t
 
typedef struct module_t module_t
 
typedef struct module_config_t module_config_t
 
typedef struct config_category_t config_category_t
 
typedef struct input_thread_t input_thread_t
 
typedef struct input_item_t input_item_t
 
typedef struct input_item_node_t input_item_node_t
 
typedef struct access_sys_t access_sys_t
 
typedef struct stream_t stream_t
 
typedef struct stream_sys_t stream_sys_t
 
typedef struct demux_t demux_t
 
typedef struct demux_sys_t demux_sys_t
 
typedef struct es_out_t es_out_t
 
typedef struct es_out_id_t es_out_id_t
 
typedef struct es_out_sys_t es_out_sys_t
 
typedef struct seekpoint_t seekpoint_t
 
typedef struct info_t info_t
 
typedef struct info_category_t info_category_t
 
typedef struct input_attachment_t input_attachment_t
 
typedef struct audio_format_t audio_format_t
 
typedef struct video_format_t video_format_t
 
typedef struct subs_format_t subs_format_t
 
typedef struct es_format_t es_format_t
 
typedef struct video_palette_t video_palette_t
 
typedef struct audio_output audio_output_t
 
typedef struct aout_sys_t aout_sys_t
 
typedef audio_format_t audio_sample_format_t
 
typedef struct vout_thread_t vout_thread_t
 
typedef struct vlc_viewpoint_t vlc_viewpoint_t
 
typedef video_format_t video_frame_format_t
 
typedef struct picture_t picture_t
 
typedef struct picture_sys_t picture_sys_t
 
typedef struct spu_t spu_t
 
typedef struct subpicture_t subpicture_t
 
typedef struct subpicture_region_t subpicture_region_t
 
typedef struct image_handler_t image_handler_t
 
typedef struct sout_instance_t sout_instance_t
 
typedef struct sout_input_t sout_input_t
 
typedef struct sout_packetizer_input_t sout_packetizer_input_t
 
typedef struct sout_access_out_t sout_access_out_t
 
typedef struct sout_access_out_sys_t sout_access_out_sys_t
 
typedef struct sout_mux_t sout_mux_t
 
typedef struct sout_mux_sys_t sout_mux_sys_t
 
typedef struct sout_stream_t sout_stream_t
 
typedef struct sout_stream_sys_t sout_stream_sys_t
 
typedef struct config_chain_t config_chain_t
 
typedef struct session_descriptor_t session_descriptor_t
 
typedef struct decoder_t decoder_t
 
typedef struct decoder_sys_t decoder_sys_t
 
typedef struct decoder_synchro_t decoder_synchro_t
 
typedef struct encoder_t encoder_t
 
typedef struct encoder_sys_t encoder_sys_t
 
typedef struct filter_t filter_t
 
typedef struct filter_sys_t filter_sys_t
 
typedef struct vlc_url_t vlc_url_t
 
typedef struct iso639_lang_t iso639_lang_t
 
typedef struct block_t block_t
 
typedef struct block_fifo_t block_fifo_t
 
typedef struct md5_s md5_t
 
typedef struct xml_t xml_t
 
typedef struct xml_sys_t xml_sys_t
 
typedef struct xml_reader_t xml_reader_t
 
typedef struct xml_reader_sys_t xml_reader_sys_t
 
typedef struct vod_t vod_t
 
typedef struct vod_sys_t vod_sys_t
 
typedef struct vod_media_t vod_media_t
 
typedef struct vlm_t vlm_t
 
typedef struct vlm_message_t vlm_message_t
 
typedef struct vlc_meta_t vlc_meta_t
 
typedef struct input_stats_t input_stats_t
 
typedef struct addon_entry_t addon_entry_t
 
typedef struct update_t update_t
 
typedef int(* vlc_callback_t) (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
typedef int(* vlc_list_callback_t) (vlc_object_t *, char const *, int, vlc_value_t *, void *)
 

Functions

static void vlc_fourcc_to_char (vlc_fourcc_t fcc, char *psz_fourcc)
 Translate a vlc_fourcc into its string representation. More...
 
static int64_t GCD (int64_t a, int64_t b)
 
static uint8_t clip_uint8_vlc (int32_t a)
 
static unsigned() clz (unsigned x)
 Count leading zeroes. More...
 
static unsigned() ctz (unsigned x)
 Count trailing zeroes. More...
 
static unsigned() popcount (unsigned x)
 Bit weight. More...
 
static int() popcountll (unsigned long long x)
 Bit weight of long long. More...
 
static unsigned() parity (unsigned x)
 
static uint16_t() bswap16 (uint16_t x)
 Byte swap (16 bits) More...
 
static uint32_t() bswap32 (uint32_t x)
 Byte swap (32 bits) More...
 
static uint64_t() bswap64 (uint64_t x)
 Byte swap (64 bits) More...
 
static bool uadd_overflow (unsigned a, unsigned b, unsigned *res)
 
static bool uaddl_overflow (unsigned long a, unsigned long b, unsigned long *res)
 
static bool uaddll_overflow (unsigned long long a, unsigned long long b, unsigned long long *res)
 
static bool umul_overflow (unsigned a, unsigned b, unsigned *res)
 
static bool umull_overflow (unsigned long a, unsigned long b, unsigned long *res)
 
static bool umulll_overflow (unsigned long long a, unsigned long long b, unsigned long long *res)
 
const char * vlc_error (int)
 
static uint16_t U16_AT (const void *p)
 Reads 16 bits in network byte order. More...
 
static uint32_t U32_AT (const void *p)
 Reads 32 bits in network byte order. More...
 
static uint64_t U64_AT (const void *p)
 Reads 64 bits in network byte order. More...
 
static uint16_t GetWLE (const void *p)
 Reads 16 bits in little-endian order. More...
 
static uint32_t GetDWLE (const void *p)
 Reads 32 bits in little-endian order. More...
 
static uint64_t GetQWLE (const void *p)
 Reads 64 bits in little-endian order. More...
 
static void SetWBE (void *p, uint16_t w)
 Writes 16 bits in network byte order. More...
 
static void SetDWBE (void *p, uint32_t dw)
 Writes 32 bits in network byte order. More...
 
static void SetQWBE (void *p, uint64_t qw)
 Writes 64 bits in network byte order. More...
 
static void SetWLE (void *p, uint16_t w)
 Writes 16 bits in little endian order. More...
 
static void SetDWLE (void *p, uint32_t dw)
 Writes 32 bits in little endian order. More...
 
static void SetQWLE (void *p, uint64_t qw)
 Writes 64 bits in little endian order. More...
 
bool vlc_ureduce (unsigned *, unsigned *, uint64_t, uint64_t, uint64_t)
 
static void * vlc_alloc (size_t count, size_t size)
 
char * vlc_gettext (const char *msgid)
 In-tree plugins share their gettext domain with LibVLC. More...
 
char * vlc_ngettext (const char *s, const char *p, unsigned long n)
 
static const char * vlc_pgettext_aux (const char *ctx, const char *id)
 
static void * xmalloc (size_t len)
 
static void * xrealloc (void *ptr, size_t len)
 
static void * xcalloc (size_t n, size_t size)
 
static char * xstrdup (const char *str)
 
const char * VLC_CompileBy (void)
 
const char * VLC_CompileHost (void)
 
const char * VLC_Compiler (void)
 

Detailed Description

This file is a collection of common definitions and types

Macro Definition Documentation

◆ add_overflow

#define add_overflow (   a,
  b,
 
)
Value:
_Generic(*(r), \
unsigned: uadd_overflow(a, b, (unsigned *)(r)), \
unsigned long: uaddl_overflow(a, b, (unsigned long *)(r)), \
unsigned long long: uaddll_overflow(a, b, (unsigned long long *)(r)))

◆ clz16

#define clz16 (   x)    (clz(x) - ((sizeof(unsigned) - sizeof (uint16_t)) * 8))

◆ clz32

#define clz32 (   x)    (clz(x) - ((sizeof(unsigned) - sizeof (uint32_t)) * 8))

◆ clz8

#define clz8 (   x)    (clz(x) - ((sizeof(unsigned) - sizeof (uint8_t)) * 8))

◆ container_of

#define container_of (   ptr,
  type,
  member 
)    ((type *)(((char *)(ptr)) - offsetof(type, member)))

◆ DIR_SEP

#define DIR_SEP   "/"

◆ DIR_SEP_CHAR

#define DIR_SEP_CHAR   '/'

◆ EMPTY_STR

#define EMPTY_STR (   str)    (!str || !*str)

◆ FREENULL

#define FREENULL (   a)    do { free( a ); a = NULL; } while(0)

◆ GetDWBE

#define GetDWBE (   p)    U32_AT(p)

◆ GetQWBE

#define GetQWBE (   p)    U64_AT(p)

◆ GetWBE

#define GetWBE (   p)    U16_AT(p)

◆ hton16

#define hton16 (   i)    bswap16(i)

◆ hton32

#define hton32 (   i)    bswap32(i)

◆ hton64

#define hton64 (   i)    bswap64(i)

◆ LICENSE_MSG

#define LICENSE_MSG
Value:
_("This program comes with NO WARRANTY, to the extent permitted by " \
"law.\nYou may redistribute it under the terms of the GNU General " \
"Public License;\nsee the file named COPYING for details.\n" \
"Written by the VideoLAN team; see the AUTHORS file.\n")

◆ likely

#define likely (   p)    (!!(p))

◆ mul_overflow

#define mul_overflow (   a,
  b,
 
)
Value:
_Generic(*(r), \
unsigned: umul_overflow(a, b, (unsigned *)(r)), \
unsigned long: umull_overflow(a, b, (unsigned long *)(r)), \
unsigned long long: umulll_overflow(a, b, (unsigned long long *)(r)))

◆ ntoh16

#define ntoh16 (   i)    hton16(i)

◆ ntoh32

#define ntoh32 (   i)    hton32(i)

◆ ntoh64

#define ntoh64 (   i)    hton64(i)

◆ PATH_SEP

#define PATH_SEP   ":"

◆ PATH_SEP_CHAR

#define PATH_SEP_CHAR   ':'

◆ unlikely

#define unlikely (   p)    (!!(p))

◆ unreachable

#define unreachable ( )    ((void)0)

◆ VLC_API

#define VLC_API   VLC_EXTERN VLC_EXPORT

◆ vlc_assert_unreachable

#define vlc_assert_unreachable ( )    (assert(!"unreachable"), unreachable())

◆ VLC_CLIP

#define VLC_CLIP (   v,
  min,
  max 
)    __MIN(__MAX((v), (min)), (max))

◆ VLC_COMMON_MEMBERS

#define VLC_COMMON_MEMBERS   struct vlc_common_members obj;

Backward compatibility macro.

◆ VLC_DEPRECATED

#define VLC_DEPRECATED

◆ VLC_DEPRECATED_ENUM

#define VLC_DEPRECATED_ENUM

◆ VLC_EBADVAR

#define VLC_EBADVAR   (-7)

Bad variable value.

◆ VLC_EGENERIC

#define VLC_EGENERIC   (-1)

Unspecified error.

◆ VLC_ENOITEM

#define VLC_ENOITEM   (-8)

Item not found.

◆ VLC_ENOMEM

#define VLC_ENOMEM   (-2)

Not enough memory.

◆ VLC_ENOMOD

#define VLC_ENOMOD   (-4)

Module not found.

◆ VLC_ENOOBJ

#define VLC_ENOOBJ   (-5)

Object not found.

◆ VLC_ENOVAR

#define VLC_ENOVAR   (-6)

Variable not found.

◆ VLC_ETIMEOUT

#define VLC_ETIMEOUT   (-3)

Timeout.

◆ VLC_EXPORT

#define VLC_EXPORT

◆ VLC_EXTERN

#define VLC_EXTERN

◆ VLC_FORMAT

#define VLC_FORMAT (   x,
 
)

◆ VLC_FORMAT_ARG

#define VLC_FORMAT_ARG (   x)

◆ VLC_FOURCC

#define VLC_FOURCC (   a,
  b,
  c,
 
)
Value:
( ((uint32_t)a) | ( ((uint32_t)b) << 8 ) \
| ( ((uint32_t)c) << 16 ) | ( ((uint32_t)d) << 24 ) )

◆ VLC_GCC_VERSION

#define VLC_GCC_VERSION (   maj,
  min 
)    (0)

◆ VLC_MALLOC

#define VLC_MALLOC

◆ VLC_OBJECT

#define VLC_OBJECT (   x)
Value:
_Generic((x)->obj, \
struct vlc_common_members: (vlc_object_t *)(&(x)->obj), \
const struct vlc_common_members: (const vlc_object_t *)(&(x)->obj) \
)

Type-safe vlc_object_t cast.

This macro attempts to cast a pointer to a compound type to a vlc_object_t pointer in a type-safe manner. It checks if the compound type actually starts with an embedded vlc_object_t structure.

◆ vlc_pgettext

#define vlc_pgettext (   ctx,
  id 
)    vlc_pgettext_aux( ctx "\004" id, id )

◆ VLC_SUCCESS

#define VLC_SUCCESS   (-0)

No error.

◆ VLC_TWOCC

#define VLC_TWOCC (   a,
 
)    ( (uint16_t)(a) | ( (uint16_t)(b) << 8 ) )

◆ VLC_UNUSED

#define VLC_UNUSED (   x)    (void)(x)

◆ VLC_USED

#define VLC_USED

Typedef Documentation

◆ access_sys_t

typedef struct access_sys_t access_sys_t

◆ addon_entry_t

typedef struct addon_entry_t addon_entry_t

◆ aout_sys_t

typedef struct aout_sys_t aout_sys_t

◆ audio_format_t

◆ audio_output_t

typedef struct audio_output audio_output_t

◆ audio_sample_format_t

◆ block_fifo_t

typedef struct block_fifo_t block_fifo_t

◆ block_t

typedef struct block_t block_t

◆ config_category_t

◆ config_chain_t

◆ date_t

typedef struct date_t date_t

◆ decoder_synchro_t

◆ decoder_sys_t

typedef struct decoder_sys_t decoder_sys_t

◆ decoder_t

typedef struct decoder_t decoder_t

◆ demux_sys_t

typedef struct demux_sys_t demux_sys_t

◆ demux_t

typedef struct demux_t demux_t

◆ encoder_sys_t

typedef struct encoder_sys_t encoder_sys_t

◆ encoder_t

typedef struct encoder_t encoder_t

◆ es_format_t

typedef struct es_format_t es_format_t

◆ es_out_id_t

typedef struct es_out_id_t es_out_id_t

◆ es_out_sys_t

typedef struct es_out_sys_t es_out_sys_t

◆ es_out_t

typedef struct es_out_t es_out_t

◆ filter_sys_t

typedef struct filter_sys_t filter_sys_t

◆ filter_t

typedef struct filter_t filter_t

◆ image_handler_t

◆ info_category_t

◆ info_t

typedef struct info_t info_t

◆ input_attachment_t

◆ input_item_node_t

◆ input_item_t

typedef struct input_item_t input_item_t

◆ input_stats_t

typedef struct input_stats_t input_stats_t

◆ input_thread_t

◆ iso639_lang_t

typedef struct iso639_lang_t iso639_lang_t

◆ libvlc_int_t

typedef struct libvlc_int_t libvlc_int_t

◆ md5_t

typedef struct md5_s md5_t

◆ module_config_t

◆ module_t

typedef struct module_t module_t

◆ mtime_t

typedef int64_t mtime_t

High precision date or time interval.

Store a high precision date or time interval. The maximum precision is the microsecond, and a 64 bits integer is used to avoid overflows (maximum time interval is then 292271 years, which should be long enough for any video). Dates are stored as microseconds since a common date (usually the epoch). Note that date and time intervals can be manipulated using regular arithmetic operators, and that no special functions are required.

◆ picture_sys_t

typedef struct picture_sys_t picture_sys_t

◆ picture_t

typedef struct picture_t picture_t

◆ playlist_item_t

◆ playlist_t

typedef struct playlist_t playlist_t

◆ seekpoint_t

typedef struct seekpoint_t seekpoint_t

◆ services_discovery_sys_t

◆ services_discovery_t

◆ session_descriptor_t

◆ sout_access_out_sys_t

◆ sout_access_out_t

◆ sout_input_t

typedef struct sout_input_t sout_input_t

◆ sout_instance_t

◆ sout_mux_sys_t

◆ sout_mux_t

typedef struct sout_mux_t sout_mux_t

◆ sout_packetizer_input_t

◆ sout_stream_sys_t

◆ sout_stream_t

typedef struct sout_stream_t sout_stream_t

◆ spu_t

typedef struct spu_t spu_t

◆ stream_sys_t

typedef struct stream_sys_t stream_sys_t

◆ stream_t

typedef struct stream_t stream_t

◆ subpicture_region_t

◆ subpicture_t

typedef struct subpicture_t subpicture_t

◆ subs_format_t

typedef struct subs_format_t subs_format_t

◆ update_t

typedef struct update_t update_t

◆ video_format_t

◆ video_frame_format_t

◆ video_palette_t

◆ vlc_callback_t

typedef int( * vlc_callback_t) (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)

◆ vlc_fourcc_t

typedef uint32_t vlc_fourcc_t

The vlc_fourcc_t type.

See http://www.webartz.com/fourcc/ for a very detailed list.

◆ vlc_list_callback_t

typedef int( * vlc_list_callback_t) (vlc_object_t *, char const *, int, vlc_value_t *, void *)

◆ vlc_list_t

typedef struct vlc_list_t vlc_list_t

◆ vlc_meta_t

typedef struct vlc_meta_t vlc_meta_t

◆ vlc_object_t

typedef struct vlc_object_t vlc_object_t

◆ vlc_renderer_discovery_t

◆ vlc_renderer_item_t

◆ vlc_url_t

typedef struct vlc_url_t vlc_url_t

◆ vlc_viewpoint_t

◆ vlm_message_t

typedef struct vlm_message_t vlm_message_t

◆ vlm_t

typedef struct vlm_t vlm_t

◆ vod_media_t

typedef struct vod_media_t vod_media_t

◆ vod_sys_t

typedef struct vod_sys_t vod_sys_t

◆ vod_t

typedef struct vod_t vod_t

◆ vout_thread_t

typedef struct vout_thread_t vout_thread_t

◆ xml_reader_sys_t

◆ xml_reader_t

typedef struct xml_reader_t xml_reader_t

◆ xml_sys_t

typedef struct xml_sys_t xml_sys_t

◆ xml_t

typedef struct xml_t xml_t

Function Documentation

◆ bswap16()

static uint16_t() bswap16 ( uint16_t  x)
inlinestatic

Byte swap (16 bits)

Referenced by SetDWLE().

◆ bswap32()

static uint32_t() bswap32 ( uint32_t  x)
inlinestatic

Byte swap (32 bits)

Referenced by SetQWLE().

◆ bswap64()

static uint64_t() bswap64 ( uint64_t  x)
inlinestatic

Byte swap (64 bits)

Referenced by SetWBE().

◆ clip_uint8_vlc()

static uint8_t clip_uint8_vlc ( int32_t  a)
inlinestatic

◆ clz()

static unsigned() clz ( unsigned  x)
inlinestatic

Count leading zeroes.

◆ ctz()

static unsigned() ctz ( unsigned  x)
inlinestatic

Count trailing zeroes.

◆ GCD()

static int64_t GCD ( int64_t  a,
int64_t  b 
)
inlinestatic

◆ GetDWLE()

static uint32_t GetDWLE ( const void *  p)
inlinestatic

Reads 32 bits in little-endian order.

◆ GetQWLE()

static uint64_t GetQWLE ( const void *  p)
inlinestatic

Reads 64 bits in little-endian order.

◆ GetWLE()

static uint16_t GetWLE ( const void *  p)
inlinestatic

Reads 16 bits in little-endian order.

◆ parity()

static unsigned() parity ( unsigned  x)
inlinestatic

References count.

◆ popcount()

static unsigned() popcount ( unsigned  x)
inlinestatic

Bit weight.

◆ popcountll()

static int() popcountll ( unsigned long long  x)
inlinestatic

Bit weight of long long.

References count.

◆ SetDWBE()

static void SetDWBE ( void *  p,
uint32_t  dw 
)
inlinestatic

◆ SetDWLE()

static void SetDWLE ( void *  p,
uint32_t  dw 
)
inlinestatic

Writes 32 bits in little endian order.

References bswap16(), and p.

◆ SetQWBE()

static void SetQWBE ( void *  p,
uint64_t  qw 
)
inlinestatic

Writes 64 bits in network byte order.

◆ SetQWLE()

static void SetQWLE ( void *  p,
uint64_t  qw 
)
inlinestatic

Writes 64 bits in little endian order.

References bswap32(), and p.

◆ SetWBE()

static void SetWBE ( void *  p,
uint16_t  w 
)
inlinestatic

Writes 16 bits in network byte order.

References bswap64(), and p.

Referenced by SocksHandshakeTCP(), and vlc_h2_frame_settings().

◆ SetWLE()

static void SetWLE ( void *  p,
uint16_t  w 
)
inlinestatic

Writes 16 bits in little endian order.

◆ U16_AT()

static uint16_t U16_AT ( const void *  p)
inlinestatic

Reads 16 bits in network byte order.

Referenced by vlc_stream_ReadLine().

◆ U32_AT()

static uint32_t U32_AT ( const void *  p)
inlinestatic

Reads 32 bits in network byte order.

References ntoh16, and p.

Referenced by parse_signature_v4_packet().

◆ U64_AT()

static uint64_t U64_AT ( const void *  p)
inlinestatic

Reads 64 bits in network byte order.

References ntoh32, and p.

◆ uadd_overflow()

static bool uadd_overflow ( unsigned  a,
unsigned  b,
unsigned *  res 
)
inlinestatic

◆ uaddl_overflow()

static bool uaddl_overflow ( unsigned long  a,
unsigned long  b,
unsigned long *  res 
)
inlinestatic

◆ uaddll_overflow()

static bool uaddll_overflow ( unsigned long long  a,
unsigned long long  b,
unsigned long long *  res 
)
inlinestatic

Referenced by umul_overflow().

◆ umul_overflow()

static bool umul_overflow ( unsigned  a,
unsigned  b,
unsigned *  res 
)
inlinestatic

References uaddll_overflow().

◆ umull_overflow()

static bool umull_overflow ( unsigned long  a,
unsigned long  b,
unsigned long *  res 
)
inlinestatic

◆ umulll_overflow()

static bool umulll_overflow ( unsigned long long  a,
unsigned long long  b,
unsigned long long *  res 
)
inlinestatic

◆ vlc_alloc()

static void* vlc_alloc ( size_t  count,
size_t  size 
)
inlinestatic

◆ VLC_CompileBy()

const char* VLC_CompileBy ( void  )

Referenced by Version().

◆ VLC_CompileHost()

const char* VLC_CompileHost ( void  )

Referenced by Version().

◆ VLC_Compiler()

const char* VLC_Compiler ( void  )

Referenced by Version().

◆ vlc_error()

const char* vlc_error ( int  )

< No error

< Not enough memory

< Timeout

< Module not found

< Object not found

< Variable not found

< Bad variable value

< Unspecified error

References VLC_EBADVAR, VLC_EGENERIC, VLC_ENOMEM, VLC_ENOMOD, VLC_ENOOBJ, VLC_ENOVAR, VLC_ETIMEOUT, and VLC_SUCCESS.

◆ vlc_fourcc_to_char()

static void vlc_fourcc_to_char ( vlc_fourcc_t  fcc,
char *  psz_fourcc 
)
inlinestatic

Translate a vlc_fourcc into its string representation.

This function assumes there is enough room in psz_fourcc to store 4 characters in.

Parameters
fcca vlc_fourcc_t
psz_fourccstring to store string representation of vlc_fourcc in

◆ vlc_gettext()

char* vlc_gettext ( const char *  msgid)

◆ vlc_ngettext()

char* vlc_ngettext ( const char *  s,
const char *  p,
unsigned long  n 
)

References likely.

◆ vlc_pgettext_aux()

static const char* vlc_pgettext_aux ( const char *  ctx,
const char *  id 
)
inlinestatic

◆ vlc_ureduce()

bool vlc_ureduce ( unsigned *  ,
unsigned *  ,
uint64_t  ,
uint64_t  ,
uint64_t   
)

◆ xcalloc()

static void* xcalloc ( size_t  n,
size_t  size 
)
inlinestatic

◆ xmalloc()

static void* xmalloc ( size_t  len)
inlinestatic

◆ xrealloc()

static void* xrealloc ( void *  ptr,
size_t  len 
)
inlinestatic

◆ xstrdup()

static char* xstrdup ( const char *  str)
inlinestatic
umull_overflow
static bool umull_overflow(unsigned long a, unsigned long b, unsigned long *res)
Definition: vlc_common.h:718
uaddll_overflow
static bool uaddll_overflow(unsigned long long a, unsigned long long b, unsigned long long *res)
Definition: vlc_common.h:668
uaddl_overflow
static bool uaddl_overflow(unsigned long a, unsigned long b, unsigned long *res)
Definition: vlc_common.h:657
_
#define _(str)
Definition: vlc_fixups.h:371
umul_overflow
static bool umul_overflow(unsigned a, unsigned b, unsigned *res)
Definition: vlc_common.h:708
vlc_common_members
Common structure members.
Definition: vlc_common.h:412
vlc_object_t
The main vlc_object_t structure.
Definition: vlc_objects.h:39
uadd_overflow
static bool uadd_overflow(unsigned a, unsigned b, unsigned *res)
Definition: vlc_common.h:647
umulll_overflow
static bool umulll_overflow(unsigned long long a, unsigned long long b, unsigned long long *res)
Definition: vlc_common.h:729