VLC
4.0.0-dev
|
Macros | |
#define | BLOCK_ALIGN 32 |
Initial memory alignment of data block. More... | |
#define | BLOCK_PADDING 32 |
Initial reserved header and footer size. More... | |
#define | S_TYPEISSHM(buf) (0) |
Functions | |
static void | block_Check (block_t *block) |
block_t * | block_Init (block_t *restrict b, const struct vlc_block_callbacks *cbs, void *buf, size_t size) |
static void | block_generic_Release (block_t *block) |
static void | BlockMetaCopy (block_t *restrict out, const block_t *in) |
block_t * | block_Alloc (size_t size) |
Allocates a block. More... | |
void | block_Release (block_t *block) |
Releases a block. More... | |
block_t * | block_TryRealloc (block_t *p_block, ssize_t i_prebody, size_t i_body) |
block_t * | block_Realloc (block_t *block, ssize_t prebody, size_t body) |
Reallocates a block. More... | |
static void | block_heap_Release (block_t *block) |
block_t * | block_heap_Alloc (void *addr, size_t length) |
Wraps heap in a block. More... | |
block_t * | block_mmap_Alloc (void *addr, size_t length) |
Wraps a memory mapping in a block. More... | |
block_t * | block_shm_Alloc (void *addr, size_t length) |
Wraps a System V memory segment in a block. More... | |
block_t * | block_File (int fd, bool write) |
Maps a file handle in memory. More... | |
block_t * | block_FilePath (const char *path, bool write) |
Maps a file in memory. More... | |
Variables | |
static const struct vlc_block_callbacks | block_generic_cbs |
static const struct vlc_block_callbacks | block_heap_cbs |
#define BLOCK_ALIGN 32 |
Initial memory alignment of data block.
Referenced by block_Alloc().
#define BLOCK_PADDING 32 |
Initial reserved header and footer size.
Referenced by block_Alloc().
#define S_TYPEISSHM | ( | buf | ) | (0) |
Referenced by block_File().
|
static |
References block_t::i_buffer, block_t::i_size, block_t::p_buffer, block_t::p_next, and block_t::p_start.
Referenced by block_Release(), and block_TryRealloc().
|
static |
References block_t::p_start.
|
static |
References vlc_block_callbacks::free, and block_t::p_start.
block_t* block_Init | ( | block_t *restrict | b, |
const struct vlc_block_callbacks * | cbs, | ||
void * | buf, | ||
size_t | size | ||
) |
References block_t::p_buffer, block_t::p_next, and VLC_TICK_INVALID.
Referenced by block_Alloc(), block_heap_Alloc(), and block_mmap_Alloc().
References block_t::i_dts, block_t::i_flags, block_t::i_length, block_t::i_nb_samples, block_t::i_pts, and block_t::p_next.
Referenced by block_TryRealloc().
|
static |
|
static |