VLC
3.0.18
|
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 |
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) |
This file is a collection of common definitions and types
#define add_overflow | ( | a, | |
b, | |||
r | |||
) |
#define clz16 | ( | x | ) | (clz(x) - ((sizeof(unsigned) - sizeof (uint16_t)) * 8)) |
#define clz32 | ( | x | ) | (clz(x) - ((sizeof(unsigned) - sizeof (uint32_t)) * 8)) |
#define clz8 | ( | x | ) | (clz(x) - ((sizeof(unsigned) - sizeof (uint8_t)) * 8)) |
#define container_of | ( | ptr, | |
type, | |||
member | |||
) | ((type *)(((char *)(ptr)) - offsetof(type, member))) |
#define DIR_SEP "/" |
#define DIR_SEP_CHAR '/' |
#define EMPTY_STR | ( | str | ) | (!str || !*str) |
#define FREENULL | ( | a | ) | do { free( a ); a = NULL; } while(0) |
#define hton16 | ( | i | ) | bswap16(i) |
#define hton32 | ( | i | ) | bswap32(i) |
#define hton64 | ( | i | ) | bswap64(i) |
#define LICENSE_MSG |
#define mul_overflow | ( | a, | |
b, | |||
r | |||
) |
#define ntoh16 | ( | i | ) | hton16(i) |
#define ntoh32 | ( | i | ) | hton32(i) |
#define ntoh64 | ( | i | ) | hton64(i) |
#define PATH_SEP ":" |
#define PATH_SEP_CHAR ':' |
#define unreachable | ( | ) | ((void)0) |
#define VLC_API VLC_EXTERN VLC_EXPORT |
#define vlc_assert_unreachable | ( | ) | (assert(!"unreachable"), unreachable()) |
#define VLC_CLIP | ( | v, | |
min, | |||
max | |||
) | __MIN(__MAX((v), (min)), (max)) |
#define VLC_COMMON_MEMBERS struct vlc_common_members obj; |
Backward compatibility macro.
#define VLC_DEPRECATED |
#define VLC_DEPRECATED_ENUM |
#define VLC_EBADVAR (-7) |
Bad variable value.
#define VLC_EGENERIC (-1) |
Unspecified error.
#define VLC_ENOITEM (-8) |
Item not found.
#define VLC_ENOMEM (-2) |
Not enough memory.
#define VLC_ENOMOD (-4) |
Module not found.
#define VLC_ENOOBJ (-5) |
Object not found.
#define VLC_ENOVAR (-6) |
Variable not found.
#define VLC_ETIMEOUT (-3) |
Timeout.
#define VLC_EXPORT |
#define VLC_EXTERN |
#define VLC_FORMAT | ( | x, | |
y | |||
) |
#define VLC_FORMAT_ARG | ( | x | ) |
#define VLC_FOURCC | ( | a, | |
b, | |||
c, | |||
d | |||
) |
#define VLC_GCC_VERSION | ( | maj, | |
min | |||
) | (0) |
#define VLC_MALLOC |
#define VLC_OBJECT | ( | x | ) |
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.
#define vlc_pgettext | ( | ctx, | |
id | |||
) | vlc_pgettext_aux( ctx "\004" id, id ) |
#define VLC_SUCCESS (-0) |
No error.
#define VLC_TWOCC | ( | a, | |
b | |||
) | ( (uint16_t)(a) | ( (uint16_t)(b) << 8 ) ) |
#define VLC_UNUSED | ( | x | ) | (void)(x) |
#define VLC_USED |
typedef struct access_sys_t access_sys_t |
typedef struct addon_entry_t addon_entry_t |
typedef struct aout_sys_t aout_sys_t |
typedef struct audio_format_t audio_format_t |
typedef struct audio_output audio_output_t |
typedef audio_format_t audio_sample_format_t |
typedef struct block_fifo_t block_fifo_t |
typedef struct config_category_t config_category_t |
typedef struct config_chain_t config_chain_t |
typedef struct decoder_synchro_t decoder_synchro_t |
typedef struct decoder_sys_t decoder_sys_t |
typedef struct demux_sys_t demux_sys_t |
typedef struct encoder_sys_t encoder_sys_t |
typedef struct es_format_t es_format_t |
typedef struct es_out_id_t es_out_id_t |
typedef struct es_out_sys_t es_out_sys_t |
typedef struct filter_sys_t filter_sys_t |
typedef struct image_handler_t image_handler_t |
typedef struct info_category_t info_category_t |
typedef struct input_attachment_t input_attachment_t |
typedef struct input_item_node_t input_item_node_t |
typedef struct input_item_t input_item_t |
typedef struct input_stats_t input_stats_t |
typedef struct input_thread_t input_thread_t |
typedef struct iso639_lang_t iso639_lang_t |
typedef struct libvlc_int_t libvlc_int_t |
typedef struct module_config_t module_config_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.
typedef struct picture_sys_t picture_sys_t |
typedef struct playlist_item_t playlist_item_t |
typedef struct playlist_t playlist_t |
typedef struct seekpoint_t seekpoint_t |
typedef struct services_discovery_sys_t services_discovery_sys_t |
typedef struct services_discovery_t services_discovery_t |
typedef struct session_descriptor_t session_descriptor_t |
typedef struct sout_access_out_sys_t sout_access_out_sys_t |
typedef struct sout_access_out_t sout_access_out_t |
typedef struct sout_input_t sout_input_t |
typedef struct sout_instance_t sout_instance_t |
typedef struct sout_mux_sys_t sout_mux_sys_t |
typedef struct sout_mux_t sout_mux_t |
typedef struct sout_packetizer_input_t sout_packetizer_input_t |
typedef struct sout_stream_sys_t sout_stream_sys_t |
typedef struct sout_stream_t sout_stream_t |
typedef struct stream_sys_t stream_sys_t |
typedef struct subpicture_region_t subpicture_region_t |
typedef struct subpicture_t subpicture_t |
typedef struct subs_format_t subs_format_t |
typedef struct video_format_t video_format_t |
typedef video_format_t video_frame_format_t |
typedef struct video_palette_t video_palette_t |
typedef int( * vlc_callback_t) (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *) |
typedef uint32_t vlc_fourcc_t |
The vlc_fourcc_t type.
See http://www.webartz.com/fourcc/ for a very detailed list.
typedef int( * vlc_list_callback_t) (vlc_object_t *, char const *, int, vlc_value_t *, void *) |
typedef struct vlc_list_t vlc_list_t |
typedef struct vlc_meta_t vlc_meta_t |
typedef struct vlc_object_t vlc_object_t |
typedef struct vlc_renderer_discovery_t vlc_renderer_discovery_t |
typedef struct vlc_renderer_item_t vlc_renderer_item_t |
typedef struct vlc_viewpoint_t vlc_viewpoint_t |
typedef struct vlm_message_t vlm_message_t |
typedef struct vod_media_t vod_media_t |
typedef struct vout_thread_t vout_thread_t |
typedef struct xml_reader_sys_t xml_reader_sys_t |
typedef struct xml_reader_t xml_reader_t |
|
inlinestatic |
Byte swap (16 bits)
Referenced by SetDWLE().
|
inlinestatic |
Byte swap (32 bits)
Referenced by SetQWLE().
|
inlinestatic |
Byte swap (64 bits)
Referenced by SetWBE().
|
inlinestatic |
|
inlinestatic |
Count leading zeroes.
|
inlinestatic |
Count trailing zeroes.
|
inlinestatic |
|
inlinestatic |
Reads 32 bits in little-endian order.
|
inlinestatic |
Reads 64 bits in little-endian order.
|
inlinestatic |
Reads 16 bits in little-endian order.
|
inlinestatic |
References count.
|
inlinestatic |
Bit weight.
|
inlinestatic |
Bit weight of long long.
References count.
|
inlinestatic |
Writes 32 bits in network byte order.
Referenced by vlc_h2_frame_alloc(), vlc_h2_frame_goaway(), vlc_h2_frame_rst_stream(), vlc_h2_frame_settings(), and vlc_h2_frame_window_update().
|
inlinestatic |
|
inlinestatic |
Writes 64 bits in network byte order.
|
inlinestatic |
|
inlinestatic |
Writes 16 bits in network byte order.
Referenced by SocksHandshakeTCP(), and vlc_h2_frame_settings().
|
inlinestatic |
Writes 16 bits in little endian order.
|
inlinestatic |
Reads 16 bits in network byte order.
Referenced by vlc_stream_ReadLine().
|
inlinestatic |
Reads 32 bits in network byte order.
Referenced by parse_signature_v4_packet().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Referenced by umul_overflow().
|
inlinestatic |
References uaddll_overflow().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Referenced by aout_DevicesList(), config_GetIntChoices(), config_LoadCmdLine(), EsOutControlLocked(), input_EsOutTimeshiftNew(), input_item_CopyOptions(), input_vaControl(), IPCHelperThread(), module_config_get(), module_list_cap(), timestamp_FifoNew(), vlc_actions_get_keycodes(), vlc_GetCPUCount(), vlc_http_msg_h2_frame(), vlc_idna_to_ascii(), vlc_list_children(), vlc_poll_i11e(), vlc_rd_get_names(), and vlc_sd_GetNames().
const char* VLC_CompileBy | ( | void | ) |
Referenced by Version().
const char* VLC_CompileHost | ( | void | ) |
Referenced by Version().
const char* VLC_Compiler | ( | void | ) |
Referenced by Version().
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.
|
inlinestatic |
Translate a vlc_fourcc into its string representation.
This function assumes there is enough room in psz_fourcc to store 4 characters in.
fcc | a vlc_fourcc_t |
psz_fourcc | string to store string representation of vlc_fourcc in |
char* vlc_gettext | ( | const char * | msgid | ) |
In-tree plugins share their gettext domain with LibVLC.
References likely.
Referenced by aout_New(), config_CategoryHelpGet(), config_CategoryNameGet(), config_GetIntChoices(), decoder_New(), input_vaControl(), LanguageGetCode(), vlc_http_res_req(), vlc_keycode2str(), vout_InitInterlacingSupport(), and xmalloc().
char* vlc_ngettext | ( | const char * | s, |
const char * | p, | ||
unsigned long | n | ||
) |
References likely.
|
inlinestatic |
bool vlc_ureduce | ( | unsigned * | , |
unsigned * | , | ||
uint64_t | , | ||
uint64_t | , | ||
uint64_t | |||
) |
Referenced by var_InheritURational(), vout_update_format(), and VoutValidateFormat().
|
inlinestatic |
|
inlinestatic |
References vlc_gettext().
Referenced by config_GetPszChoices(), EnumClockSource(), var_Change(), and vlc_plugin_desc_cb().
|
inlinestatic |
|
inlinestatic |
Referenced by config_GetPszChoices(), and EnumClockSource().