VLC 4.0.0-dev
|
Data Structures | |
struct | stream_priv_t |
Macros | |
#define | stream_priv(s) container_of(s, stream_priv_t, stream) |
#define | STREAM_PROBE_LINE 2048 |
Read from the stream until first newline. | |
#define | STREAM_LINE_MAX (2048*100) |
Typedefs | |
typedef struct stream_priv_t | stream_priv_t |
Functions | |
stream_t * | vlc_stream_CustomNew (vlc_object_t *parent, void(*destroy)(stream_t *), size_t size, const char *type_name) |
Allocates a VLC stream object. | |
void * | vlc_stream_Private (stream_t *stream) |
stream_t * | vlc_stream_CommonNew (vlc_object_t *parent, void(*destroy)(stream_t *)) |
void | stream_CommonDelete (stream_t *s) |
void | vlc_stream_Delete (stream_t *s) |
Destroy a stream. | |
stream_t *() | vlc_stream_NewURL (vlc_object_t *p_parent, const char *psz_url) |
Create a stream_t reading from a URL. | |
stream_t *() | vlc_stream_NewMRL (vlc_object_t *parent, const char *mrl) |
Create a stream for the data referred to by a Media Resource Locator (MRL). | |
char * | vlc_stream_ReadLine (stream_t *s) |
static ssize_t | vlc_stream_CopyBlock (block_t **restrict pp, void *buf, size_t len) |
static ssize_t | vlc_stream_ReadRaw (stream_t *s, void *buf, size_t len) |
ssize_t | vlc_stream_ReadPartial (stream_t *s, void *buf, size_t len) |
Reads partial data from a byte stream. | |
ssize_t | vlc_stream_Read (stream_t *s, void *buf, size_t len) |
Reads data from a byte stream. | |
ssize_t | vlc_stream_Peek (stream_t *s, const uint8_t **restrict bufp, size_t len) |
block_t * | vlc_stream_ReadBlock (stream_t *s) |
Reads a data block from a byte stream. | |
uint64_t | vlc_stream_Tell (const stream_t *s) |
Tells the current stream position. | |
bool | vlc_stream_Eof (const stream_t *s) |
Checks for end of stream. | |
int | vlc_stream_Seek (stream_t *s, uint64_t offset) |
Sets the current stream position. | |
int | vlc_stream_vaControl (stream_t *s, int cmd, va_list args) |
Use to control the "stream_t *". | |
block_t * | vlc_stream_Block (stream_t *s, size_t size) |
Read data into a block. | |
int | vlc_stream_ReadDir (stream_t *s, input_item_node_t *p_node) |
Reads a directory. | |
#define STREAM_LINE_MAX (2048*100) |
#define stream_priv | ( | s | ) | container_of(s, stream_priv_t, stream) |
#define STREAM_PROBE_LINE 2048 |
Read from the stream until first newline.
s | Stream handle to read from |
typedef struct stream_priv_t stream_priv_t |
void stream_CommonDelete | ( | stream_t * | s | ) |
References stream_priv_t::block, block_Release, stream_priv_t::conv, stream_priv_t::peek, stream_t::psz_url, stream_priv, stream_priv_t::text, vlc_iconv_close(), and vlc_object_delete.
Referenced by access_New(), demux_FilterNew(), demux_NewAdvanced(), se_AttachWrapper(), vlc_stream_AttachmentNew(), vlc_stream_Delete(), and vlc_stream_FilterNew().
|
static |
References block_Release, vlc_frame_t::i_buffer, likely, and vlc_frame_t::p_buffer.
Referenced by vlc_stream_ReadPartial(), and vlc_stream_ReadRaw().
stream_t * vlc_stream_CustomNew | ( | vlc_object_t * | parent, |
void(*)(stream_t *) | destroy, | ||
size_t | size, | ||
const char * | type_name | ||
) |
Allocates a VLC stream object.
References stream_t::b_preparsing, stream_priv_t::block, stream_priv_t::char_width, stream_priv_t::conv, stream_priv_t::destroy, stream_priv_t::eof, stream_priv_t::little_endian, stream_priv_t::offset, stream_t::ops, stream_t::out, stream_t::p_input_item, stream_t::p_sys, stream_priv_t::peek, stream_t::pf_block, stream_t::pf_control, stream_t::pf_demux, stream_t::pf_read, stream_t::pf_readdir, stream_t::pf_seek, stream_t::psz_filepath, stream_t::psz_location, stream_t::psz_name, stream_t::psz_url, stream_t::s, stream_priv_t::stream, stream_priv_t::text, unlikely, and vlc_custom_create.
Referenced by access_New(), demux_FilterNew(), demux_NewAdvanced(), stream_AccessNew(), vlc_stream_AttachmentNew(), vlc_stream_CommonNew(), vlc_stream_fifo_New(), vlc_stream_FilterNew(), and vlc_stream_MemoryNew().
ssize_t vlc_stream_Peek | ( | stream_t * | s, |
const uint8_t **restrict | bufp, | ||
size_t | len | ||
) |
References stream_priv_t::block, block_Alloc, block_TryRealloc, vlc_frame_t::i_buffer, vlc_frame_t::p_buffer, stream_priv_t::peek, stream_priv, unlikely, VLC_ENOMEM, and vlc_stream_ReadRaw().
Referenced by OpenSDP(), and vlc_stream_ReadLine().
void * vlc_stream_Private | ( | stream_t * | stream | ) |
References stream_priv.
Referenced by access_New(), AStreamReadBlock(), AStreamReadStream(), Control(), demux_DestroyDemux(), demux_filter_enable_disable(), demux_FilterNew(), demux_NewAdvanced(), Read(), Seek(), stream_AccessNew(), stream_AttachmentDelete(), stream_MemoryDelete(), StreamDelete(), vlc_access_Destroy(), vlc_stream_AttachmentNew(), vlc_stream_fifo_New(), vlc_stream_fifo_Writer(), vlc_stream_FilterNew(), and vlc_stream_MemoryNew().
|
static |
References vlc_stream_operations::block, stream_priv_t::block, stream_t::ops, stream_t::pf_block, stream_t::pf_read, vlc_stream_operations::read, vlc_stream_operations::stream, stream_priv, unlikely, vlc_killed(), and vlc_stream_CopyBlock().
Referenced by vlc_stream_Peek(), and vlc_stream_ReadPartial().