VLC  4.0.0-dev
Data Structures | Macros | Typedefs | Enumerations | Functions
vlc_stream.h File Reference
Include dependency graph for vlc_stream.h:

Go to the source code of this file.

Data Structures

struct  stream_t
 stream_t definition More...
 

Macros

#define vlc_stream_MemoryNew(a, b, c, d)   vlc_stream_MemoryNew(VLC_OBJECT(a), b, c, d)
 
#define vlc_stream_NewURL(a, b)   vlc_stream_NewURL(VLC_OBJECT(a), b)
 

Typedefs

typedef struct vlc_stream_fifo vlc_stream_fifo_t
 

Enumerations

enum  stream_query_e {
  STREAM_CAN_SEEK, STREAM_CAN_FASTSEEK, STREAM_CAN_PAUSE, STREAM_CAN_CONTROL_PACE,
  STREAM_GET_SIZE =6, STREAM_GET_PTS_DELAY = 0x101, STREAM_GET_TITLE_INFO, STREAM_GET_TITLE,
  STREAM_GET_SEEKPOINT, STREAM_GET_META, STREAM_GET_CONTENT_TYPE, STREAM_GET_SIGNAL,
  STREAM_GET_TAGS, STREAM_GET_TYPE, STREAM_SET_PAUSE_STATE = 0x200, STREAM_SET_TITLE,
  STREAM_SET_SEEKPOINT, STREAM_SET_RECORD_STATE, STREAM_SET_PRIVATE_ID_STATE = 0x1000, STREAM_SET_PRIVATE_ID_CA,
  STREAM_GET_PRIVATE_ID_STATE
}
 Possible commands to send to vlc_stream_Control() and vlc_stream_vaControl() More...
 

Functions

VLC_EXPORT ssize_t vlc_stream_Read (stream_t *, void *buf, size_t len)
 Reads data from a byte stream. More...
 
VLC_EXPORT ssize_t vlc_stream_ReadPartial (stream_t *, void *buf, size_t len)
 Reads partial data from a byte stream. More...
 
VLC_EXPORT ssize_t vlc_stream_Peek (stream_t *, const uint8_t **, size_t)
 Peeks at data from a byte stream. More...
 
VLC_EXPORT block_tvlc_stream_ReadBlock (stream_t *)
 Reads a data block from a byte stream. More...
 
VLC_EXPORT uint64_t vlc_stream_Tell (const stream_t *)
 Tells the current stream position. More...
 
VLC_EXPORT bool vlc_stream_Eof (const stream_t *)
 Checks for end of stream. More...
 
VLC_EXPORT int vlc_stream_Seek (stream_t *, uint64_t offset)
 Sets the current stream position. More...
 
VLC_EXPORT int vlc_stream_vaControl (stream_t *s, int query, va_list args)
 Use to control the "stream_t *". More...
 
static int vlc_stream_Control (stream_t *s, int query,...)
 
VLC_EXPORT block_tvlc_stream_Block (stream_t *s, size_t)
 Read data into a block. More...
 
VLC_EXPORT char * vlc_stream_ReadLine (stream_t *)
 
VLC_EXPORT int vlc_stream_ReadDir (stream_t *s, input_item_node_t *node)
 Reads a directory. More...
 
VLC_EXPORT void vlc_stream_Delete (stream_t *s)
 Closes a byte stream. More...
 
VLC_EXPORT stream_tvlc_stream_CommonNew (vlc_object_t *, void(*)(stream_t *))
 
static int vlc_stream_GetSize (stream_t *s, uint64_t *size)
 Get the size of the stream. More...
 
static int64_t stream_Size (stream_t *s)
 
static bool stream_HasExtension (stream_t *s, const char *extension)
 
static char * stream_ContentType (stream_t *s)
 Get the Content-Type of a stream, or NULL if unknown. More...
 
static char * stream_MimeType (stream_t *s)
 Get the mime-type of a stream. More...
 
static bool stream_IsMimeType (stream_t *s, const char *type)
 Checks for a MIME type. More...
 
VLC_EXPORT stream_tvlc_stream_MemoryNew (vlc_object_t *obj, uint8_t *base, size_t size, bool preserve)
 Create a stream from a memory buffer. More...
 
VLC_EXPORT stream_tvlc_stream_NewURL (vlc_object_t *obj, const char *url)
 Create a stream_t reading from a URL. More...
 
VLC_EXPORT vlc_stream_fifo_tvlc_stream_fifo_New (vlc_object_t *parent, stream_t **reader)
 Creates a FIFO stream. More...
 
VLC_EXPORT int vlc_stream_fifo_Queue (vlc_stream_fifo_t *s, block_t *block)
 Writes a block to a FIFO stream. More...
 
VLC_EXPORT ssize_t vlc_stream_fifo_Write (vlc_stream_fifo_t *s, const void *buf, size_t len)
 Writes data to a FIFO stream. More...
 
VLC_EXPORT void vlc_stream_fifo_Close (vlc_stream_fifo_t *s)
 Terminates a FIFO stream. More...
 
VLC_EXPORT stream_tvlc_stream_FilterNew (stream_t *p_source, const char *psz_stream_filter)
 Try to add a stream filter to an open stream. More...
 

Detailed Description

Byte streams and byte stream filter modules interface