libavformat/avio_internal.h File Reference

#include "avio.h"

Go to the source code of this file.

Functions

int ffio_init_context (AVIOContext *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))
int ffio_read_partial (AVIOContext *s, unsigned char *buf, int size)
 Read size bytes from AVIOContext into buf.
void ffio_fill (AVIOContext *s, int b, int count)
static av_always_inline void ffio_wfourcc (AVIOContext *pb, const uint8_t *s)
int ffio_rewind_with_probe_data (AVIOContext *s, unsigned char *buf, int buf_size)
 Rewind the AVIOContext using the specified buffer containing the first buf_size bytes of the file.


Function Documentation

void ffio_fill ( AVIOContext s,
int  b,
int  count 
)

Definition at line 144 of file aviobuf.c.

Referenced by put_nbyte(), and spdif_write_packet().

int ffio_init_context ( AVIOContext 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 
)

int ffio_read_partial ( AVIOContext s,
unsigned char *  buf,
int  size 
)

Read size bytes from AVIOContext into buf.

This reads at most 1 packet. If that is not enough fewer bytes will be returned.

Returns:
number of bytes read or AVERROR

Definition at line 606 of file aviobuf.c.

Referenced by ff_raw_read_partial_packet(), and get_partial_buffer().

int ffio_rewind_with_probe_data ( AVIOContext s,
unsigned char *  buf,
int  buf_size 
)

Rewind the AVIOContext 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.

Note:
s->buffer must overlap with buf or they can't be joined and the function fails
Parameters:
s The read-only AVIOContext to rewind
buf The probe buffer containing the first buf_size bytes of the file
buf_size The size of buf
Returns:
0 in case of success, a negative value corresponding to an AVERROR code in case of failure

Definition at line 840 of file aviobuf.c.

Referenced by av_probe_input_buffer().

static av_always_inline void ffio_wfourcc ( AVIOContext pb,
const uint8_t *  s 
) [static]

Definition at line 45 of file avio_internal.h.

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(), 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_pasp_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_tapt_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(), and sox_write_header().


Generated on Mon May 2 19:50:26 2011 for FFmpeg by  doxygen 1.5.6