VLC  3.0.21
Data Structures | Typedefs | Functions | Variables
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 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)
 

Variables

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

Typedef Documentation

◆ block_bytestream_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()

static void block_BytestreamFlush ( block_bytestream_t p_bytestream)
inlinestatic

◆ block_BytestreamInit()

static void block_BytestreamInit ( block_bytestream_t p_bytestream)
inlinestatic

◆ block_BytestreamPop()

static block_t* block_BytestreamPop ( block_bytestream_t p_bytestream)
inlinestatic

◆ 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

Referenced by block_BytestreamEmpty().

◆ 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

< Unspecified error

< No error

< No error

< Unspecified error

References block_bytestream_t::i_block_offset, block_t::i_buffer, block_bytestream_t::p_block, block_t::p_buffer, block_t::p_next, unlikely, VLC_EGENERIC, and VLC_SUCCESS.

◆ block_GetBytes()

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

< Unspecified error

< No error

◆ block_PeekBytes()

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

< Unspecified error

< No error

◆ 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

< Unspecified error

< No error

◆ block_SkipByte()

static int block_SkipByte ( block_bytestream_t p_bytestream)
inlinestatic

◆ block_SkipBytes()

static int block_SkipBytes ( block_bytestream_t p_bytestream,
size_t  i_data 
)
inlinestatic

◆ block_WaitBytes()

static int block_WaitBytes ( block_bytestream_t p_bytestream,
size_t  i_data 
)
inlinestatic

< No error

< Unspecified error

Variable Documentation

◆ block_startcode_helper_t

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