avio.c File Reference

Go to the source code of this file.

Functions

static int default_interrupt_cb (void)
int register_protocol (URLProtocol *protocol)
int url_open (URLContext **puc, const char *filename, int flags)
int url_read (URLContext *h, unsigned char *buf, int size)
int url_write (URLContext *h, unsigned char *buf, int size)
offset_t url_seek (URLContext *h, offset_t pos, int whence)
int url_close (URLContext *h)
int url_exist (const char *filename)
offset_t url_filesize (URLContext *h)
int url_get_max_packet_size (URLContext *h)
 Return the maximum packet size associated to packetized file handle.
void url_get_filename (URLContext *h, char *buf, int buf_size)
void url_set_interrupt_cb (URLInterruptCB *interrupt_cb)
 the callback is called in blocking functions to test regulary if asynchronous interruption is needed.

Variables

URLProtocolfirst_protocol = NULL
URLInterruptCBurl_interrupt_cb = default_interrupt_cb


Function Documentation

static int default_interrupt_cb ( void   )  [static]

Definition at line 179 of file avio.c.

Referenced by url_set_interrupt_cb().

int register_protocol ( URLProtocol protocol  ) 

Definition at line 29 of file avio.c.

int url_open ( URLContext **  puc,
const char *  filename,
int  flags 
)

Definition at line 39 of file avio.c.

Referenced by http_open_cnx(), rtp_open(), rtsp_read_header(), sdp_read_header(), url_exist(), and url_fopen().

int url_read ( URLContext h,
unsigned char *  buf,
int  size 
)

int url_write ( URLContext h,
unsigned char *  buf,
int  size 
)

offset_t url_seek ( URLContext h,
offset_t  pos,
int  whence 
)

Definition at line 123 of file avio.c.

Referenced by AVF_Seek_Packet(), url_filesize(), and url_seek_packet().

int url_close ( URLContext h  ) 

int url_exist ( const char *  filename  ) 

Definition at line 144 of file avio.c.

Referenced by find_image_range().

offset_t url_filesize ( URLContext h  ) 

Definition at line 153 of file avio.c.

int url_get_max_packet_size ( URLContext h  ) 

Return the maximum packet size associated to packetized file handle.

If the file is not packetized (stream like http or file on disk), then 0 is returned.

Parameters:
h file handle
Returns:
maximum packet size in bytes

Definition at line 168 of file avio.c.

Referenced by rtp_open(), and url_fdopen().

void url_get_filename ( URLContext h,
char *  buf,
int  buf_size 
)

Definition at line 173 of file avio.c.

void url_set_interrupt_cb ( URLInterruptCB interrupt_cb  ) 

the callback is called in blocking functions to test regulary if asynchronous interruption is needed.

AVERROR(EINTR) is returned in this case by the interrupted function. 'NULL' means no interrupt callback is given. i

Definition at line 184 of file avio.c.


Variable Documentation

Definition at line 26 of file avio.c.

URLInterruptCB* url_interrupt_cb = default_interrupt_cb

Definition at line 27 of file avio.c.

Referenced by tcp_open(), tcp_read(), tcp_write(), udp_read_packet(), and url_set_interrupt_cb().


Generated on Sat Dec 18 05:15:50 2010 for MythTV by  doxygen 1.5.5