libavformat/avio.h File Reference

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  URLContext
 URL Context. More...
struct  URLPollEntry
struct  URLProtocol
struct  ByteIOContext
 Bytestream IO Context. More...

Defines

#define URL_RDONLY   0
#define URL_WRONLY   1
#define URL_RDWR   2
#define AVSEEK_SIZE   0x10000
 Passing this as the "whence" parameter to a seek function causes it to return the filesize without seeking anywhere.
#define URL_EOF   (-1)

Typedefs

typedef int64_t offset_t
typedef struct URLContext URLContext
typedef int URLInterruptCB (void)

Functions

int url_open (URLContext **h, 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.
int url_poll (URLPollEntry *poll_table, int n, int timeout)
int av_url_read_pause (URLContext *h, int pause)
 Pause and resume playing - only meaningful if using a network streaming protocol (e.g.
offset_t av_url_read_seek (URLContext *h, int stream_index, int64_t timestamp, int flags)
 Seek to a given timestamp relative to some component stream.
URLProtocolav_protocol_next (URLProtocol *p)
int register_protocol (URLProtocol *protocol)
int init_put_byte (ByteIOContext *s, unsigned char *buffer, int buffer_size, int write_flag, void *opaque, int(*read_packet)(void *opaque, uint8_t *buf, int buf_size), int(*write_packet)(void *opaque, uint8_t *buf, int buf_size), offset_t(*seek)(void *opaque, offset_t offset, int whence))
ByteIOContextav_alloc_put_byte (unsigned char *buffer, int buffer_size, int write_flag, void *opaque, int(*read_packet)(void *opaque, uint8_t *buf, int buf_size), int(*write_packet)(void *opaque, uint8_t *buf, int buf_size), offset_t(*seek)(void *opaque, offset_t offset, int whence))
void put_byte (ByteIOContext *s, int b)
void put_buffer (ByteIOContext *s, const unsigned char *buf, int size)
void put_le64 (ByteIOContext *s, uint64_t val)
void put_be64 (ByteIOContext *s, uint64_t val)
void put_le32 (ByteIOContext *s, unsigned int val)
void put_be32 (ByteIOContext *s, unsigned int val)
void put_le24 (ByteIOContext *s, unsigned int val)
void put_be24 (ByteIOContext *s, unsigned int val)
void put_le16 (ByteIOContext *s, unsigned int val)
void put_be16 (ByteIOContext *s, unsigned int val)
void put_tag (ByteIOContext *s, const char *tag)
void put_strz (ByteIOContext *s, const char *buf)
offset_t url_fseek (ByteIOContext *s, offset_t offset, int whence)
void url_fskip (ByteIOContext *s, offset_t offset)
offset_t url_ftell (ByteIOContext *s)
offset_t url_fsize (ByteIOContext *s)
int url_feof (ByteIOContext *s)
int url_ferror (ByteIOContext *s)
int av_url_read_fpause (ByteIOContext *h, int pause)
offset_t av_url_read_fseek (ByteIOContext *h, int stream_index, int64_t timestamp, int flags)
int url_fgetc (ByteIOContext *s)
int url_fprintf (ByteIOContext *s, const char *fmt,...)
char * url_fgets (ByteIOContext *s, char *buf, int buf_size)
void put_flush_packet (ByteIOContext *s)
int get_buffer (ByteIOContext *s, unsigned char *buf, int size)
int get_partial_buffer (ByteIOContext *s, unsigned char *buf, int size)
int get_byte (ByteIOContext *s)
unsigned int get_le24 (ByteIOContext *s)
unsigned int get_le32 (ByteIOContext *s)
uint64_t get_le64 (ByteIOContext *s)
unsigned int get_le16 (ByteIOContext *s)
char * get_strz (ByteIOContext *s, char *buf, int maxlen)
unsigned int get_be16 (ByteIOContext *s)
unsigned int get_be24 (ByteIOContext *s)
unsigned int get_be32 (ByteIOContext *s)
uint64_t get_be64 (ByteIOContext *s)
uint64_t ff_get_v (ByteIOContext *bc)
static int url_is_streamed (ByteIOContext *s)
int url_fdopen (ByteIOContext **s, URLContext *h)
int url_setbufsize (ByteIOContext *s, int buf_size)
int url_resetbuf (ByteIOContext *s, int flags)
 Reset the buffer for reading or writing.
int url_fopen (ByteIOContext **s, const char *filename, int flags)
int url_fclose (ByteIOContext *s)
URLContexturl_fileno (ByteIOContext *s)
int url_fget_max_packet_size (ByteIOContext *s)
 Return the maximum packet size associated to packetized buffered file handle.
int url_open_buf (ByteIOContext **s, uint8_t *buf, int buf_size, int flags)
int url_close_buf (ByteIOContext *s)
 return the written or read size
int url_open_dyn_buf (ByteIOContext **s)
 Open a write only memory stream.
int url_open_dyn_packet_buf (ByteIOContext **s, int max_packet_size)
 Open a write only packetized memory stream with a maximum packet size of 'max_packet_size'.
int url_close_dyn_buf (ByteIOContext *s, uint8_t **pbuffer)
 Return the written size and a pointer to the buffer.
unsigned long ff_crc04C11DB7_update (unsigned long checksum, const uint8_t *buf, unsigned int len)
unsigned long get_checksum (ByteIOContext *s)
void init_checksum (ByteIOContext *s, unsigned long(*update_checksum)(unsigned long c, const uint8_t *p, unsigned int len), unsigned long checksum)
int udp_set_remote_url (URLContext *h, const char *uri)
 If no filename is given to av_open_input_file because you want to get the local port first, then you must call this function to set the remote server address.
int udp_get_local_port (URLContext *h)
 Return the local port used by the UDP connexion.
int udp_get_file_handle (URLContext *h)
 Return the udp file handle for select() usage to wait for several RTP streams at the same time.

Variables

URLProtocolfirst_protocol
URLInterruptCBurl_interrupt_cb


Define Documentation

#define AVSEEK_SIZE   0x10000

Passing this as the "whence" parameter to a seek function causes it to return the filesize without seeking anywhere.

Supporting this is optional. If it is not supported then the seek function will return <0.

Definition at line 124 of file avio.h.

Referenced by http_seek(), url_filesize(), and url_fsize().

#define URL_EOF   (-1)

Definition at line 218 of file avio.h.

Referenced by url_fgetc().

#define URL_RDONLY   0

#define URL_RDWR   2

#define URL_WRONLY   1


Typedef Documentation

typedef int64_t offset_t

Definition at line 28 of file avio.h.

typedef struct URLContext URLContext

Definition at line 48 of file avio.h.

typedef int URLInterruptCB(void)

Definition at line 60 of file avio.h.


Function Documentation

ByteIOContext* av_alloc_put_byte ( unsigned char *  buffer,
int  buffer_size,
int  write_flag,
void *  opaque,
int(*)(void *opaque, uint8_t *buf, int buf_size)  read_packet,
int(*)(void *opaque, uint8_t *buf, int buf_size)  write_packet,
offset_t(*)(void *opaque, offset_t offset, int whence)  seek 
)

Definition at line 63 of file aviobuf.c.

URLProtocol* av_protocol_next ( URLProtocol p  ) 

Definition at line 29 of file avio.c.

Referenced by opt_show_formats().

int av_url_read_fpause ( ByteIOContext h,
int  pause 
)

Definition at line 656 of file aviobuf.c.

Referenced by av_read_pause(), and av_read_play().

offset_t av_url_read_fseek ( ByteIOContext h,
int  stream_index,
int64_t  timestamp,
int  flags 
)

Definition at line 663 of file aviobuf.c.

Referenced by asf_read_seek().

int av_url_read_pause ( URLContext h,
int  pause 
)

Pause and resume playing - only meaningful if using a network streaming protocol (e.g.

MMS).

Parameters:
pause 1 for pause, 0 for resume

Definition at line 193 of file avio.c.

offset_t av_url_read_seek ( URLContext h,
int  stream_index,
int64_t  timestamp,
int  flags 
)

Seek to a given timestamp relative to some component stream.

Only meaningful if using a network streaming protocol (e.g. MMS.).

Parameters:
stream_index The stream index that the timestamp is relative to. If stream_index is (-1) the timestamp should be in AV_TIME_BASE units from the beginning of the presentation. If a stream_index >= 0 is used and the protocol does not support seeking based on component streams, the call will fail with ENOTSUP.
timestamp timestamp in AVStream.time_base units or if there is no stream specified then in AV_TIME_BASE units.
flags Optional combination of AVSEEK_FLAG_BACKWARD, AVSEEK_FLAG_BYTE and AVSEEK_FLAG_ANY. The protocol may silently ignore AVSEEK_FLAG_BACKWARD and AVSEEK_FLAG_ANY, but AVSEEK_FLAG_BYTE will fail with ENOTSUP if used and not supported.
Returns:
>= 0 on success
See also:
AVInputFormat::read_seek

Definition at line 200 of file avio.c.

unsigned long ff_crc04C11DB7_update ( unsigned long  checksum,
const uint8_t buf,
unsigned int  len 
)

Definition at line 320 of file aviobuf.c.

Referenced by get_packetheader(), ogg_write_page(), put_packet(), and write_packet().

uint64_t ff_get_v ( ByteIOContext bc  ) 

unsigned int get_be16 ( ByteIOContext s  ) 

unsigned int get_be24 ( ByteIOContext s  ) 

Definition at line 467 of file aviobuf.c.

Referenced by flv_read_packet(), id3v2_parse(), mov_read_esds(), and read_part_of_packet().

unsigned int get_be32 ( ByteIOContext s  ) 

uint64_t get_be64 ( ByteIOContext s  ) 

int get_buffer ( ByteIOContext s,
unsigned char *  buf,
int  size 
)

Definition at line 365 of file aviobuf.c.

Referenced by amf_get_string(), amr_read_header(), amr_read_packet(), apc_read_header(), ape_parse_tag(), ape_read_header(), ape_read_packet(), ape_tag_read_field(), asf_read_header(), asf_read_packet(), av_get_packet(), av_open_input_file(), av_read(), avi_read_header(), avs_read_packet(), avs_read_video_packet(), cin_read_packet(), decode_stream_header(), dv_read_header(), dv_read_packet(), dxa_read_packet(), ebml_read_ascii(), ebml_read_binary(), ff_rm_parse_packet(), ff_rm_read_mdpr_codecdata(), ffm_read_data(), film_read_header(), film_read_packet(), flic_read_header(), flic_read_packet(), fourxm_read_header(), fourxm_read_packet(), get_aiff_header(), get_codec_data(), get_guid(), get_meta(), get_pts(), get_riff(), get_str(), GetCode(), gif_read_header1(), gif_read_image(), id3v2_read_ttag(), idcin_read_header(), idcin_read_packet(), img_read_packet(), ingenient_read_packet(), ipmovie_read_header(), klv_read_packet(), load_ipmovie_packet(), mm_read_packet(), mmf_read_packet(), mov_parse_udta_string(), mov_read_cmov(), mov_read_esds(), mov_read_extradata(), mov_read_glbl(), mov_read_smi(), mov_read_stsd(), mov_read_wave(), mp3_read_header(), mpc8_parse_seektable(), mpc8_read_header(), mpc_read_header(), mpc_read_packet(), mpegps_read_packet(), mpegps_read_pes_header(), mpegts_get_pcr(), mpegts_raw_read_packet(), mpegts_read_header(), mxf_decrypt_triplet(), mxf_get_d10_aes3_packet(), mxf_read_content_storage(), mxf_read_cryptographic_context(), mxf_read_generic_descriptor(), mxf_read_local_tags(), mxf_read_material_package(), mxf_read_primer_pack(), mxf_read_sequence(), mxf_read_source_clip(), mxf_read_source_package(), mxf_read_track(), nsv_parse_NSVf_header(), nuv_header(), nuv_packet(), ogg_read_page(), process_ipmovie_chunk(), read_frame(), read_packet(), read_part_of_packet(), read_seek(), rm_assemble_video_frame(), rm_read_packet(), roq_read_header(), roq_read_packet(), sdp_read_header(), seq_fill_buffer(), seq_read_packet(), siff_read_packet(), smacker_read_header(), smacker_read_packet(), str_read_header(), str_read_packet(), stream_component_open(), swf_read_packet(), thp_read_header(), tta_read_header(), vc1t_read_header(), vmd_read_header(), vmd_read_packet(), wc3_read_header(), wc3_read_packet(), wsaud_read_header(), wsaud_read_packet(), wsvqa_read_header(), wsvqa_read_packet(), wv_read_block_header(), and wv_read_packet().

int get_byte ( ByteIOContext s  ) 

Note:
return 0 if EOF, so you cannot use it if EOF handling is necessary

Definition at line 339 of file aviobuf.c.

Referenced by amf_parse_object(), amr_read_packet(), asf_get_packet(), asf_read_frame_header(), asf_read_header(), asf_read_packet(), avi_read_header(), avi_read_packet(), avs_read_packet(), cin_read_file_header(), cin_read_frame_header(), dxa_read_header(), ebml_read_num(), ebml_read_sint(), ebml_read_uint(), ff_get_v(), ffm_read_header(), find_any_startcode(), find_next_start_code(), flv_read_header(), flv_read_metabody(), flv_read_packet(), flv_set_video_codec(), get_be16(), get_be24(), get_codec_data(), get_le16(), get_le24(), get_len(), get_pts(), get_str(), get_str8(), get_strl(), get_strz(), GetCode(), gif_read_extension(), gif_read_header1(), gif_read_image(), gxf_header(), gxf_material_tags(), gxf_packet(), gxf_resync_media(), gxf_track_tags(), id3v2_get_size(), id3v2_read_ttag(), klv_decode_ber_length(), mmf_read_header(), mov_read_ctts(), mov_read_elst(), mov_read_esds(), mov_read_hdlr(), mov_read_mdhd(), mov_read_mvhd(), mov_read_stco(), mov_read_stsc(), mov_read_stsd(), mov_read_stss(), mov_read_stsz(), mov_read_stts(), mov_read_tkhd(), mp4_read_descr(), mp4_read_descr_len(), mpc8_read_header(), mpc_read_header(), mpegps_psm_parse(), mpegps_read_header(), mpegps_read_packet(), mpegps_read_pes_header(), mtv_read_header(), mxf_read_pixel_layout(), mxf_read_sync(), nsv_parse_NSVs_header(), nsv_read_chunk(), nsv_resync(), nut_read_packet(), nuv_header(), parse_packet_header(), process_audio_header_eacs(), process_audio_header_elements(), read_arbitary(), read_braindead_odml_indx(), read_frame(), read_header(), read_part_of_packet(), rm_assemble_video_frame(), rm_read_audio_stream_info(), rm_read_dts(), seq_parse_frame_data(), skip_reserved(), smacker_read_header(), smacker_read_packet(), sol_read_header(), swf_read_header(), swf_read_packet(), sync(), vc1t_read_header(), vc1t_read_packet(), vid_read_packet(), voc_get_packet(), wv_read_block_header(), yuv4_read_header(), and yuv4_read_packet().

unsigned long get_checksum ( ByteIOContext s  ) 

unsigned int get_le16 ( ByteIOContext s  ) 

Definition at line 427 of file aviobuf.c.

unsigned int get_le24 ( ByteIOContext s  ) 

unsigned int get_le32 ( ByteIOContext s  ) 

Definition at line 443 of file aviobuf.c.

uint64_t get_le64 ( ByteIOContext s  ) 

int get_partial_buffer ( ByteIOContext s,
unsigned char *  buf,
int  size 
)

Definition at line 408 of file aviobuf.c.

Referenced by raw_read_partial_packet().

char* get_strz ( ByteIOContext s,
char *  buf,
int  maxlen 
)

Definition at line 482 of file aviobuf.c.

Referenced by avi_read_tag(), and ffm_read_header().

void init_checksum ( ByteIOContext s,
unsigned long(*)(unsigned long c, const uint8_t *p, unsigned int len update_checksum,
unsigned long  checksum 
)

Definition at line 330 of file aviobuf.c.

Referenced by get_packetheader(), ogg_write_page(), put_packet(), and write_packet().

int init_put_byte ( ByteIOContext s,
unsigned char *  buffer,
int  buffer_size,
int  write_flag,
void *  opaque,
int(*)(void *opaque, uint8_t *buf, int buf_size)  read_packet,
int(*)(void *opaque, uint8_t *buf, int buf_size)  write_packet,
offset_t(*)(void *opaque, offset_t offset, int whence)  seek 
)

void put_be16 ( ByteIOContext s,
unsigned int  val 
)

void put_be24 ( ByteIOContext s,
unsigned int  val 
)

void put_be32 ( ByteIOContext s,
unsigned int  val 
)

Definition at line 230 of file aviobuf.c.

Referenced by ff_avc_parse_nal_units(), ff_rtp_send_data(), flush_packet(), flv_write_header(), flv_write_packet(), gxf_write_material_data_section(), gxf_write_media_preamble(), gxf_write_packet_header(), gxf_write_timecode_auxiliary(), gxf_write_track_description(), gxf_write_umf_media_dv(), gxf_write_umf_media_timecode(), gxf_write_umf_packet(), mov_write_amr_tag(), mov_write_audio_tag(), mov_write_avcc_tag(), mov_write_avid_tag(), mov_write_ctts_tag(), mov_write_d263_tag(), mov_write_dinf_tag(), mov_write_dref_tag(), mov_write_edts_tag(), mov_write_enda_tag(), mov_write_esds_tag(), mov_write_ftyp_tag(), mov_write_glbl_tag(), mov_write_hdlr_tag(), mov_write_ilst_tag(), mov_write_itunes_hdlr_tag(), mov_write_mdat_tag(), mov_write_mdhd_tag(), mov_write_mdia_tag(), mov_write_meta_tag(), mov_write_minf_tag(), mov_write_moov_tag(), mov_write_mvhd_tag(), mov_write_smhd_tag(), mov_write_stbl_tag(), mov_write_stco_tag(), mov_write_string_data_tag(), mov_write_string_tag(), mov_write_stsc_tag(), mov_write_stsd_tag(), mov_write_stss_tag(), mov_write_stsz_tag(), mov_write_stts_tag(), mov_write_svq3_tag(), mov_write_tkhd_tag(), mov_write_trailer(), mov_write_trak_tag(), mov_write_trkn_tag(), mov_write_udta_tag(), mov_write_uuid_tag_psp(), mov_write_uuidprof_tag(), mov_write_uuidusmt_tag(), mov_write_video_tag(), mov_write_vmhd_tag(), mov_write_wave_tag(), ogg_update_checksum(), put_be64(), put_padding_packet(), rm_write_trailer(), rm_write_video(), rtcp_send_sr(), rtp_check_and_send_back_rr(), rv10_write_header(), updatePacketSize(), updateSize(), and write_packet_header().

void put_be64 ( ByteIOContext s,
uint64_t  val 
)

void put_buffer ( ByteIOContext s,
const unsigned char *  buf,
int  size 
)

void put_byte ( ByteIOContext s,
int  b 
)

void put_flush_packet ( ByteIOContext s  ) 

void put_le16 ( ByteIOContext s,
unsigned int  val 
)

void put_le24 ( ByteIOContext s,
unsigned int  val 
)

Definition at line 270 of file aviobuf.c.

Referenced by voc_write_packet().

void put_le32 ( ByteIOContext s,
unsigned int  val 
)

void put_le64 ( ByteIOContext s,
uint64_t  val 
)

void put_strz ( ByteIOContext s,
const char *  buf 
)

Definition at line 238 of file aviobuf.c.

void put_tag ( ByteIOContext s,
const char *  tag 
)

int register_protocol ( URLProtocol protocol  ) 

Definition at line 35 of file avio.c.

int udp_get_file_handle ( URLContext h  ) 

Return the udp file handle for select() usage to wait for several RTP streams at the same time.

Parameters:
h media file context

Definition at line 295 of file udp.c.

Referenced by rtp_open().

int udp_get_local_port ( URLContext h  ) 

Return the local port used by the UDP connexion.

Parameters:
s1 media file context
Returns:
the local port number

Definition at line 284 of file udp.c.

Referenced by rtp_get_local_port(), and rtp_open().

int udp_set_remote_url ( URLContext h,
const char *  uri 
)

If no filename is given to av_open_input_file because you want to get the local port first, then you must call this function to set the remote server address.

url syntax: udp://host:port[?option=val...] option: 'multicast=1' : enable multicast 'ttl=n' : set the ttl value (for multicast only) 'localport=n' : set the local port 'pkt_size=n' : set max packet size 'reuse=1' : enable reusing the socket

Parameters:
s1 media file context
uri of the remote server
Returns:
zero if no error.

Definition at line 262 of file udp.c.

Referenced by rtp_set_remote_url(), and udp_open().

int url_close ( URLContext h  ) 

int url_close_buf ( ByteIOContext s  ) 

return the written or read size

int url_close_dyn_buf ( ByteIOContext s,
uint8_t **  pbuffer 
)

Return the written size and a pointer to the buffer.

The buffer must be freed with av_free().

Parameters:
s IO context
pbuffer pointer to a byte buffer
Returns:
the length of the byte buffer

Referenced by close_connection(), compute_stats(), ff_avc_parse_nal_units(), http_prepare_data(), http_send_data(), mkv_write_codecprivate(), put_packet(), rtp_check_and_send_back_rr(), rtp_new_av_stream(), rtsp_parse_request(), and write_globalinfo().

int url_exist ( const char *  filename  ) 

Definition at line 146 of file avio.c.

Referenced by build_feed_streams(), find_image_range(), and opt_output_file().

int url_fclose ( ByteIOContext s  ) 

int url_fdopen ( ByteIOContext **  s,
URLContext h 
)

Note:
when opened as read/write, the buffers are only used for writing

Definition at line 516 of file aviobuf.c.

Referenced by url_fopen().

int url_feof ( ByteIOContext s  ) 

int url_ferror ( ByteIOContext s  ) 

int url_fget_max_packet_size ( ByteIOContext s  ) 

Return the maximum packet size associated to packetized buffered file handle.

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

Parameters:
s buffered file handle
Returns:
maximum packet size in bytes

Definition at line 651 of file aviobuf.c.

Referenced by rtp_write_header().

int url_fgetc ( ByteIOContext s  ) 

Note:
return URL_EOF (-1) if EOF

Definition at line 352 of file aviobuf.c.

Referenced by gif_parse_next_image(), mpegts_resync(), ogg_read_page(), and url_fgets().

char* url_fgets ( ByteIOContext s,
char *  buf,
int  buf_size 
)

Note:
unlike fgets, the EOL character is not returned and a whole line is parsed. return NULL if first char read was EOF

Definition at line 630 of file aviobuf.c.

URLContext* url_fileno ( ByteIOContext s  ) 

Definition at line 610 of file aviobuf.c.

Referenced by decode_thread().

offset_t url_filesize ( URLContext h  ) 

Definition at line 155 of file avio.c.

int url_fopen ( ByteIOContext **  s,
const char *  filename,
int  flags 
)

Note:
when opened as read/write, the buffers are only used for writing

Definition at line 585 of file aviobuf.c.

Referenced by av_open_input_file(), build_feed_streams(), img_read_packet(), main(), and opt_output_file().

int url_fprintf ( ByteIOContext s,
const char *  fmt,
  ... 
)

offset_t url_fseek ( ByteIOContext s,
offset_t  offset,
int  whence 
)

Definition at line 127 of file aviobuf.c.

Referenced by adjust_write_index(), aiff_read_header(), ape_parse_tag(), ape_read_header(), ape_read_packet(), asf_build_simple_index(), asf_get_packet(), asf_read_header(), asf_read_pts(), asf_read_seek(), asf_write_header1(), asf_write_trailer(), au_read_header(), av_estimate_timings_from_pts(), av_find_stream_info(), av_open_input_file(), av_seek(), av_seek_frame_binary(), av_seek_frame_byte(), av_seek_frame_generic(), avi_load_index(), avi_read_header(), avi_read_packet(), avi_read_seek(), avi_read_tag(), dv_read_header(), dv_read_seek(), dxa_read_header(), dxa_read_packet(), ea_read_packet(), ebml_read_seek(), end_ebml_master(), end_header(), ffm_read_data(), ffm_seek1(), film_read_packet(), find_and_decode_index(), find_any_startcode(), find_tag(), flic_read_header(), flic_read_packet(), flv_read_header(), flv_read_packet(), flv_read_seek(), flv_write_header(), flv_write_trailer(), fourxm_read_header(), fourxm_read_packet(), get_aiff_header(), gxf_read_timestamp(), gxf_resync_media(), gxf_seek(), gxf_write_trailer(), gxf_write_umf_media_description(), id3v2_parse(), idcin_read_packet(), ipmovie_read_header(), load_ipmovie_packet(), matroska_read_seek(), mkv_write_seekhead(), mkv_write_trailer(), mm_read_header(), mm_read_packet(), mmf_read_header(), mov_read_packet(), mov_read_udta(), mov_write_stsc_tag(), mov_write_stss_tag(), mov_write_trailer(), mov_write_uuidusmt_tag(), mp3_parse_vbr_tags(), mp3_read_header(), mpc8_handle_chunk(), mpc8_parse_seektable(), mpc8_read_seek(), mpc_read_packet(), mpegps_read_dts(), mpegps_read_packet(), mpegps_read_pes_header(), mpegts_get_pcr(), mpegts_raw_read_packet(), mpegts_read_header(), mpegts_resync(), mtv_read_header(), mxf_read_header(), mxf_read_local_tags(), mxf_read_seek(), nsv_parse_NSVf_header(), nut_read_header(), nut_read_packet(), ogg_get_length(), ogg_read_timestamp(), ogg_restore(), ogg_update_checksum(), pcm_read_seek(), process_ea_header(), process_ipmovie_chunk(), pva_read_timestamp(), read_braindead_odml_indx(), read_frame(), read_packet(), read_seek(), rm_read_dts(), rm_write_trailer(), roq_read_header(), roq_read_packet(), seq_fill_buffer(), seq_init_frame_buffers(), seq_parse_frame_data(), seq_read_packet(), skip_reserved(), smacker_read_packet(), str_read_header(), thp_read_header(), thp_read_packet(), tta_read_header(), tta_read_seek(), updatePacketSize(), updateSize(), url_fskip(), url_ftell(), vid_read_header(), vid_read_packet(), vmd_read_header(), vmd_read_packet(), wc3_read_header(), wc3_read_packet(), wsvqa_read_header(), wsvqa_read_packet(), and wv_read_seek().

offset_t url_fsize ( ByteIOContext s  ) 

void url_fskip ( ByteIOContext s,
offset_t  offset 
)

Definition at line 179 of file aviobuf.c.

Referenced by aiff_read_header(), amf_get_string(), amf_parse_object(), ape_read_header(), ape_tag_read_field(), asf_read_frame_header(), asf_read_header(), asf_read_packet(), avi_load_index(), avi_read_header(), avi_read_packet(), avs_read_header(), avs_read_packet(), cdata_read_header(), decode_frame(), dxa_read_header(), ea_read_packet(), ebml_read_skip(), ff_rm_read_mdpr_codecdata(), flv_read_header(), flv_read_packet(), get_codec_data(), get_meta(), get_pts(), gxf_header(), gxf_material_tags(), gxf_packet(), gxf_read_index(), gxf_track_tags(), id3v2_parse(), ingenient_read_packet(), lmlm4_read_packet(), matroska_read_header(), mov_read_ctts(), mov_read_default(), mov_read_ftyp(), mov_read_glbl(), mov_read_hdlr(), mov_read_mdat(), mov_read_mvhd(), mov_read_smi(), mov_read_stsd(), mov_read_tkhd(), mov_read_wave(), mov_read_wide(), mpc8_handle_chunk(), mpc8_read_header(), mpc_read_header(), mpegps_psm_parse(), mpegps_read_dts(), mpegps_read_packet(), mpegps_read_pes_header(), mtv_read_header(), mtv_read_packet(), mxf_decrypt_triplet(), mxf_read_content_storage(), mxf_read_generic_descriptor(), mxf_read_header(), mxf_read_material_package(), mxf_read_packet(), mxf_read_sequence(), mxf_read_source_clip(), mxf_read_source_package(), nsv_read_chunk(), nuv_header(), nuv_packet(), process_audio_header_eacs(), process_ea_header(), process_video_header_vp6(), read_packet(), read_part_of_packet(), rm_read_audio_stream_info(), rm_read_dts(), rm_read_header(), siff_parse_soun(), siff_parse_vbv1(), siff_read_header(), swf_read_header(), swf_read_packet(), sync(), tta_read_header(), txd_read_packet(), vc1t_read_header(), voc_get_packet(), and voc_read_header().

offset_t url_ftell ( ByteIOContext s  ) 

Definition at line 184 of file aviobuf.c.

Referenced by adjust_write_index(), aiff_read_header(), amf_parse_object(), amr_read_packet(), asf_build_simple_index(), asf_get_packet(), asf_read_header(), asf_read_packet(), asf_write_header1(), asf_write_trailer(), av_encode(), av_find_stream_info(), av_get_packet(), av_open_input_stream(), avi_load_index(), avi_read_header(), avi_read_packet(), avi_read_tag(), avs_read_audio_packet(), decode_frame_header(), decode_info_header(), decode_main_header(), decode_stream_header(), decode_syncpoint(), dxa_read_header(), dxa_read_packet(), ebml_read_ascii(), ebml_read_binary(), ebml_read_element_level_up(), ebml_read_float(), ebml_read_master(), ebml_read_num(), ebml_read_sint(), ebml_read_uint(), end_ebml_master(), end_header(), event_loop(), ff_rm_read_mdpr_codecdata(), ffm_is_avail_data(), ffm_read_data(), ffm_read_header(), ffm_read_packet(), film_read_packet(), find_and_decode_index(), find_startcode(), flic_read_packet(), flv_read_packet(), flv_write_header(), flv_write_trailer(), fourxm_read_packet(), get_riff(), gxf_read_timestamp(), gxf_resync_media(), gxf_write_eos_packet(), gxf_write_map_packet(), gxf_write_material_data_section(), gxf_write_media_packet(), gxf_write_track_description(), gxf_write_track_description_section(), gxf_write_trailer(), gxf_write_umf_media_description(), gxf_write_umf_packet(), gxf_write_umf_track_description(), gxf_write_umf_user_data(), id3v2_parse(), ingenient_read_packet(), klv_read_packet(), matroska_parse_blockgroup(), matroska_parse_cluster(), matroska_parse_seekhead(), matroska_read_header(), mkv_start_seekhead(), mkv_write_block(), mkv_write_cues(), mkv_write_header(), mkv_write_packet(), mkv_write_seekhead(), mkv_write_tracks(), mkv_write_trailer(), mov_read_default(), mov_read_hdlr(), mov_read_header(), mov_read_stsd(), mov_read_udta(), mov_write_audio_tag(), mov_write_avcc_tag(), mov_write_dinf_tag(), mov_write_esds_tag(), mov_write_hdlr_tag(), mov_write_ilst_tag(), mov_write_itunes_hdlr_tag(), mov_write_mdat_tag(), mov_write_mdia_tag(), mov_write_meta_tag(), mov_write_minf_tag(), mov_write_moov_tag(), mov_write_packet(), mov_write_stbl_tag(), mov_write_stco_tag(), mov_write_string_data_tag(), mov_write_string_tag(), mov_write_stsc_tag(), mov_write_stsd_tag(), mov_write_stss_tag(), mov_write_stsz_tag(), mov_write_trailer(), mov_write_trak_tag(), mov_write_trkn_tag(), mov_write_udta_tag(), mov_write_uuidusmt_tag(), mov_write_video_tag(), mov_write_wave_tag(), mp3_read_header(), mpc8_get_chunk_header(), mpc8_handle_chunk(), mpc8_read_header(), mpc8_read_packet(), mpc_read_packet(), mpegps_read_pes_header(), mpegts_raw_read_packet(), mpegts_read_header(), mxf_decrypt_triplet(), mxf_read_local_tags(), nsv_parse_NSVf_header(), nsv_resync(), nut_read_header(), nut_read_packet(), nuv_packet(), ogg_read_timestamp(), ogg_save(), ogg_update_checksum(), ogg_write_page(), print_report(), process_ea_header(), process_ipmovie_chunk(), put_ebml_void(), put_header(), put_payload_parsing_info(), pva_read_timestamp(), raw_read_partial_packet(), read_braindead_odml_indx(), read_frame(), read_part_of_packet(), read_seek(), rm_assemble_video_frame(), rm_read_audio_stream_info(), roq_read_packet(), skip_reserved(), smacker_read_header(), smacker_read_packet(), start_ebml_master(), str_read_packet(), sync(), tta_read_header(), updatePacketSize(), updateSize(), vmd_read_header(), vmd_read_packet(), wav_read_header(), wav_read_packet(), write_packet(), wv_read_block_header(), and wv_read_seek().

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

Definition at line 175 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 170 of file avio.c.

Referenced by http_prepare_data(), rtp_new_av_stream(), rtp_open(), and url_fdopen().

static int url_is_streamed ( ByteIOContext s  )  [inline, static]

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

int url_open_buf ( ByteIOContext **  s,
uint8_t buf,
int  buf_size,
int  flags 
)

Referenced by http_receive_data().

int url_open_dyn_buf ( ByteIOContext **  s  ) 

int url_open_dyn_packet_buf ( ByteIOContext **  s,
int  max_packet_size 
)

Open a write only packetized memory stream with a maximum packet size of 'max_packet_size'.

The stream is stored in a memory buffer with a big endian 4 byte header giving the packet size in bytes.

Parameters:
s new IO context
max_packet_size maximum packet size (must be > 0)
Returns:
zero if no error.

Referenced by http_prepare_data(), and rtp_new_av_stream().

int url_poll ( URLPollEntry poll_table,
int  n,
int  timeout 
)

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

Definition at line 104 of file avio.c.

Referenced by http_getc(), http_read(), udp_read_packet(), url_fdopen(), and url_readbuf().

int url_resetbuf ( ByteIOContext s,
int  flags 
)

Reset the buffer for reading or writing.

Note:
Will drop any data currently in the buffer without transmitting it.
Parameters:
flags URL_RDONLY to set up the buffer for reading, or URL_WRONLY to set up the buffer for writing.

Definition at line 569 of file aviobuf.c.

Referenced by init_put_byte(), and url_setbufsize().

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

Definition at line 125 of file avio.c.

Referenced by url_fdopen(), and url_filesize().

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.

Definition at line 186 of file avio.c.

Referenced by av_encode(), and decode_thread().

int url_setbufsize ( ByteIOContext s,
int  buf_size 
)

Warning:
must be called before any I/O

Definition at line 554 of file aviobuf.c.

Referenced by av_open_input_file().

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


Variable Documentation

Definition at line 26 of file avio.c.

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 Fri Oct 3 22:47:00 2008 for ffmpeg by  doxygen 1.5.6