
Data Structures | |
| struct | access_sys_t |
| ************************************************************************** This is our own access_sys_t for zip files More... | |
Functions | |
| static int | AccessControl (access_t *p_access, int i_query, va_list args) |
| ************************************************************************** | |
| static ssize_t | AccessRead (access_t *p_access, uint8_t *p_buffer, size_t sz) |
| ************************************************************************** | |
| static int | AccessSeek (access_t *p_access, uint64_t seek_len) |
| ************************************************************************** | |
| static int | OpenFileInZip (access_t *p_access, uint64_t i_pos) |
| ************************************************************************** | |
| static char * | unescapeXml (const char *psz_text) |
| ************************************************************************** | |
| int | AccessOpen (vlc_object_t *p_this) |
| ************************************************************************** | |
| void | AccessClose (vlc_object_t *p_this) |
| ************************************************************************** | |
| static void *ZCALLBACK | ZipIO_Open (void *opaque, const char *file, int mode) |
| ************************************************************************** | |
| static uLong ZCALLBACK | ZipIO_Read (void *opaque, void *stream, void *buf, uLong size) |
| ************************************************************************** | |
| static uLong ZCALLBACK | ZipIO_Write (void *opaque, void *stream, const void *buf, uLong size) |
| ************************************************************************** | |
| static long ZCALLBACK | ZipIO_Tell (void *opaque, void *stream) |
| ************************************************************************** | |
| static long ZCALLBACK | ZipIO_Seek (void *opaque, void *stream, uLong offset, int origin) |
| ************************************************************************** | |
| static int ZCALLBACK | ZipIO_Close (void *opaque, void *stream) |
| ************************************************************************** | |
| static int ZCALLBACK | ZipIO_Error (void *opaque, void *stream) |
| ************************************************************************** | |
| void AccessClose | ( | vlc_object_t * | p_this | ) |
**************************************************************************
Close access: free structures
References CommonClose(), access_sys_t::fileFunctions, access_sys_t::p_control, access_t::p_sys, p_sys, access_sys_t::psz_fileInzip, and access_sys_t::zipFile.
Referenced by AccessOpen().
| static int AccessControl | ( | access_t * | p_access, | |
| int | i_query, | |||
| va_list | args | |||
| ) | [static] |
**************************************************************************
Control access
References ACCESS_CAN_CONTROL_PACE, ACCESS_CAN_FASTSEEK, ACCESS_CAN_PAUSE, ACCESS_CAN_SEEK, ACCESS_GET_CONTENT_TYPE, ACCESS_GET_META, ACCESS_GET_PRIVATE_ID_STATE, ACCESS_GET_PTS_DELAY, ACCESS_GET_TITLE_INFO, ACCESS_SET_PAUSE_STATE, ACCESS_SET_PRIVATE_ID_STATE, ACCESS_SET_SEEKPOINT, ACCESS_SET_TITLE, DEFAULT_PTS_DELAY, msg_Warn, VLC_EGENERIC, and VLC_SUCCESS.
| int AccessOpen | ( | vlc_object_t * | p_this | ) |
**************************************************************************
************************************************************************** Module access points: access
Open access
References access_InitFields(), ACCESS_SET_CALLBACKS, AccessClose(), AccessControl(), AccessRead(), AccessReadStream(), AccessSeek(), access_t::b_eof, CFG_PREFIX, CommonClose(), CommonOpen(), access_sys_t::fileFunctions, FindMainDevice(), GetV4L2Params(), dshow_stream_t::i_fourcc, access_t::i_pos, access_t::i_seekpoint, access_t::i_size, access_t::i_title, access_t::i_update, access_t::info, demux_sys_t::io, IO_METHOD_READ, msg_Dbg, msg_Err, OpenFileInZip(), access_sys_t::p_control, p_stream, access_t::p_sys, p_sys, ParseMRL(), access_t::pf_block, access_t::pf_control, access_t::pf_read, access_t::pf_seek, access_sys_t::pp_streams, access_t::psz_access, access_t::psz_demux, access_sys_t::psz_fileInzip, access_t::psz_location, ReadCompressed(), strdup(), unescapeXml(), var_InheritInteger, VLC_CODEC_DV, VLC_CODEC_MPGV, VLC_EGENERIC, VLC_ENOMEM, VLC_SUCCESS, ZIP_SEP, ZIP_SEP_LEN, access_sys_t::zipFile, ZipIO_Close(), ZipIO_Error(), ZipIO_Open(), ZipIO_Read(), ZipIO_Seek(), ZipIO_Tell(), and ZipIO_Write().
| static ssize_t AccessRead | ( | access_t * | p_access, | |
| uint8_t * | p_buffer, | |||
| size_t | sz | |||
| ) | [static] |
**************************************************************************
Read access Reads current opened file in zip. This does not open the file in zip. Return -1 if no data yet, 0 if no more data, else real data read
References access_t::i_pos, access_t::info, msg_Err, access_t::p_sys, p_sys, VLC_EGENERIC, and access_sys_t::zipFile.
| static int AccessSeek | ( | access_t * | p_access, | |
| uint64_t | seek_len | |||
| ) | [static] |
**************************************************************************
Seek inside zip file
References access_t::i_pos, access_t::info, msg_Err, msg_Warn, OpenFileInZip(), access_t::p_sys, p_sys, VLC_EGENERIC, VLC_SUCCESS, ZIP_BUFFER_LEN, and access_sys_t::zipFile.
Referenced by AccessOpen(), and OpenFileInZip().
| static int OpenFileInZip | ( | access_t * | p_access, | |
| uint64_t | i_pos | |||
| ) | [static] |
**************************************************************************
Open file in zip
References AccessSeek(), access_t::i_pos, access_t::info, msg_Err, access_t::p_sys, p_sys, access_sys_t::psz_fileInzip, VLC_EGENERIC, VLC_SUCCESS, and access_sys_t::zipFile.
Referenced by AccessOpen(), and AccessSeek().
| static char * unescapeXml | ( | const char * | psz_text | ) | [static] |
**************************************************************************
Unescape valid XML string The exact reverse of escapeToXml (zipstream.c)
References i_value, and isAllowedChar().
Referenced by AccessOpen().
| static int ZCALLBACK ZipIO_Close | ( | void * | opaque, | |
| void * | stream | |||
| ) | [static] |
**************************************************************************
I/O functions for the ioapi: close
References stream_Delete().
| static int ZCALLBACK ZipIO_Error | ( | void * | opaque, | |
| void * | stream | |||
| ) | [static] |
**************************************************************************
I/O functions for the ioapi: test error (man 3 ferror)
| static void* ZCALLBACK ZipIO_Open | ( | void * | opaque, | |
| const char * | file, | |||
| int | mode | |||
| ) | [static] |
**************************************************************************
I/O functions for the ioapi: open (read only)
References stream_UrlNew.
| static uLong ZCALLBACK ZipIO_Read | ( | void * | opaque, | |
| void * | stream, | |||
| void * | buf, | |||
| uLong | size | |||
| ) | [static] |
**************************************************************************
I/O functions for the ioapi: read
References stream_Read().
| static long ZCALLBACK ZipIO_Seek | ( | void * | opaque, | |
| void * | stream, | |||
| uLong | offset, | |||
| int | origin | |||
| ) | [static] |
**************************************************************************
I/O functions for the ioapi: seek
References stream_Seek(), stream_Size(), and stream_Tell().
| static long ZCALLBACK ZipIO_Tell | ( | void * | opaque, | |
| void * | stream | |||
| ) | [static] |
**************************************************************************
I/O functions for the ioapi: tell
References stream_Tell().
| static uLong ZCALLBACK ZipIO_Write | ( | void * | opaque, | |
| void * | stream, | |||
| const void * | buf, | |||
| uLong | size | |||
| ) | [static] |
**************************************************************************
I/O functions for the ioapi: write (assert insteadof segfault)
1.5.6