|
VLC 4.0.0-dev
|
Macros | |
| #define | VLC_FRAME_ALIGN 32 |
| Initial memory alignment of data frame. | |
| #define | VLC_FRAME_PADDING 32 /* Avoid <= 32 bytes reallocs */ |
| Initial reserved header and footer size. | |
| #define | S_TYPEISSHM(buf) (0) |
Functions | |
| static void | vlc_frame_Check (vlc_frame_t *frame) |
| void | vlc_frame_CopyProperties (vlc_frame_t *restrict dst, const vlc_frame_t *src) |
| vlc_frame_t * | vlc_frame_New (const struct vlc_frame_callbacks *cbs, void *buf, size_t size) |
| Creates a custom frame. | |
| vlc_frame_t * | vlc_frame_Init (vlc_frame_t *restrict f, const struct vlc_frame_callbacks *cbs, void *buf, size_t size) |
| vlc_frame_t * | vlc_frame_Alloc (size_t size) |
| Allocates a frame. | |
| void | vlc_frame_Release (vlc_frame_t *frame) |
| Releases a frame. | |
| static vlc_frame_t * | vlc_frame_ReallocDup (vlc_frame_t *frame, ssize_t i_prebody, size_t requested) |
| vlc_frame_t * | vlc_frame_TryRealloc (vlc_frame_t *frame, ssize_t i_prebody, size_t i_body) |
| vlc_frame_t * | vlc_frame_Realloc (vlc_frame_t *frame, ssize_t prebody, size_t body) |
| Reallocates a frame. | |
| static void | vlc_frame_heap_Release (vlc_frame_t *frame) |
| vlc_frame_t * | vlc_frame_heap_Alloc (void *addr, size_t length) |
| Wraps heap in a frame. | |
| vlc_frame_t * | vlc_frame_mmap_Alloc (void *addr, size_t length) |
| Wraps a memory mapping in a frame. | |
| vlc_frame_t * | vlc_frame_shm_Alloc (void *addr, size_t length) |
| Wraps a System V memory segment in a frame. | |
| vlc_frame_t * | vlc_frame_File (int fd, bool write) |
| Maps a file handle in memory. | |
| vlc_frame_t * | vlc_frame_FilePath (const char *path, bool write) |
| Maps a file in memory. | |
Variables | |
| static const struct vlc_frame_callbacks | vlc_frame_heap_cbs |
| #define S_TYPEISSHM | ( | buf | ) | (0) |
| #define VLC_FRAME_ALIGN 32 |
Initial memory alignment of data frame.
| #define VLC_FRAME_PADDING 32 /* Avoid <= 32 bytes reallocs */ |
Initial reserved header and footer size.
|
static |
References vlc_frame_t::i_buffer, vlc_frame_t::i_size, vlc_frame_t::p_buffer, vlc_frame_t::p_next, and vlc_frame_t::p_start.
Referenced by vlc_frame_Release(), and vlc_frame_TryRealloc().
| void vlc_frame_CopyProperties | ( | vlc_frame_t *restrict | dst, |
| const vlc_frame_t * | src | ||
| ) |
References vlc_frame_t::ancillaries, vlc_frame_t::i_dts, vlc_frame_t::i_flags, vlc_frame_t::i_length, vlc_frame_t::i_nb_samples, vlc_frame_t::i_pts, and vlc_ancillary_array_Merge().
Referenced by vlc_frame_ReallocDup().
|
static |
References vlc_frame_t::p_start.
| vlc_frame_t * vlc_frame_Init | ( | vlc_frame_t *restrict | f, |
| const struct vlc_frame_callbacks * | cbs, | ||
| void * | buf, | ||
| size_t | size | ||
| ) |
References vlc_frame_t::p_buffer, vlc_frame_t::p_next, vlc_ancillary_array_Init(), and VLC_TICK_INVALID.
Referenced by vlc_frame_New().
|
static |
References vlc_frame_t::i_buffer, vlc_frame_t::p_buffer, vlc_frame_t::p_next, vlc_frame_Alloc(), vlc_frame_CopyProperties(), and vlc_frame_Release().
Referenced by vlc_frame_TryRealloc().
|
static |
Referenced by vlc_frame_heap_Alloc().