Data Structures | Defines | Typedefs | Enumerations | Functions

vlc_stream.h File Reference

This file defines structures and functions for stream (between access and demux) descriptor in vlc. More...

Include dependency graph for vlc_stream.h:

Go to the source code of this file.

Data Structures

struct  stream_t
 stream_t definition More...

Defines

#define stream_MemoryNew(a, b, c, d)   stream_MemoryNew( VLC_OBJECT(a), b, c, d )
#define stream_UrlNew(a, b)   stream_UrlNew( VLC_OBJECT(a), b )

Typedefs

typedef struct stream_text_t stream_text_t

Enumerations

enum  stream_query_e {
  STREAM_CAN_SEEK, STREAM_CAN_FASTSEEK, STREAM_SET_POSITION, STREAM_GET_POSITION,
  STREAM_GET_SIZE, STREAM_CONTROL_ACCESS, STREAM_UPDATE_SIZE, STREAM_GET_CONTENT_TYPE,
  STREAM_SET_RECORD_STATE
}
 

Possible commands to send to stream_Control() and stream_vaControl().

More...

Functions

VLC_API int stream_Read (stream_t *s, void *p_read, int i_read)
 Try to read "i_read" bytes into a buffer pointed by "p_read".
VLC_API int stream_Peek (stream_t *s, const uint8_t **pp_peek, int i_peek)
 Store in pp_peek a pointer to the next "i_peek" bytes in the stream.
VLC_API int stream_vaControl (stream_t *s, int i_query, va_list args)
 Use to control the "stream_t *".
VLC_API void stream_Delete (stream_t *s)
 Destroy a stream.
VLC_API int stream_Control (stream_t *s, int i_query,...)
VLC_API block_tstream_Block (stream_t *s, int i_size)
 Read "i_size" bytes and store them in a block_t.
VLC_API block_tstream_BlockRemaining (stream_t *s, int i_max_size)
 Read the remaining of the data if there is less than i_max_size bytes, otherwise return NULL.
VLC_API char * stream_ReadLine (stream_t *)
static int64_t stream_Tell (stream_t *s)
 Get the current position in a stream.
static int64_t stream_Size (stream_t *s)
 Get the size of the stream.
static int stream_Seek (stream_t *s, uint64_t i_pos)
static char * stream_ContentType (stream_t *s)
 Get the Content-Type of a stream, or NULL if unknown.
VLC_API stream_tstream_DemuxNew (demux_t *p_demux, const char *psz_demux, es_out_t *out)
 Create a special stream and a demuxer, this allows chaining demuxers You must delete it using stream_Delete.
VLC_API void stream_DemuxSend (stream_t *s, block_t *p_block)
 Send data to a stream_t handle created by stream_DemuxNew.
VLC_API stream_tstream_MemoryNew (vlc_object_t *p_obj, uint8_t *p_buffer, uint64_t i_size, bool b_preserve_memory)
 Create a stream_t reading from memory.
VLC_API stream_tstream_UrlNew (vlc_object_t *p_this, const char *psz_url)
 Create a stream_t reading from a URL.
VLC_API stream_tstream_FilterNew (stream_t *p_source, const char *psz_stream_filter)
 Try to add a stream filter to an open stream.

Detailed Description

This file defines structures and functions for stream (between access and demux) descriptor in vlc.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines