#include <stdint.h>
#include "libavutil/common.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 | AVSEEK_FORCE 0x20000 |
Oring this flag as into the "whence" parameter to a seek function causes it to seek by any means (like reopening and linear reading) or other normally unreasonble means that can be extreemly slow. | |
#define | URL_EOF (-1) |
Typedefs | |
typedef int | URLInterruptCB (void) |
Functions | |
int | url_open_protocol (URLContext **puc, struct URLProtocol *up, const char *url, int flags) |
Creates an URLContext for accessing to the resource indicated by url, and opens it using the URLProtocol up. | |
int | url_open (URLContext **h, const char *url, int flags) |
Creates an URLContext for accessing to the resource indicated by url, and opens it. | |
int | url_read (URLContext *h, unsigned char *buf, int size) |
Reads up to size bytes from the resource accessed by h, and stores the read bytes in buf. | |
int | url_read_complete (URLContext *h, unsigned char *buf, int size) |
Read as many bytes as possible (up to size), calling the read function multiple times if necessary. | |
int | url_write (URLContext *h, unsigned char *buf, int size) |
int64_t | url_seek (URLContext *h, int64_t pos, int whence) |
Changes the position that will be used by the next read/write operation on the resource accessed by h. | |
int | url_close (URLContext *h) |
Closes the resource accessed by the URLContext h, and frees the memory used by it. | |
int | url_exist (const char *url) |
Returns a non-zero value if the resource indicated by url exists, 0 otherwise. | |
int64_t | url_filesize (URLContext *h) |
int | url_get_file_handle (URLContext *h) |
Return the file descriptor associated with this URL. | |
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. | |
int64_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. | |
URLProtocol * | av_protocol_next (URLProtocol *p) |
If protocol is NULL, returns the first registered protocol, if protocol is non-NULL, returns the next registered protocol after protocol, or NULL if protocol is the last one. | |
attribute_deprecated int | register_protocol (URLProtocol *protocol) |
int | av_register_protocol (URLProtocol *protocol) |
Registers the 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), int64_t(*seek)(void *opaque, int64_t offset, int whence)) |
ByteIOContext * | av_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), int64_t(*seek)(void *opaque, int64_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) |
int64_t | url_fseek (ByteIOContext *s, int64_t offset, int whence) |
fseek() equivalent for ByteIOContext. | |
void | url_fskip (ByteIOContext *s, int64_t offset) |
Skip given number of bytes forward. | |
int64_t | url_ftell (ByteIOContext *s) |
ftell() equivalent for ByteIOContext. | |
int64_t | url_fsize (ByteIOContext *s) |
Gets the filesize. | |
int | url_feof (ByteIOContext *s) |
feof() equivalent for ByteIOContext. | |
int | url_ferror (ByteIOContext *s) |
int | av_url_read_fpause (ByteIOContext *h, int pause) |
int64_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) |
Reads size bytes from ByteIOContext into buf. | |
int | get_partial_buffer (ByteIOContext *s, unsigned char *buf, int size) |
Reads size bytes from ByteIOContext into buf. | |
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) |
Creates and initializes a ByteIOContext for accessing the resource referenced by the 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 | ff_rewind_with_probe_data (ByteIOContext *s, unsigned char *buf, int buf_size) |
Rewinds the ByteIOContext using the specified buffer containing the first buf_size bytes of the file. | |
int | url_fopen (ByteIOContext **s, const char *url, int flags) |
Creates and initializes a ByteIOContext for accessing the resource indicated by url. | |
int | url_fclose (ByteIOContext *s) |
URLContext * | url_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 | |
URLProtocol * | first_protocol |
URLInterruptCB * | url_interrupt_cb |
Definition in file avio.h.
#define AVSEEK_FORCE 0x20000 |
Oring this flag as into the "whence" parameter to a seek function causes it to seek by any means (like reopening and linear reading) or other normally unreasonble means that can be extreemly slow.
This may be ignored by the seek code.
Definition at line 221 of file avio.h.
Referenced by url_fseek(), and url_seek().
#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 213 of file avio.h.
Referenced by file_seek(), http_seek(), url_filesize(), and url_fsize().
#define URL_EOF (-1) |
#define URL_RDONLY 0 |
Definition at line 62 of file avio.h.
Referenced by av_open_input_file(), http_receive_data(), img_read_packet(), init_put_byte(), matroska_read_header(), mov_open_dref(), url_exist(), url_resetbuf(), and url_setbufsize().
#define URL_RDWR 2 |
Definition at line 64 of file avio.h.
Referenced by file_open(), gopher_open(), http_open_cnx(), rtmp_open(), sdp_read_header(), url_fdopen(), url_open_protocol(), url_resetbuf(), and url_write().
#define URL_WRONLY 1 |
Definition at line 63 of file avio.h.
Referenced by build_feed_streams(), file_open(), http_close(), http_connect(), init_put_byte(), main(), opt_output_file(), pipe_open(), rtmp_open(), rtp_new_av_stream(), rtp_open(), udp_close(), udp_open(), url_fdopen(), url_open_protocol(), url_read(), url_resetbuf(), url_setbufsize(), and url_write().
typedef int URLInterruptCB(void) |
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, | |||
int64_t(*)(void *opaque, int64_t offset, int whence) | seek | |||
) |
URLProtocol* av_protocol_next | ( | URLProtocol * | p | ) |
If protocol is NULL, returns the first registered protocol, if protocol is non-NULL, returns the next registered protocol after protocol, or NULL if protocol is the last one.
Definition at line 53 of file avio.c.
Referenced by show_protocols().
int av_register_protocol | ( | URLProtocol * | protocol | ) |
Registers the URLProtocol protocol.
Definition at line 59 of file avio.c.
Referenced by register_protocol().
int av_url_read_fpause | ( | ByteIOContext * | h, | |
int | pause | |||
) |
int64_t av_url_read_fseek | ( | ByteIOContext * | h, | |
int | stream_index, | |||
int64_t | timestamp, | |||
int | flags | |||
) |
int av_url_read_pause | ( | URLContext * | h, | |
int | pause | |||
) |
int64_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.).
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. |
unsigned long ff_crc04C11DB7_update | ( | unsigned long | checksum, | |
const uint8_t * | buf, | |||
unsigned int | len | |||
) |
Definition at line 348 of file aviobuf.c.
Referenced by get_packetheader(), ogg_write_page(), put_packet(), and write_packet().
uint64_t ff_get_v | ( | ByteIOContext * | bc | ) |
Definition at line 547 of file aviobuf.c.
Referenced by decode_frame_header(), decode_info_header(), decode_main_header(), decode_stream_header(), decode_syncpoint(), find_and_decode_index(), get_fourcc(), get_packetheader(), get_s(), get_str(), mpc8_get_chunk_header(), mpc8_handle_chunk(), and mpc8_read_header().
int ff_rewind_with_probe_data | ( | ByteIOContext * | s, | |
unsigned char * | buf, | |||
int | buf_size | |||
) |
Rewinds the ByteIOContext using the specified buffer containing the first buf_size bytes of the file.
Used after probing to avoid seeking. Joins buf and s->buffer, taking any overlap into consideration.
This function is NOT part of the public API
s | The read-only ByteIOContext to rewind | |
buf | The probe buffer containing the first buf_size bytes of the file | |
buf_size | The size of buf |
Definition at line 634 of file aviobuf.c.
Referenced by ff_probe_input_buffer().
unsigned int get_be16 | ( | ByteIOContext * | s | ) |
Definition at line 501 of file aviobuf.c.
Referenced by amf_get_string(), amf_parse_object(), cdata_read_header(), daud_packet(), dxa_read_header(), ff_id3v2_parse(), ff_mov_read_esds(), ff_rm_parse_packet(), ff_rm_read_mdpr_codecdata(), ffm_read_data(), ffm_read_header(), get_aiff_header(), get_be24(), get_be32(), get_num(), gxf_header(), iff_read_header(), lmlm4_read_packet(), matroska_read_header(), mov_metadata_trkn(), mov_read_dref(), mov_read_enda(), mov_read_mdhd(), mov_read_mvhd(), mov_read_stsd(), mov_read_tkhd(), mov_read_udta_string(), mpegps_psm_parse(), mpegps_read_pes_header(), mxf_read_local_tags(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), rdt_load_mdpr(), read_header(), read_packet(), read_part_of_packet(), read_ttag(), rm_read_audio_stream_info(), rm_read_header(), rm_read_index(), rm_read_metadata(), and sync().
unsigned int get_be24 | ( | ByteIOContext * | s | ) |
Definition at line 509 of file aviobuf.c.
Referenced by asfrtp_parse_packet(), ff_id3v2_parse(), ff_mov_read_esds(), flv_read_packet(), mov_read_ctts(), mov_read_elst(), 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_tfhd(), mov_read_tkhd(), mov_read_trex(), mov_read_trun(), and read_part_of_packet().
unsigned int get_be32 | ( | ByteIOContext * | s | ) |
Definition at line 516 of file aviobuf.c.
Referenced by aiff_read_header(), amf_parse_object(), au_read_header(), decode_frame_header(), dv_read_header(), dxa_read_header(), ea_read_packet(), ebml_read_float(), ff_id3v2_parse(), ff_mov_read_esds(), ff_rm_read_mdpr_codecdata(), ffm_read_header(), flv_read_header(), flv_read_packet(), get_aiff_header(), get_be64(), get_packetheader(), get_tag(), gxf_material_tags(), gxf_packet(), gxf_resync_media(), gxf_track_tags(), iff_read_header(), lmlm4_read_packet(), matroska_read_header(), mmf_read_header(), mov_read_chap(), mov_read_chpl(), mov_read_cmov(), mov_read_ctts(), mov_read_default(), mov_read_dref(), mov_read_elst(), mov_read_ftyp(), mov_read_hdlr(), mov_read_mdhd(), mov_read_mvhd(), mov_read_pasp(), mov_read_stco(), mov_read_stps(), mov_read_stsc(), mov_read_stsd(), mov_read_stss(), mov_read_stsz(), mov_read_stts(), mov_read_tfhd(), mov_read_tkhd(), mov_read_trex(), mov_read_trun(), mov_read_udta_string(), mov_read_wide(), mpegps_psm_parse(), mxf_read_content_storage(), mxf_read_generic_descriptor(), mxf_read_index_table_segment(), mxf_read_material_package(), mxf_read_primer_pack(), mxf_read_sequence(), mxf_read_source_clip(), mxf_read_source_package(), mxf_read_track(), parse_packet_header(), process_audio_header_eacs(), qcp_read_header(), r3d_read_rdvo(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), r3d_read_reos(), rdt_load_mdpr(), read_atom(), read_desc_chunk(), read_header(), read_info_chunk(), read_packet(), read_pakt_chunk(), read_part_of_packet(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_header(), rm_read_index(), siff_parse_soun(), siff_parse_vbv1(), sox_read_header(), swf_read_header(), sync(), thp_read_header(), thp_read_packet(), vqf_read_header(), wc3_read_header(), and wc3_read_packet().
uint64_t get_be64 | ( | ByteIOContext * | s | ) |
Definition at line 539 of file aviobuf.c.
Referenced by amf_parse_object(), ebml_read_float(), ffm_read_data(), ffm_read_header(), find_and_decode_index(), get_dts(), mov_read_chpl(), mov_read_default(), mov_read_mdhd(), mov_read_mvhd(), mov_read_stco(), mov_read_stsd(), mov_read_tfhd(), mov_read_tkhd(), mxf_decrypt_triplet(), mxf_read_index_table_segment(), mxf_read_sequence(), mxf_read_source_clip(), read_desc_chunk(), read_header(), read_pakt_chunk(), and sox_read_header().
int get_buffer | ( | ByteIOContext * | s, | |
unsigned char * | buf, | |||
int | size | |||
) |
Reads size bytes from ByteIOContext into buf.
Definition at line 399 of file aviobuf.c.
Referenced by add_metadata(), aiff_read_header(), amf_get_string(), amr_read_header(), amr_read_packet(), apc_read_header(), ape_read_header(), ape_read_packet(), ape_tag_read_field(), asf_read_header(), av_get_packet(), av_read(), avi_read_header(), avi_read_tag(), avs_read_packet(), avs_read_video_packet(), bfi_read_header(), cin_read_packet(), decode_frame(), decode_main_header(), decode_stream_header(), dv_read_header(), dv_read_packet(), dxa_read_packet(), ebml_read_ascii(), ebml_read_binary(), ff_ape_parse_tag(), ff_asf_parse_packet(), ff_id3v1_read(), ff_id3v2_parse(), ff_id3v2_read(), ff_mov_read_esds(), ff_probe_input_buffer(), ff_rm_parse_packet(), ffm_read_data(), ffm_read_header(), film_read_header(), film_read_packet(), flac_read_header(), flic_read_header(), flic_read_packet(), flv_get_extradata(), fourxm_read_header(), fourxm_read_packet(), get_aiff_header(), get_codec_data(), get_guid(), get_meta(), get_pts(), get_riff(), get_str(), idcin_read_header(), idcin_read_packet(), iff_read_header(), iff_read_packet(), img_read_packet(), ipmovie_read_header(), klv_read_packet(), load_ipmovie_packet(), mmf_read_packet(), mov_read_chapters(), mov_read_chpl(), mov_read_cmov(), mov_read_dref(), mov_read_extradata(), mov_read_ftyp(), mov_read_glbl(), mov_read_smi(), mov_read_strf(), mov_read_stsz(), mov_read_udta_string(), mov_read_wave(), 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(), oma_read_header(), process_ipmovie_chunk(), qcp_read_header(), r3d_read_red1(), read_frame(), read_header(), read_kuki_chunk(), read_packet(), read_part_of_packet(), read_seek(), read_ttag(), rl2_read_header(), rm_assemble_video_frame(), rm_read_audio_stream_info(), rm_read_extradata(), roq_read_header(), roq_read_packet(), sdp_read_header(), seq_fill_buffer(), seq_read_packet(), siff_read_packet(), smacker_read_header(), smacker_read_packet(), sox_read_header(), str_read_header(), str_read_packet(), swf_read_packet(), thp_read_header(), tta_read_header(), vc1t_read_header(), vmd_read_header(), vmd_read_packet(), vqf_read_packet(), wc3_read_header(), wc3_read_packet(), wsaud_read_header(), wsaud_read_packet(), wsvqa_read_header(), wsvqa_read_packet(), wv_read_block_header(), wv_read_packet(), yop_read_header(), and yop_read_packet().
int get_byte | ( | ByteIOContext * | s | ) |
Definition at line 373 of file aviobuf.c.
Referenced by aea_read_header(), amf_parse_object(), amr_read_packet(), ape_tag_read_field(), asf_read_frame_header(), asf_read_header(), asfrtp_parse_packet(), avi_read_header(), avs_read_packet(), bfi_read_packet(), cin_read_file_header(), cin_read_frame_header(), dv_read_header(), dxa_read_header(), ebml_read_num(), ebml_read_uint(), ff_asf_get_packet(), ff_asf_parse_packet(), ff_get_v(), ff_mov_read_esds(), ff_mp4_read_descr_len(), ffm_read_header(), ffm_resync(), 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_line(), get_pts(), get_size(), get_str(), get_str8(), get_strl(), get_strz(), get_token(), gxf_header(), gxf_material_tags(), gxf_packet(), gxf_resync_media(), gxf_track_tags(), iff_read_header(), ipmovie_read_header(), klv_decode_ber_length(), mmf_read_header(), mov_read_chpl(), mov_read_ctts(), mov_read_dref(), mov_read_elst(), mov_read_hdlr(), mov_read_mac_string(), 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_tfhd(), mov_read_tkhd(), mov_read_trex(), mov_read_trun(), mp4_read_descr(), mpc8_read_header(), mpc_read_header(), mpegps_psm_parse(), mpegps_read_header(), mpegps_read_packet(), mpegps_read_pes_header(), msnwc_tcp_read_header(), mtv_read_header(), mxf_read_pixel_layout(), mxf_read_sync(), nc_read_packet(), 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(), qcp_read_header(), qcp_read_packet(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), read_arbitary(), read_braindead_odml_indx(), read_frame(), read_header(), read_line(), read_part_of_packet(), read_ttag(), rm_assemble_video_frame(), rm_read_audio_stream_info(), rm_read_dts(), rm_read_metadata(), seq_parse_frame_data(), skip_reserved(), smacker_read_header(), smacker_read_packet(), sol_read_header(), swf_read_header(), swf_read_packet(), sync(), tmv_read_header(), vc1t_read_header(), vc1t_read_packet(), vid_read_packet(), voc_get_packet(), wv_read_block_header(), yop_read_header(), yuv4_read_header(), and yuv4_read_packet().
unsigned long get_checksum | ( | ByteIOContext * | s | ) |
Definition at line 354 of file aviobuf.c.
Referenced by decode_info_header(), decode_main_header(), decode_stream_header(), decode_syncpoint(), find_and_decode_index(), get_packetheader(), ogg_update_checksum(), put_packet(), and write_packet().
unsigned int get_le16 | ( | ByteIOContext * | s | ) |
unsigned int get_le24 | ( | ByteIOContext * | s | ) |
Definition at line 477 of file aviobuf.c.
Referenced by mpc_read_header(), mtv_read_header(), read_header(), vc1t_read_header(), vc1t_read_packet(), voc_get_packet(), and wv_read_block_header().
unsigned int get_le32 | ( | ByteIOContext * | s | ) |
uint64_t get_le64 | ( | ByteIOContext * | s | ) |
Definition at line 493 of file aviobuf.c.
Referenced by asf_build_simple_index(), asf_read_frame_header(), asf_read_header(), get_value(), nuv_header(), ogg_read_page(), read_braindead_odml_indx(), and sox_read_header().
int get_partial_buffer | ( | ByteIOContext * | s, | |
unsigned char * | buf, | |||
int | size | |||
) |
Reads size bytes from ByteIOContext into buf.
This reads at most 1 packet. If that is not enough fewer bytes will be returned.
char* get_strz | ( | ByteIOContext * | s, | |
char * | buf, | |||
int | maxlen | |||
) |
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 361 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, | |||
int64_t(*)(void *opaque, int64_t offset, int whence) | seek | |||
) |
Definition at line 42 of file aviobuf.c.
Referenced by asf_write_header(), asfrtp_parse_packet(), av_alloc_put_byte(), flush_packet(), init_packetizer(), matroska_ebmlnum_uint(), matroska_read_header(), mov_read_cmov(), rdt_load_mdpr(), rdt_parse_packet(), and url_fdopen().
void put_be16 | ( | ByteIOContext * | s, | |
unsigned int | val | |||
) |
Definition at line 278 of file aviobuf.c.
Referenced by aiff_write_header(), ascii_to_wc(), daud_write_packet(), ff_isom_write_avcc(), ff_rtp_send_data(), ffm_write_header(), flush_packet(), gxf_write_material_data_section(), gxf_write_media_preamble(), gxf_write_track_description(), gxf_write_track_description_section(), gxf_write_umf_media_description(), mkv_write_ass_blocks(), mkv_write_block(), mov_write_3gp_udta_tag(), mov_write_amr_tag(), mov_write_audio_tag(), mov_write_enda_tag(), mov_write_esds_tag(), mov_write_gmhd_tag(), mov_write_hmhd_tag(), mov_write_mdhd_tag(), mov_write_mvhd_tag(), mov_write_psp_udta_tag(), mov_write_rtp_tag(), mov_write_smhd_tag(), mov_write_string_data_tag(), mov_write_subtitle_tag(), mov_write_tkhd_tag(), mov_write_trkn_tag(), mov_write_uuidprof_tag(), mov_write_uuidusmt_tag(), mov_write_video_tag(), mxf_write_local_tag(), mxf_write_local_tag_utf16(), mxf_write_partition(), mxf_write_preface(), mxf_write_primer_pack(), mxf_write_system_item(), mxf_write_timecode_component(), mxf_write_uuid(), mxf_write_wav_common(), output_match(), put_amf_string(), put_be24(), put_padding_packet(), put_str(), put_timestamp(), rm_write_video(), rtp_check_and_send_back_rr(), rtp_send_punch_packets(), rv10_write_header(), spdif_write_packet(), updateSize(), write_hint_packets(), write_packet_header(), and write_trailer().
void put_be24 | ( | ByteIOContext * | s, | |
unsigned int | val | |||
) |
Definition at line 290 of file aviobuf.c.
Referenced by flac_write_block_padding(), flv_write_header(), flv_write_packet(), gxf_write_media_preamble(), klv_encode_ber4_length(), mov_write_mdhd_tag(), mov_write_mvhd_tag(), mov_write_tkhd_tag(), mxf_write_metadata_key(), and mxf_write_umid().
void put_be32 | ( | ByteIOContext * | s, | |
unsigned int | val | |||
) |
Definition at line 244 of file aviobuf.c.
Referenced by aiff_write_header(), aiff_write_trailer(), ff_avc_parse_nal_units(), ff_rtp_send_data(), ffm_write_header(), 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_packet(), mov_write_3gp_udta_tag(), mov_write_ac3_tag(), mov_write_amr_tag(), mov_write_audio_tag(), mov_write_avcc_tag(), mov_write_avid_tag(), mov_write_chpl_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_gmhd_tag(), mov_write_hdlr_tag(), mov_write_hmhd_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_nmhd_tag(), mov_write_psp_udta_tag(), mov_write_rtp_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_subtitle_tag(), mov_write_svq3_tag(), mov_write_tkhd_tag(), mov_write_trailer(), mov_write_trak_tag(), mov_write_tref_tag(), mov_write_trkn_tag(), mov_write_udta_sdp(), mov_write_udta_tag(), mov_write_uuid_tag_ipod(), 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(), mxf_write_cdci_common(), mxf_write_essence_container_data(), mxf_write_generic_desc(), mxf_write_generic_sound_common(), mxf_write_index_table_segment(), mxf_write_mpegvideo_desc(), mxf_write_multi_descriptor(), mxf_write_partition(), mxf_write_primer_pack(), mxf_write_random_index_pack(), mxf_write_refs_count(), mxf_write_structural_component(), mxf_write_system_item(), mxf_write_track(), mxf_write_wav_common(), ogg_update_checksum(), output_match(), put_be64(), put_padding_packet(), rm_write_trailer(), rm_write_video(), rtp_check_and_send_back_rr(), rtp_send_punch_packets(), rv10_write_header(), sox_write_header(), swf_write_video(), updatePacketSize(), updateSize(), write_hint_packets(), write_packet_header(), and write_trailer().
void put_be64 | ( | ByteIOContext * | s, | |
uint64_t | val | |||
) |
Definition at line 266 of file aviobuf.c.
Referenced by ffm_write_header(), flush_packet(), mov_write_audio_tag(), mov_write_avid_tag(), mov_write_chpl_tag(), mov_write_mdhd_tag(), mov_write_mvhd_tag(), mov_write_stco_tag(), mov_write_tkhd_tag(), mov_write_trailer(), mov_write_vmhd_tag(), mxf_write_common_fields(), mxf_write_identification(), mxf_write_index_table_segment(), mxf_write_package(), mxf_write_partition(), mxf_write_preface(), mxf_write_random_index_pack(), mxf_write_structural_component(), mxf_write_system_item(), mxf_write_timecode_component(), mxf_write_track(), put_amf_double(), put_ebml_float(), put_packet(), sox_write_header(), and sox_write_trailer().
void put_buffer | ( | ByteIOContext * | s, | |
const unsigned char * | buf, | |||
int | size | |||
) |
Definition at line 115 of file aviobuf.c.
Referenced by adts_write_packet(), aiff_write_header(), aiff_write_packet(), asf_write_header1(), asfrtp_parse_packet(), avi_write_packet(), crc_write_trailer(), daud_write_packet(), ff_avc_parse_nal_units(), ff_flac_write_header(), ff_isom_write_avcc(), ff_mov_write_packet(), ff_rtp_send_data(), ffm_write_header(), flac_write_block_comment(), flac_write_packet(), flac_write_trailer(), flush_packet(), flv_write_header(), flv_write_packet(), framecrc_write_packet(), gif_image_write_header(), gif_image_write_image(), gxf_write_mpeg_auxiliary(), gxf_write_packet(), gxf_write_umf_media_description(), http_send_data(), matroska_read_header(), mkv_flush_dynbuf(), mkv_write_ass_blocks(), mkv_write_block(), mkv_write_codecprivate(), mov_write_3gp_udta_tag(), mov_write_ac3_tag(), mov_write_chpl_tag(), mov_write_esds_tag(), mov_write_extradata_tag(), mov_write_glbl_tag(), mov_write_hdlr_tag(), mov_write_string_data_tag(), mov_write_subtitle_tag(), mov_write_udta_sdp(), mov_write_udta_tag(), mov_write_video_tag(), mpegts_insert_null_packet(), mpegts_insert_pcr_only(), mpegts_write_pes(), mpjpeg_write_header(), mpjpeg_write_packet(), mxf_write_cdci_common(), mxf_write_common_fields(), mxf_write_d10_video_packet(), mxf_write_essence_container_refs(), mxf_write_generic_desc(), mxf_write_index_table_segment(), mxf_write_klv_fill(), mxf_write_metadata_key(), mxf_write_multi_descriptor(), mxf_write_packet(), mxf_write_partition(), mxf_write_preface(), mxf_write_primer_pack(), mxf_write_random_index_pack(), mxf_write_system_item(), mxf_write_track(), mxf_write_umid(), mxf_write_uuid(), ogg_write_page(), output_immediate(), put_amf_string(), put_ebml_binary(), put_frame(), put_guid(), put_packet(), put_str(), put_str16(), put_strz(), put_swf_matrix(), put_swf_rect(), put_xiph_codecpriv(), rm_write_audio(), rm_write_video(), rtp_check_and_send_back_rr(), rtsp_cmd_describe(), section_write_packet(), sox_write_header(), sox_write_packet(), spdif_write_packet(), swf_write_header(), swf_write_video(), vc1test_write_header(), vc1test_write_packet(), voc_write_header(), voc_write_packet(), write_globalinfo(), write_header(), write_hint_packets(), write_mainheader(), write_packet(), write_streamheader(), write_streaminfo(), write_trailer(), and xiph_handle_packet().
void put_byte | ( | ByteIOContext * | s, | |
int | b | |||
) |
Definition at line 108 of file aviobuf.c.
Referenced by aiff_write_trailer(), asf_write_header1(), avi_write_header(), avi_write_info_tag(), avi_write_ix(), avi_write_packet(), ff_isom_write_avcc(), ff_rtp_send_data(), ffm_write_header(), flac_write_block_padding(), flush_packet(), flv_write_header(), flv_write_packet(), gif_image_write_header(), gif_image_write_image(), gif_write_trailer(), gif_write_video(), gxf_write_map_packet(), gxf_write_material_data_section(), gxf_write_media_preamble(), gxf_write_mpeg_auxiliary(), gxf_write_packet_header(), gxf_write_padding(), gxf_write_timecode_auxiliary(), gxf_write_track_description(), gxf_write_umf_media_description(), gxf_write_umf_packet(), klv_encode_ber4_length(), klv_encode_ber_length(), mkv_write_ass_blocks(), mkv_write_block(), mov_write_3gp_udta_tag(), mov_write_amr_tag(), mov_write_chpl_tag(), mov_write_d263_tag(), mov_write_esds_tag(), mov_write_hdlr_tag(), mov_write_itunes_hdlr_tag(), mov_write_mdhd_tag(), mov_write_mvhd_tag(), mov_write_svq3_tag(), mov_write_tkhd_tag(), mov_write_video_tag(), mxf_write_cdci_common(), mxf_write_d10_audio_packet(), mxf_write_d10_video_packet(), mxf_write_generic_sound_common(), mxf_write_index_table_segment(), mxf_write_klv_fill(), mxf_write_mpegvideo_desc(), mxf_write_system_item(), mxf_write_timecode_component(), mxf_write_umid(), ogg_write_page(), output_immediate(), output_match(), put_amf_bool(), put_amf_double(), put_be16(), put_be24(), put_be32(), put_ebml_id(), put_ebml_num(), put_ebml_size_unknown(), put_ebml_uint(), put_ebml_void(), put_le16(), put_le24(), put_le32(), put_padding_packet(), put_payload_header(), put_payload_parsing_info(), put_str(), put_str8(), put_strz(), put_tag(), put_timestamp(), put_v(), put_vcd_padding_sector(), put_xiph_codecpriv(), put_xiph_size(), putDescr(), rm_write_video(), rtp_check_and_send_back_rr(), rtp_send_punch_packets(), rv10_write_header(), sox_write_header(), swf_write_header(), swf_write_video(), vc1test_write_header(), voc_write_packet(), voc_write_trailer(), write_header(), write_packet(), write_packet_header(), write_streamheader(), and write_trailer().
void put_flush_packet | ( | ByteIOContext * | s | ) |
Definition at line 130 of file aviobuf.c.
Referenced by adts_write_packet(), aiff_write_header(), aiff_write_trailer(), asf_write_header(), asf_write_trailer(), avi_write_ix(), avi_write_packet(), avi_write_trailer(), crc_write_trailer(), daud_write_packet(), ff_mov_write_packet(), ff_rtp_send_data(), ffm_write_header(), ffm_write_trailer(), flac_write_packet(), flac_write_trailer(), flush_packet(), flv_write_packet(), framecrc_write_packet(), gif_write_header(), gif_write_trailer(), gif_write_video(), gxf_write_header(), gxf_write_packet(), gxf_write_trailer(), mkv_write_header(), mkv_write_trailer(), mov_write_header(), mov_write_trailer(), mpegts_write_end(), mpegts_write_header(), mpegts_write_pes(), mpjpeg_write_header(), mpjpeg_write_packet(), mxf_write_footer(), mxf_write_packet(), mxf_write_partition(), ogg_write_page(), put_vcd_padding_sector(), rm_write_audio(), rm_write_header(), rm_write_trailer(), rm_write_video(), rtp_check_and_send_back_rr(), rtp_send_punch_packets(), sox_write_header(), sox_write_trailer(), spdif_write_packet(), swf_write_header(), swf_write_trailer(), swf_write_video(), vc1test_write_packet(), vc1test_write_trailer(), write_header(), write_packet(), and write_trailer().
void put_le16 | ( | ByteIOContext * | s, | |
unsigned int | val | |||
) |
Definition at line 272 of file aviobuf.c.
Referenced by asf_write_header1(), asf_write_index(), avi_write_header(), avi_write_ix(), ff_put_str16_nolen(), ffm_write_header(), gif_image_write_header(), gif_image_write_image(), gif_write_video(), gxf_write_umf_material_description(), gxf_write_umf_media_description(), gxf_write_umf_track_description(), matroska_read_header(), mxf_write_d10_audio_packet(), put_chunk(), put_le24(), put_payload_header(), put_payload_parsing_info(), put_str16(), put_swf_end_tag(), put_swf_tag(), spdif_write_packet(), swf_write_header(), swf_write_trailer(), swf_write_video(), voc_write_header(), and voc_write_packet().
void put_le24 | ( | ByteIOContext * | s, | |
unsigned int | val | |||
) |
Definition at line 284 of file aviobuf.c.
Referenced by vc1test_write_header(), vc1test_write_trailer(), and voc_write_packet().
void put_le32 | ( | ByteIOContext * | s, | |
unsigned int | val | |||
) |
Definition at line 236 of file aviobuf.c.
Referenced by aiff_write_header(), asf_write_header1(), asf_write_index(), avi_write_counters(), avi_write_header(), avi_write_idx1(), avi_write_info_tag(), avi_write_ix(), avi_write_packet(), avi_write_trailer(), ffm_write_header(), gxf_write_flt_packet(), gxf_write_umf_material_description(), gxf_write_umf_media_audio(), gxf_write_umf_media_description(), gxf_write_umf_media_mpeg(), gxf_write_umf_media_timecode(), gxf_write_umf_payload(), matroska_read_header(), mov_write_audio_tag(), mov_write_subtitle_tag(), mov_write_tref_tag(), mov_write_video_tag(), mov_write_wave_tag(), mxf_write_d10_audio_packet(), ogg_write_page(), put_chunk(), put_le64(), put_packet(), put_payload_header(), put_payload_parsing_info(), put_swf_end_tag(), put_swf_tag(), sox_write_header(), swf_write_header(), swf_write_trailer(), vc1test_write_header(), vc1test_write_packet(), voc_write_packet(), write_packet(), and write_streamheader().
void put_le64 | ( | ByteIOContext * | s, | |
uint64_t | val | |||
) |
Definition at line 260 of file aviobuf.c.
Referenced by asf_write_header1(), asf_write_index(), avi_write_header(), avi_write_ix(), end_header(), gxf_write_track_description(), gxf_write_umf_material_description(), gxf_write_umf_media_audio(), ogg_write_page(), put_header(), sox_write_header(), and sox_write_trailer().
void put_strz | ( | ByteIOContext * | s, | |
const char * | buf | |||
) |
Definition at line 252 of file aviobuf.c.
Referenced by avi_write_info_tag(), and ffm_write_header().
void put_tag | ( | ByteIOContext * | s, | |
const char * | tag | |||
) |
Definition at line 296 of file aviobuf.c.
Referenced by aiff_write_header(), avi_start_new_riff(), avi_write_header(), avi_write_idx1(), avi_write_info_tag(), avi_write_ix(), avi_write_trailer(), flv_write_header(), gif_image_write_header(), gxf_write_material_data_section(), gxf_write_track_description(), mov_write_3gp_udta_tag(), mov_write_ac3_tag(), mov_write_amr_tag(), mov_write_avcc_tag(), mov_write_avid_tag(), mov_write_chpl_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_gmhd_tag(), mov_write_hdlr_tag(), mov_write_hmhd_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_nmhd_tag(), mov_write_rtp_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_tref_tag(), mov_write_trkn_tag(), mov_write_udta_sdp(), mov_write_udta_tag(), mov_write_uuid_tag_ipod(), 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_write_page(), rv10_write_header(), sox_write_header(), swf_write_header(), and swf_write_video().
attribute_deprecated int register_protocol | ( | URLProtocol * | protocol | ) |
int udp_get_file_handle | ( | URLContext * | h | ) |
int udp_get_local_port | ( | URLContext * | h | ) |
Return the local port used by the UDP connexion.
s1 | media file context |
Definition at line 286 of file udp.c.
Referenced by rtp_get_local_port(), rtp_get_local_rtcp_port(), rtp_get_local_rtp_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: '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
s1 | media file context | |
uri | of the remote server |
Definition at line 263 of file udp.c.
Referenced by rtp_set_remote_url(), and udp_open().
int url_close | ( | URLContext * | h | ) |
Closes the resource accessed by the URLContext h, and frees the memory used by it.
Definition at line 209 of file avio.c.
Referenced by close_connection(), concat_close(), concat_open(), ff_rtsp_close_streams(), gopher_close(), http_close(), http_open_cnx(), http_seek(), rtmp_close(), rtp_close(), rtp_new_av_stream(), rtp_open(), rtsp_write_close(), rtsp_write_header(), url_exist(), url_fclose(), and url_fopen().
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().
s | IO context | |
pbuffer | pointer to a byte buffer |
Referenced by asf_write_header1(), asfrtp_free_context(), asfrtp_parse_packet(), close_connection(), compute_status(), ff_avc_parse_nal_units_buf(), ff_mov_add_hinted_packet(), ff_mov_close_hinting(), ff_mov_init_hinting(), ff_rtsp_close_streams(), free_fragment_if_needed(), http_prepare_data(), http_send_data(), mkv_flush_dynbuf(), mkv_write_codecprivate(), mov_write_udta_tag(), put_packet(), put_str16(), rtp_check_and_send_back_rr(), rtp_new_av_stream(), rtp_send_punch_packets(), rtsp_parse_request(), rtsp_rtp_mux_open(), tcp_write_packet(), write_globalinfo(), write_headers(), write_streaminfo(), and xiph_handle_packet().
int url_exist | ( | const char * | url | ) |
Returns a non-zero value if the resource indicated by url exists, 0 otherwise.
Definition at line 223 of file avio.c.
Referenced by build_feed_streams(), find_image_range(), and opt_output_file().
int url_fclose | ( | ByteIOContext * | s | ) |
Definition at line 686 of file aviobuf.c.
Referenced by av_close_input_file(), av_exit(), av_open_input_file(), build_feed_streams(), ff_rtsp_close_streams(), img_read_packet(), main(), mov_read_close(), and rtsp_rtp_mux_open().
int url_fdopen | ( | ByteIOContext ** | s, | |
URLContext * | h | |||
) |
Creates and initializes a ByteIOContext for accessing the resource referenced by the URLContext h.
s | Used to return the pointer to the created ByteIOContext. In case of failure the pointed to value is set to NULL. |
Definition at line 558 of file aviobuf.c.
Referenced by rtsp_rtp_mux_open(), and url_fopen().
int url_feof | ( | ByteIOContext * | s | ) |
feof() equivalent for ByteIOContext.
Definition at line 222 of file aviobuf.c.
Referenced by amr_read_packet(), ape_read_packet(), asf_read_header(), avi_load_index(), avi_read_header(), avi_read_idx1(), bfi_read_packet(), cin_read_frame_header(), daud_packet(), decode_thread(), dv_read_header(), dxa_read_header(), dxa_read_packet(), ebml_read_num(), ff_asf_get_packet(), ff_asf_parse_packet(), ffm_resync(), find_any_startcode(), find_next_start_code(), flac_read_header(), flv_read_packet(), fourxm_read_packet(), get_buffer(), get_codec_data(), get_partial_buffer(), get_swf_tag(), get_tag(), gxf_packet(), idcin_read_packet(), iff_read_header(), img_read_packet(), ipmovie_read_header(), mmf_read_packet(), mov_read_default(), mov_read_packet(), mpc8_read_header(), mpc8_read_packet(), mpegps_read_pes_header(), msnwc_tcp_read_header(), mxf_read_header(), mxf_read_packet(), mxf_read_sync(), nc_read_packet(), nsv_parse_NSVf_header(), nsv_read_chunk(), nsv_resync(), nut_read_packet(), nuv_packet(), process_ipmovie_chunk(), qcp_read_packet(), read_braindead_odml_indx(), read_header(), read_packet(), rm_read_header(), rm_read_packet(), roq_read_packet(), smacker_read_packet(), sol_read_packet(), sox_read_packet(), str_read_packet(), sync(), tmv_read_packet(), txd_read_packet(), vc1t_read_packet(), vid_read_packet(), wc3_read_header(), wc3_read_packet(), and wv_read_packet().
int url_ferror | ( | ByteIOContext * | s | ) |
Definition at line 229 of file aviobuf.c.
Referenced by av_interleaved_write_frame(), av_write_frame(), av_write_trailer(), cin_read_frame_header(), decode_thread(), ff_asf_get_packet(), get_buffer(), and get_partial_buffer().
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.
s | buffered file handle |
Definition at line 736 of file aviobuf.c.
Referenced by rtp_write_header().
int url_fgetc | ( | ByteIOContext * | s | ) |
Definition at line 386 of file aviobuf.c.
Referenced by mpegts_resync(), ogg_read_page(), and url_fgets().
char* url_fgets | ( | ByteIOContext * | s, | |
char * | buf, | |||
int | buf_size | |||
) |
URLContext* url_fileno | ( | ByteIOContext * | s | ) |
int64_t url_filesize | ( | URLContext * | h | ) |
int url_fopen | ( | ByteIOContext ** | s, | |
const char * | url, | |||
int | flags | |||
) |
Creates and initializes a ByteIOContext for accessing the resource indicated by url.
s | Used to return the pointer to the created ByteIOContext. In case of failure the pointed to value is set to NULL. | |
flags | flags which control how the resource indicated by url is to be opened |
Definition at line 670 of file aviobuf.c.
Referenced by av_open_input_file(), build_feed_streams(), img_read_packet(), main(), mov_open_dref(), and opt_output_file().
int url_fprintf | ( | ByteIOContext * | s, | |
const char * | fmt, | |||
... | ||||
) |
Referenced by compute_status(), fmt_bytecount(), rtsp_cmd_describe(), rtsp_cmd_options(), rtsp_cmd_pause(), rtsp_cmd_play(), rtsp_cmd_setup(), rtsp_cmd_teardown(), rtsp_reply_error(), and rtsp_reply_header().
int64_t url_fseek | ( | ByteIOContext * | s, | |
int64_t | offset, | |||
int | whence | |||
) |
fseek() equivalent for ByteIOContext.
Definition at line 136 of file aviobuf.c.
Referenced by adjust_write_index(), aiff_read_header(), aiff_write_trailer(), ape_read_header(), ape_read_packet(), asf_build_simple_index(), asf_read_header(), asf_read_pts(), asf_read_seek(), asf_write_header1(), asf_write_trailer(), au_read_header(), av_estimate_timings_from_pts(), 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_write_counters(), avi_write_ix(), avi_write_trailer(), bfi_read_header(), dv_read_header(), dv_read_seek(), dxa_read_header(), dxa_read_packet(), ea_read_packet(), ebml_parse_elem(), end_ebml_master(), end_header(), ff_ape_parse_tag(), ff_asf_get_packet(), ff_gen_syncpoint_search(), ff_id3v1_read(), ff_id3v2_parse(), ff_id3v2_read(), ff_restore_parser_state(), ffm_read_data(), ffm_seek1(), film_read_packet(), find_and_decode_index(), find_any_startcode(), flac_read_header(), flac_write_trailer(), flic_read_header(), flic_read_packet(), flv_read_header(), flv_read_packet(), flv_write_header(), flv_write_trailer(), fourxm_read_header(), fourxm_read_packet(), get_aiff_header(), guess_ni_flag(), gxf_read_timestamp(), gxf_resync_media(), gxf_seek(), gxf_write_trailer(), gxf_write_umf_media_description(), idcin_read_packet(), iff_read_header(), ipmovie_read_header(), load_ipmovie_packet(), matroska_execute_seekhead(), matroska_read_seek(), mkv_write_seekhead(), mkv_write_trailer(), mmf_read_header(), mov_read_chapters(), mov_read_dref(), mov_read_meta(), mov_write_stsc_tag(), mov_write_stss_tag(), mov_write_trailer(), mpc8_handle_chunk(), mpc8_parse_seektable(), mpc8_read_seek(), mpc_read_header(), 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(), mxf_write_footer(), mxf_write_partition(), nsv_parse_NSVf_header(), nsv_read_seek(), nut_read_header(), nut_read_packet(), ogg_get_length(), ogg_read_timestamp(), ogg_restore(), ogg_update_checksum(), oma_read_header(), process_ea_header(), process_ipmovie_chunk(), put_swf_end_tag(), pva_read_timestamp(), r3d_read_header(), r3d_seek(), rdt_load_mdpr(), read_braindead_odml_indx(), read_frame(), read_header(), read_packet(), read_seek(), rl2_read_packet(), rm_read_dts(), rm_read_header(), rm_read_index(), rm_write_trailer(), roq_read_packet(), rpl_read_header(), rpl_read_packet(), seq_fill_buffer(), seq_init_frame_buffers(), seq_parse_frame_data(), seq_read_packet(), skip_reserved(), smacker_read_packet(), sox_write_trailer(), str_read_header(), swf_write_trailer(), thp_read_header(), thp_read_packet(), tmv_read_seek(), tta_read_header(), tta_read_seek(), updatePacketSize(), updateSize(), url_fskip(), url_ftell(), vc1test_write_trailer(), vid_read_header(), vid_read_packet(), vmd_read_header(), vmd_read_packet(), vqf_read_seek(), wc3_read_header(), wc3_read_packet(), write_hint_packets(), wsvqa_read_header(), wsvqa_read_packet(), wv_read_block_header(), wv_read_header(), wv_read_seek(), yop_read_header(), and yop_read_seek().
int64_t url_fsize | ( | ByteIOContext * | s | ) |
Gets the filesize.
Definition at line 203 of file aviobuf.c.
Referenced by av_estimate_timings(), av_gen_search(), av_seek(), av_seek_frame_byte(), avi_read_header(), dv_frame_offset(), event_loop(), ff_ape_parse_tag(), ff_id3v1_read(), ffm_read_header(), find_and_decode_index(), flv_read_packet(), gxf_write_material_data_section(), img_read_packet(), mov_read_default(), mov_read_header(), ogg_get_length(), print_report(), r3d_read_header(), read_braindead_odml_indx(), read_header(), voc_get_packet(), and yop_read_seek().
void url_fskip | ( | ByteIOContext * | s, | |
int64_t | offset | |||
) |
Skip given number of bytes forward.
offset | number of bytes |
Definition at line 193 of file aviobuf.c.
Referenced by aea_read_header(), aiff_read_header(), amf_get_string(), amf_parse_object(), ape_read_header(), asf_read_frame_header(), asf_read_header(), asfrtp_parse_packet(), avi_read_header(), avi_write_ix(), avi_write_trailer(), avs_read_header(), avs_read_packet(), bfi_read_header(), cdata_read_header(), decode_frame(), dxa_read_header(), ea_read_packet(), ff_asf_parse_packet(), ff_id3v2_parse(), ff_rm_read_mdpr_codecdata(), flv_read_header(), flv_read_packet(), get_codec_data(), get_dts(), get_meta(), get_str16_nolen(), get_tag(), gxf_header(), gxf_material_tags(), gxf_packet(), gxf_read_index(), gxf_track_tags(), iff_read_header(), lmlm4_read_packet(), matroska_read_header(), mov_read_default(), mov_read_dref(), mov_read_mvhd(), mov_read_strf(), mov_read_stsd(), 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(), msnwc_tcp_read_packet(), 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(), nc_read_packet(), nsv_read_chunk(), nuv_header(), nuv_packet(), process_audio_header_eacs(), process_ea_header(), process_video_header_mdec(), process_video_header_vp6(), qcp_read_header(), qcp_read_packet(), r3d_read_packet(), r3d_read_red1(), r3d_read_reos(), rdt_load_mdpr(), read_header(), read_kuki_chunk(), read_packet(), read_part_of_packet(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_dts(), rm_read_header(), rm_read_index(), siff_parse_soun(), siff_parse_vbv1(), siff_read_header(), sox_read_header(), swf_read_header(), swf_read_packet(), sync(), tmv_read_packet(), tta_read_header(), txd_read_packet(), vc1t_read_header(), voc_get_packet(), voc_read_header(), vqf_read_header(), wv_read_block_header(), xa_read_header(), yop_read_header(), and yop_read_packet().
int64_t url_ftell | ( | ByteIOContext * | s | ) |
ftell() equivalent for ByteIOContext.
Definition at line 198 of file aviobuf.c.
Referenced by adjust_write_index(), aiff_read_header(), aiff_read_packet(), aiff_write_header(), aiff_write_trailer(), amf_parse_object(), amr_read_packet(), asf_build_simple_index(), asf_read_header(), asf_write_header1(), asf_write_trailer(), asfrtp_parse_packet(), av_find_stream_info(), av_get_packet(), av_open_input_stream(), av_transcode(), avi_load_index(), avi_read_header(), avi_read_info(), avi_write_counters(), avi_write_header(), avi_write_ix(), avi_write_packet(), avi_write_trailer(), avs_read_audio_packet(), decode_frame(), decode_frame_header(), decode_info_header(), decode_main_header(), decode_stream_header(), decode_syncpoint(), dv_read_header(), dxa_read_header(), dxa_read_packet(), ebml_level_end(), ebml_parse_elem(), ebml_read_binary(), ebml_read_master(), ebml_read_num(), end_ebml_master(), end_header(), event_loop(), ff_asf_get_packet(), ff_asf_parse_packet(), ff_id3v2_parse(), ff_mov_write_packet(), ff_rm_read_mdpr_codecdata(), ff_store_parser_state(), ff_wms_parse_sdp_a_line(), ffm_is_avail_data(), ffm_read_data(), ffm_read_header(), ffm_read_packet(), ffm_write_header(), film_read_packet(), find_and_decode_index(), find_startcode(), flac_write_trailer(), flic_read_packet(), flush_packet(), flv_read_packet(), flv_write_header(), flv_write_trailer(), fourxm_read_packet(), get_riff(), guess_ni_flag(), gxf_read_timestamp(), gxf_resync_media(), gxf_write_eos_packet(), gxf_write_flt_packet(), gxf_write_map_packet(), gxf_write_material_data_section(), gxf_write_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(), handle_packet(), iff_read_header(), ipmovie_read_header(), iss_read_header(), iss_read_packet(), klv_read_packet(), matroska_execute_seekhead(), matroska_parse_cluster(), mkv_start_seekhead(), mkv_write_ass_blocks(), mkv_write_block(), mkv_write_chapters(), mkv_write_cues(), mkv_write_header(), mkv_write_packet(), mkv_write_seekhead(), mkv_write_tracks(), mkv_write_trailer(), mov_read_chapters(), mov_read_default(), mov_read_dref(), mov_read_header(), mov_read_moof(), mov_read_packet(), mov_read_stsd(), mov_write_3gp_udta_tag(), mov_write_audio_tag(), mov_write_avcc_tag(), mov_write_chpl_tag(), mov_write_dinf_tag(), mov_write_esds_tag(), mov_write_ftyp_tag(), mov_write_hdlr_tag(), mov_write_ilst_tag(), mov_write_mdat_tag(), mov_write_mdia_tag(), mov_write_meta_tag(), mov_write_minf_tag(), mov_write_moov_tag(), mov_write_rtp_tag(), mov_write_stbl_tag(), mov_write_stco_tag(), mov_write_string_tag(), mov_write_stsc_tag(), mov_write_stsd_tag(), mov_write_stss_tag(), mov_write_stsz_tag(), mov_write_subtitle_tag(), mov_write_trailer(), mov_write_trak_tag(), mov_write_uuidusmt_tag(), mov_write_video_tag(), mov_write_wave_tag(), mpc8_get_chunk_header(), mpc8_handle_chunk(), mpc8_read_header(), mpc8_read_packet(), mpc_read_header(), mpc_read_packet(), mpegps_read_pes_header(), mpegts_raw_read_packet(), mpegts_read_header(), mpegts_read_packet(), mtv_read_packet(), mxf_decrypt_triplet(), mxf_read_local_tags(), mxf_write_d10_video_packet(), mxf_write_footer(), mxf_write_klv_fill(), mxf_write_partition(), mxf_write_random_index_pack(), nsv_parse_NSVf_header(), nsv_resync(), nut_read_header(), nut_read_packet(), nuv_packet(), ogg_read_page(), 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(), put_swf_end_tag(), put_swf_tag(), pva_read_timestamp(), qcp_read_packet(), r3d_read_header(), r3d_read_reda(), r3d_read_redv(), rdt_parse_packet(), read_atom(), read_braindead_odml_indx(), read_frame(), read_header(), read_kuki_chunk(), read_packet(), read_pakt_chunk(), read_part_of_packet(), read_seek(), rm_assemble_video_frame(), rm_read_audio_stream_info(), rm_read_header(), rm_read_index(), rm_read_packet(), roq_read_packet(), skip_reserved(), smacker_read_header(), smacker_read_packet(), sox_write_trailer(), start_ebml_master(), str_read_packet(), swf_read_packet(), swf_write_header(), swf_write_trailer(), swf_write_video(), sync(), tta_read_header(), updatePacketSize(), updateSize(), vmd_read_packet(), voc_get_packet(), vqf_read_packet(), write_hint_packets(), write_packet(), wv_read_block_header(), wv_read_header(), wv_read_seek(), and yop_read_packet().
int url_get_file_handle | ( | URLContext * | h | ) |
Return the file descriptor associated with this URL.
For RTP, this will return only the RTP file descriptor, not the RTCP file descriptor. To get both, use rtp_get_file_handles().
Definition at line 247 of file avio.c.
Referenced by http_get_file_handle(), rtp_open(), and rtsp_write_packet().
void url_get_filename | ( | URLContext * | h, | |
char * | buf, | |||
int | buf_size | |||
) |
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.
h | file handle |
Definition at line 254 of file avio.c.
Referenced by http_prepare_data(), rtmp_open(), rtp_new_av_stream(), rtp_open(), and url_fdopen().
static int url_is_streamed | ( | ByteIOContext * | s | ) | [inline, static] |
Definition at line 407 of file avio.h.
Referenced by aiff_read_header(), aiff_write_trailer(), ape_read_header(), asf_write_header1(), asf_write_trailer(), av_estimate_timings(), avi_read_header(), avi_write_header(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), avi_write_trailer(), ff_id3v1_read(), ff_mov_write_packet(), ffm_read_header(), flac_write_trailer(), flv_read_packet(), gxf_write_header(), mkv_write_header(), mkv_write_packet(), mkv_write_trailer(), mov_find_next_sample(), mov_read_default(), mov_read_header(), mov_read_packet(), mov_write_header(), mpc_read_header(), mpegps_read_pes_header(), mxf_write_footer(), nut_read_header(), ogg_get_length(), r3d_read_header(), read_header(), read_seek(), rm_write_trailer(), rv10_write_header(), sox_write_trailer(), swf_write_trailer(), vc1test_write_trailer(), voc_get_packet(), wv_read_block_header(), and wv_read_header().
int url_open | ( | URLContext ** | h, | |
const char * | url, | |||
int | flags | |||
) |
Creates an URLContext for accessing to the resource indicated by url, and opens it.
puc | pointer to the location where, in case of success, the function puts the pointer to the created URLContext | |
flags | flags which control how the resource indicated by url is to be opened |
Definition at line 121 of file avio.c.
Referenced by concat_open(), gopher_open(), http_open_cnx(), rtmp_open(), rtp_new_av_stream(), rtp_open(), sdp_read_header(), url_exist(), and url_fopen().
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 | ) |
Open a write only memory stream.
s | new IO context |
Referenced by asf_write_header1(), asfrtp_parse_packet(), close_connection(), compute_status(), ff_avc_parse_nal_units_buf(), ff_mov_add_hinted_packet(), http_prepare_data(), http_send_data(), mkv_write_codecprivate(), mkv_write_packet(), mov_write_udta_tag(), put_str16(), rtp_check_and_send_back_rr(), rtp_send_punch_packets(), rtsp_parse_request(), write_globalinfo(), write_headers(), write_packet(), write_streaminfo(), and xiph_handle_packet().
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.
s | new IO context | |
max_packet_size | maximum packet size (must be > 0) |
Referenced by ff_mov_add_hinted_packet(), ff_mov_init_hinting(), http_prepare_data(), rtp_new_av_stream(), rtsp_rtp_mux_open(), and tcp_write_packet().
int url_open_protocol | ( | URLContext ** | puc, | |
struct URLProtocol * | up, | |||
const char * | url, | |||
int | flags | |||
) |
Creates an URLContext for accessing to the resource indicated by url, and opens it using the URLProtocol up.
puc | pointer to the location where, in case of success, the function puts the pointer to the created URLContext | |
flags | flags which control how the resource indicated by url is to be opened |
Definition at line 76 of file avio.c.
Referenced by url_open().
int url_poll | ( | URLPollEntry * | poll_table, | |
int | n, | |||
int | timeout | |||
) |
int url_read | ( | URLContext * | h, | |
unsigned char * | buf, | |||
int | size | |||
) |
Reads up to size bytes from the resource accessed by h, and stores the read bytes in buf.
Definition at line 155 of file avio.c.
Referenced by concat_read(), ff_rtmp_packet_read(), gopher_read(), http_getc(), http_read(), url_fdopen(), and url_read_complete().
int url_read_complete | ( | URLContext * | h, | |
unsigned char * | buf, | |||
int | size | |||
) |
Read as many bytes as possible (up to size), calling the read function multiple times if necessary.
Will also retry if the read function returns AVERROR(EAGAIN). This makes special short-read handling in applications unnecessary, if the return value is < size then it is certain there was either an error or the end of file was reached.
Definition at line 164 of file avio.c.
Referenced by ff_rtmp_packet_read(), and rtmp_handshake().
int url_resetbuf | ( | ByteIOContext * | s, | |
int | flags | |||
) |
Reset the buffer for reading or writing.
flags | URL_RDONLY to set up the buffer for reading, or URL_WRONLY to set up the buffer for writing. |
Definition at line 611 of file aviobuf.c.
Referenced by init_put_byte(), and url_setbufsize().
int64_t url_seek | ( | URLContext * | h, | |
int64_t | pos, | |||
int | whence | |||
) |
Changes the position that will be used by the next read/write operation on the resource accessed by h.
pos | specifies the new position to set | |
whence | specifies how pos should be interpreted, it must be one of SEEK_SET (seek from the beginning), SEEK_CUR (seek from the current position), SEEK_END (seek from the end), or AVSEEK_SIZE (return the filesize of the requested resource, pos is ignored). |
Definition at line 199 of file avio.c.
Referenced by concat_read(), concat_seek(), url_fdopen(), url_filesize(), and url_open_protocol().
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 270 of file avio.c.
Referenced by av_transcode(), decode_thread(), and main().
int url_setbufsize | ( | ByteIOContext * | s, | |
int | buf_size | |||
) |
Definition at line 595 of file aviobuf.c.
Referenced by av_open_input_file(), and fill_buffer().
int url_write | ( | URLContext * | h, | |
unsigned char * | buf, | |||
int | size | |||
) |
Definition at line 187 of file avio.c.
Referenced by ff_rtmp_packet_write(), gopher_write(), http_close(), http_send_data(), http_write(), rtmp_handshake(), rtp_check_and_send_back_rr(), rtp_send_punch_packets(), rtp_write(), tcp_write_packet(), and url_fdopen().
Definition at line 51 of file avio.c.
Referenced by av_find_stream_info(), rtp_read(), tcp_open(), tcp_read(), tcp_write(), udp_read(), and url_set_interrupt_cb().