VLC 4.0.0-dev
vlc_block_helper.h File Reference
Include dependency graph for vlc_block_helper.h:

Go to the source code of this file.

Data Structures

struct  block_bytestream_t
 

Typedefs

typedef struct block_bytestream_t block_bytestream_t
 
typedef const uint8_t *(* block_startcode_helper_t) (const uint8_t *, const uint8_t *)
 
typedef bool(* block_startcode_matcher_t) (uint8_t, size_t, const uint8_t *)
 

Functions

static void block_BytestreamInit (block_bytestream_t *p_bytestream)
 
static void block_BytestreamRelease (block_bytestream_t *p_bytestream)
 
static void block_BytestreamEmpty (block_bytestream_t *p_bytestream)
 It flush all data (read and unread) from a block_bytestream_t. More...
 
static void block_BytestreamFlush (block_bytestream_t *p_bytestream)
 It flushes all already read data from a block_bytestream_t. More...
 
static void block_BytestreamPush (block_bytestream_t *p_bytestream, block_t *p_block)
 
static size_t block_BytestreamRemaining (const block_bytestream_t *p_bytestream)
 
static block_tblock_BytestreamPop (block_bytestream_t *p_bytestream)
 
static int block_WaitBytes (block_bytestream_t *p_bytestream, size_t i_data)
 
static int block_PeekBytes (block_bytestream_t *p_bytestream, uint8_t *p_data, size_t i_data)
 
static int block_GetBytes (block_bytestream_t *p_bytestream, uint8_t *p_data, size_t i_data)
 
static int block_SkipBytes (block_bytestream_t *p_bytestream, size_t i_data)
 
static int block_SkipByte (block_bytestream_t *p_bytestream)
 
static int block_PeekOffsetBytes (block_bytestream_t *p_bytestream, size_t i_peek_offset, uint8_t *p_data, size_t i_data)
 
static int block_FindStartcodeFromOffset (block_bytestream_t *p_bytestream, size_t *pi_offset, const uint8_t *p_startcode, int i_startcode_length, block_startcode_helper_t p_startcode_helper, block_startcode_matcher_t p_startcode_matcher)
 

Typedef Documentation

◆ block_bytestream_t

◆ block_startcode_helper_t

typedef const uint8_t *(* block_startcode_helper_t) (const uint8_t *, const uint8_t *)

◆ block_startcode_matcher_t

typedef bool(* block_startcode_matcher_t) (uint8_t, size_t, const uint8_t *)

Function Documentation

◆ block_BytestreamEmpty()

static void block_BytestreamEmpty ( block_bytestream_t p_bytestream)
inlinestatic

It flush all data (read and unread) from a block_bytestream_t.

References block_BytestreamInit(), and block_BytestreamRelease().

◆ block_BytestreamFlush()

◆ block_BytestreamInit()

◆ block_BytestreamPop()

◆ block_BytestreamPush()

static void block_BytestreamPush ( block_bytestream_t p_bytestream,
block_t p_block 
)
inlinestatic

◆ block_BytestreamRelease()

static void block_BytestreamRelease ( block_bytestream_t p_bytestream)
inlinestatic

◆ block_BytestreamRemaining()

static size_t block_BytestreamRemaining ( const block_bytestream_t p_bytestream)
inlinestatic

◆ block_FindStartcodeFromOffset()

static int block_FindStartcodeFromOffset ( block_bytestream_t p_bytestream,
size_t *  pi_offset,
const uint8_t *  p_startcode,
int  i_startcode_length,
block_startcode_helper_t  p_startcode_helper,
block_startcode_matcher_t  p_startcode_matcher 
)
inlinestatic

◆ block_GetBytes()

◆ block_PeekBytes()

static int block_PeekBytes ( block_bytestream_t p_bytestream,
uint8_t *  p_data,
size_t  i_data 
)
inlinestatic

◆ block_PeekOffsetBytes()

static int block_PeekOffsetBytes ( block_bytestream_t p_bytestream,
size_t  i_peek_offset,
uint8_t *  p_data,
size_t  i_data 
)
inlinestatic

◆ block_SkipByte()

static int block_SkipByte ( block_bytestream_t p_bytestream)
inlinestatic

References block_GetBytes().

◆ block_SkipBytes()

static int block_SkipBytes ( block_bytestream_t p_bytestream,
size_t  i_data 
)
inlinestatic

References block_GetBytes().

◆ block_WaitBytes()

static int block_WaitBytes ( block_bytestream_t p_bytestream,
size_t  i_data 
)
inlinestatic