libavcodec/bytestream.h File Reference

#include <stdint.h>
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Data Structures

struct  GetByteContext
struct  PutByteContext

Defines

#define DEF(type, name, bytes, read, write)
#define bytestream2_get_ne16   bytestream2_get_le16
#define bytestream2_get_ne24   bytestream2_get_le24
#define bytestream2_get_ne32   bytestream2_get_le32
#define bytestream2_get_ne64   bytestream2_get_le64
#define bytestream2_get_ne16u   bytestream2_get_le16u
#define bytestream2_get_ne24u   bytestream2_get_le24u
#define bytestream2_get_ne32u   bytestream2_get_le32u
#define bytestream2_get_ne64u   bytestream2_get_le64u
#define bytestream2_put_ne16   bytestream2_put_le16
#define bytestream2_put_ne24   bytestream2_put_le24
#define bytestream2_put_ne32   bytestream2_put_le32
#define bytestream2_put_ne64   bytestream2_put_le64
#define bytestream2_peek_ne16   bytestream2_peek_le16
#define bytestream2_peek_ne24   bytestream2_peek_le24
#define bytestream2_peek_ne32   bytestream2_peek_le32
#define bytestream2_peek_ne64   bytestream2_peek_le64

Functions

static av_always_inline void bytestream2_init (GetByteContext *g, const uint8_t *buf, int buf_size)
static av_always_inline void bytestream2_init_writer (PutByteContext *p, uint8_t *buf, int buf_size)
static av_always_inline
unsigned int 
bytestream2_get_bytes_left (GetByteContext *g)
static av_always_inline
unsigned int 
bytestream2_get_bytes_left_p (PutByteContext *p)
static av_always_inline void bytestream2_skip (GetByteContext *g, unsigned int size)
static av_always_inline void bytestream2_skipu (GetByteContext *g, unsigned int size)
static av_always_inline void bytestream2_skip_p (PutByteContext *p, unsigned int size)
static av_always_inline int bytestream2_tell (GetByteContext *g)
static av_always_inline int bytestream2_tell_p (PutByteContext *p)
static av_always_inline int bytestream2_size (GetByteContext *g)
static av_always_inline int bytestream2_size_p (PutByteContext *p)
static av_always_inline int bytestream2_seek (GetByteContext *g, int offset, int whence)
static av_always_inline int bytestream2_seek_p (PutByteContext *p, int offset, int whence)
static av_always_inline
unsigned int 
bytestream2_get_buffer (GetByteContext *g, uint8_t *dst, unsigned int size)
static av_always_inline
unsigned int 
bytestream2_get_bufferu (GetByteContext *g, uint8_t *dst, unsigned int size)
static av_always_inline
unsigned int 
bytestream2_put_buffer (PutByteContext *p, const uint8_t *src, unsigned int size)
static av_always_inline
unsigned int 
bytestream2_put_bufferu (PutByteContext *p, const uint8_t *src, unsigned int size)
static av_always_inline void bytestream2_set_buffer (PutByteContext *p, const uint8_t c, unsigned int size)
static av_always_inline void bytestream2_set_bufferu (PutByteContext *p, const uint8_t c, unsigned int size)
static av_always_inline
unsigned int 
bytestream2_get_eof (PutByteContext *p)
static av_always_inline
unsigned int 
bytestream_get_buffer (const uint8_t **b, uint8_t *dst, unsigned int size)
static av_always_inline void bytestream_put_buffer (uint8_t **b, const uint8_t *src, unsigned int size)

Variables

 uint64_t
 le64
 AV_RL64
AV_WL64_TMPL unsigned int
AV_WL64_TMPL unsigned le32
AV_WL64_TMPL unsigned AV_RL32
AV_WL64_TMPL unsigned
AV_WL32_TMPL unsigned 
le24
AV_WL64_TMPL unsigned
AV_WL32_TMPL unsigned 
AV_RL24
AV_WL64_TMPL unsigned
AV_WL32_TMPL unsigned
AV_WL24_TMPL unsigned 
le16
AV_WL64_TMPL unsigned
AV_WL32_TMPL unsigned
AV_WL24_TMPL unsigned 
AV_RL16
AV_WL64_TMPL unsigned
AV_WL32_TMPL unsigned
AV_WL24_TMPL unsigned
AV_WL16_TMPL 
be64
AV_WL64_TMPL unsigned
AV_WL32_TMPL unsigned
AV_WL24_TMPL unsigned
AV_WL16_TMPL 
AV_RB64
AV_WL64_TMPL unsigned
AV_WL32_TMPL unsigned
AV_WL24_TMPL unsigned
AV_WL16_TMPL AV_WB64_TMPL
unsigned 
be32
AV_WL64_TMPL unsigned
AV_WL32_TMPL unsigned
AV_WL24_TMPL unsigned
AV_WL16_TMPL AV_WB64_TMPL
unsigned 
AV_RB32
AV_WL64_TMPL unsigned
AV_WL32_TMPL unsigned
AV_WL24_TMPL unsigned
AV_WL16_TMPL AV_WB64_TMPL
unsigned AV_WB32_TMPL unsigned 
be24
AV_WL64_TMPL unsigned
AV_WL32_TMPL unsigned
AV_WL24_TMPL unsigned
AV_WL16_TMPL AV_WB64_TMPL
unsigned AV_WB32_TMPL unsigned 
AV_RB24
AV_WL64_TMPL unsigned
AV_WL32_TMPL unsigned
AV_WL24_TMPL unsigned
AV_WL16_TMPL AV_WB64_TMPL
unsigned AV_WB32_TMPL unsigned
AV_WB24_TMPL unsigned 
be16
AV_WL64_TMPL unsigned
AV_WL32_TMPL unsigned
AV_WL24_TMPL unsigned
AV_WL16_TMPL AV_WB64_TMPL
unsigned AV_WB32_TMPL unsigned
AV_WB24_TMPL unsigned 
AV_RB16
AV_WL64_TMPL unsigned
AV_WL32_TMPL unsigned
AV_WL24_TMPL unsigned
AV_WL16_TMPL AV_WB64_TMPL
unsigned AV_WB32_TMPL unsigned
AV_WB24_TMPL unsigned
AV_WB16_TMPL unsigned 
byte
AV_WL64_TMPL unsigned
AV_WL32_TMPL unsigned
AV_WL24_TMPL unsigned
AV_WL16_TMPL AV_WB64_TMPL
unsigned AV_WB32_TMPL unsigned
AV_WB24_TMPL unsigned
AV_WB16_TMPL unsigned 
AV_RB8


Define Documentation

#define bytestream2_get_ne16   bytestream2_get_le16

Definition at line 112 of file bytestream.h.

#define bytestream2_get_ne16u   bytestream2_get_le16u

Definition at line 116 of file bytestream.h.

Referenced by read_uncompressed_sgi().

#define bytestream2_get_ne24   bytestream2_get_le24

Definition at line 113 of file bytestream.h.

#define bytestream2_get_ne24u   bytestream2_get_le24u

Definition at line 117 of file bytestream.h.

#define bytestream2_get_ne32   bytestream2_get_le32

Definition at line 114 of file bytestream.h.

#define bytestream2_get_ne32u   bytestream2_get_le32u

Definition at line 118 of file bytestream.h.

#define bytestream2_get_ne64   bytestream2_get_le64

Definition at line 115 of file bytestream.h.

#define bytestream2_get_ne64u   bytestream2_get_le64u

Definition at line 119 of file bytestream.h.

#define bytestream2_peek_ne16   bytestream2_peek_le16

Definition at line 124 of file bytestream.h.

#define bytestream2_peek_ne24   bytestream2_peek_le24

Definition at line 125 of file bytestream.h.

#define bytestream2_peek_ne32   bytestream2_peek_le32

Definition at line 126 of file bytestream.h.

#define bytestream2_peek_ne64   bytestream2_peek_le64

Definition at line 127 of file bytestream.h.

#define bytestream2_put_ne16   bytestream2_put_le16

Definition at line 120 of file bytestream.h.

#define bytestream2_put_ne24   bytestream2_put_le24

Definition at line 121 of file bytestream.h.

#define bytestream2_put_ne32   bytestream2_put_le32

Definition at line 122 of file bytestream.h.

#define bytestream2_put_ne64   bytestream2_put_le64

Definition at line 123 of file bytestream.h.

#define DEF ( type,
name,
bytes,
read,
write   ) 


Function Documentation

static av_always_inline unsigned int bytestream2_get_buffer ( GetByteContext g,
uint8_t dst,
unsigned int  size 
) [static]

static av_always_inline unsigned int bytestream2_get_bufferu ( GetByteContext g,
uint8_t dst,
unsigned int  size 
) [static]

static av_always_inline unsigned int bytestream2_get_bytes_left ( GetByteContext g  )  [static]

static av_always_inline unsigned int bytestream2_get_bytes_left_p ( PutByteContext p  )  [static]

Definition at line 154 of file bytestream.h.

static av_always_inline unsigned int bytestream2_get_eof ( PutByteContext p  )  [static]

Definition at line 323 of file bytestream.h.

static av_always_inline void bytestream2_init ( GetByteContext g,
const uint8_t buf,
int  buf_size 
) [static]

static av_always_inline void bytestream2_init_writer ( PutByteContext p,
uint8_t buf,
int  buf_size 
) [static]

static av_always_inline unsigned int bytestream2_put_buffer ( PutByteContext p,
const uint8_t src,
unsigned int  size 
) [static]

static av_always_inline unsigned int bytestream2_put_bufferu ( PutByteContext p,
const uint8_t src,
unsigned int  size 
) [static]

Definition at line 292 of file bytestream.h.

static av_always_inline int bytestream2_seek ( GetByteContext g,
int  offset,
int  whence 
) [static]

static av_always_inline int bytestream2_seek_p ( PutByteContext p,
int  offset,
int  whence 
) [static]

Definition at line 227 of file bytestream.h.

Referenced by encode_plane().

static av_always_inline void bytestream2_set_buffer ( PutByteContext p,
const uint8_t  c,
unsigned int  size 
) [static]

Definition at line 301 of file bytestream.h.

Referenced by encode_frame().

static av_always_inline void bytestream2_set_bufferu ( PutByteContext p,
const uint8_t  c,
unsigned int  size 
) [static]

Definition at line 315 of file bytestream.h.

static av_always_inline int bytestream2_size ( GetByteContext g  )  [static]

Definition at line 193 of file bytestream.h.

Referenced by smc_decode_stream(), tiff_decode_tag(), and xan_decode_frame_type0().

static av_always_inline int bytestream2_size_p ( PutByteContext p  )  [static]

Definition at line 198 of file bytestream.h.

static av_always_inline void bytestream2_skip ( GetByteContext g,
unsigned int  size 
) [static]

static av_always_inline void bytestream2_skip_p ( PutByteContext p,
unsigned int  size 
) [static]

Definition at line 171 of file bytestream.h.

Referenced by handle_notify(), and sunrast_image_write_image().

static av_always_inline void bytestream2_skipu ( GetByteContext g,
unsigned int  size 
) [static]

static av_always_inline int bytestream2_tell ( GetByteContext g  )  [static]

static av_always_inline int bytestream2_tell_p ( PutByteContext p  )  [static]

static av_always_inline unsigned int bytestream_get_buffer ( const uint8_t **  b,
uint8_t dst,
unsigned int  size 
) [static]

static av_always_inline void bytestream_put_buffer ( uint8_t **  b,
const uint8_t src,
unsigned int  size 
) [static]


Variable Documentation

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned AV_WL24_TMPL unsigned AV_WL16_TMPL AV_WB64_TMPL unsigned AV_WB32_TMPL unsigned AV_WB24_TMPL unsigned AV_RB16

Definition at line 84 of file bytestream.h.

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned AV_WL24_TMPL unsigned AV_WL16_TMPL AV_WB64_TMPL unsigned AV_WB32_TMPL unsigned AV_RB24

Definition at line 84 of file bytestream.h.

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned AV_WL24_TMPL unsigned AV_WL16_TMPL AV_WB64_TMPL unsigned AV_RB32

Definition at line 84 of file bytestream.h.

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned AV_WL24_TMPL unsigned AV_WL16_TMPL AV_RB64

Definition at line 84 of file bytestream.h.

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned AV_WL24_TMPL unsigned AV_WL16_TMPL AV_WB64_TMPL unsigned AV_WB32_TMPL unsigned AV_WB24_TMPL unsigned AV_WB16_TMPL unsigned AV_RB8

Definition at line 84 of file bytestream.h.

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned AV_WL24_TMPL unsigned AV_RL16

Definition at line 84 of file bytestream.h.

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned AV_RL24

Definition at line 84 of file bytestream.h.

AV_WL64_TMPL unsigned AV_RL32

Definition at line 84 of file bytestream.h.

AV_RL64

Definition at line 84 of file bytestream.h.

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned AV_WL24_TMPL unsigned AV_WL16_TMPL AV_WB64_TMPL unsigned AV_WB32_TMPL unsigned AV_WB24_TMPL unsigned be16

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned AV_WL24_TMPL unsigned AV_WL16_TMPL AV_WB64_TMPL unsigned AV_WB32_TMPL unsigned be24

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned AV_WL24_TMPL unsigned AV_WL16_TMPL AV_WB64_TMPL unsigned be32

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned AV_WL24_TMPL unsigned AV_WL16_TMPL be64

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned AV_WL24_TMPL unsigned AV_WL16_TMPL AV_WB64_TMPL unsigned AV_WB32_TMPL unsigned AV_WB24_TMPL unsigned AV_WB16_TMPL unsigned byte

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned AV_WL24_TMPL unsigned AV_WL16_TMPL AV_WB64_TMPL unsigned AV_WB32_TMPL unsigned AV_WB24_TMPL unsigned AV_WB16_TMPL unsigned int

Definition at line 84 of file bytestream.h.

Referenced by adaptive_quantization(), adpcm_ms_expand_nibble(), affine_1d_MMX(), allocStuff(), asf_write_packet(), audio_encode_example(), av_ext2dbl(), avfilter_config_links(), avfilter_transform(), calculate_display_rect(), calculate_visual_weight(), checksum_plane(), config_props(), control(), dct_quantize_trellis_c(), dct_unquantize_mpeg1_inter_c(), dct_unquantize_mpeg1_intra_c(), dct_unquantize_mpeg2_inter_c(), dct_unquantize_mpeg2_intra_bitexact(), dct_unquantize_mpeg2_intra_c(), decode_fixed_vector(), decode_str(), encode_block(), ff_convert_matrix(), ff_draw_slice(), ff_end_frame(), ff_filter_samples_framed(), ff_rate_estimate_qscale(), ff_rtp_send_mpegvideo(), ff_start_frame(), ff_wma_init(), ffio_fdopen(), fill_filter_caches_inter(), filter_samples(), finish_file(), flush_encoders(), get_audio_frame(), get_qminmax(), get_vcd_padding_size(), global_mv(), hScale8To15_c(), hScale8To19_c(), hScale_altivec_real(), http_prepare_data(), hyscale(), id3v2_encode_string(), idct248_ref(), init(), init_pass2(), initNoise(), initPv(), INTERPOLATE_METHOD(), mediumthresh_c(), mov_read_default(), mov_read_tkhd(), mov_read_udta_string(), MPA_encode_init(), opt_output_file(), optimum_block_height(), optimum_block_width(), pix_norm1_altivec(), pix_sum_altivec(), postProcess_TMPL(), predictor(), psycho_acoustic_model(), put_float(), put_image(), qdm2_decode(), quantize_bands(), ring2_test(), round_sample(), rv10_write_header(), sad16_altivec(), sad16_x2_altivec(), sad16_xy2_altivec(), sad16_y2_altivec(), sad8_altivec(), sign_extend(), softthresh_c(), sse16_altivec(), sse8_altivec(), sws_getGaussianVec(), sws_printVec2(), synchronize_audio(), udp_port(), value_string(), wma_decode_block(), xget_zpixmap(), xvid_correct_framerate(), yae_flush(), and zero_extend().

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned AV_WL24_TMPL unsigned le16

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned le24

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

AV_WL64_TMPL unsigned le32

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

AV_WL64_TMPL unsigned AV_WL32_TMPL unsigned AV_WL24_TMPL unsigned AV_WL16_TMPL uint64_t

Definition at line 84 of file bytestream.h.

Referenced by aac_sync(), ac3_sync(), adx_parse(), aiff_read_header(), aiff_write_header(), asf_read_header(), asf_read_seek(), ass_get_duration(), av_adler32_update(), av_bswap64(), av_dbl2ext(), av_des_crypt_mac(), av_ext2dbl(), av_image_check_size(), av_int2dbl(), av_md5_final(), av_opt_get(), av_packet_merge_side_data(), AV_RB64(), av_reduce(), av_rescale_rnd(), AV_RL64(), av_sha_final(), avformat_seek_file(), avg4(), avi_read_header(), avi_read_nikon(), avi_sync(), avio_rb64(), avio_rl64(), avisynth_read_header(), bktr_getframe(), bluray_open(), bmp_parse(), build_chunks(), calc_cpl_coord(), cdxl_read_packet(), channelmap_init(), checksum_plane(), clear_blocks_axp(), column_fidct_mmx(), compute_avg_bitrate(), config_output(), dct_quantize_refine(), dct_unquantize_h263_axp(), dct_unquantize_h263_intra_axp(), decode(), decode_cell_data(), decode_frame(), decode_frame_header(), decode_info_header(), decode_main_header(), decode_slice_header(), decode_stream_header(), decode_syncpoint(), decodeplane8(), dering_TMPL(), diff_pixels_mvi(), dnxhd_find_frame_end(), doTest(), doVertDefFilter_TMPL(), dv_decode_video_segment(), ebml_parse(), ebml_parse_elem(), ebml_parse_nest(), ebml_read_num(), encode_init(), encode_plane(), estimate_stereo_mode(), eval_expr(), event_loop(), ff_add_channel_layout(), ff_alsa_open(), ff_amf_read_number(), ff_asf_parse_packet(), ff_asfcrypt_dec(), ff_h263_decode_frame(), ff_h264_find_frame_end(), ff_huff_gen_len_table(), ff_interleave_add_packet(), ff_mms_asf_header_parser(), ff_mp4_read_dec_config_descr(), ff_print_debug_info(), ff_rate_estimate_qscale(), ff_rtp_check_and_send_back_rr(), ff_sauce_read(), ff_simple_idct_axp(), ff_truehd_layout(), ffio_read_varlen(), fill_rectangle(), filter(), finalize_packet(), find_and_decode_index(), find_any_startcode(), find_startcode(), flac_read_header(), frac64(), gen_roundkeys(), get_aiff_header(), get_bits64(), get_generic_seed(), get_pixels_mvi(), get_siz(), get_tag(), getSSD(), grab_read_header(), guess_map_any(), gxf_read_index(), gxf_resync_media(), gxf_seek(), gxf_write_umf_material_description(), h263_probe(), h264_mp4toannexb_filter(), hl_decode_mb_predict_luma(), horizX1Filter(), idct_col2(), idct_row(), idctRowCondDC(), iff_read_header(), init(), init_pass2(), int_sqrt(), intra_pred_dc_128(), intra_pred_horiz(), intra_pred_vert(), ipvideo_decode_block_opcode_0x9(), ipvideo_decode_block_opcode_0x9_16(), ipvideo_decode_block_opcode_0xA(), ipvideo_decode_block_opcode_0xA_16(), join_config_output(), key_shift_left(), klv_decode_ber_length(), lag_read_prob_header(), MAC64(), main(), matroska_ebmlnum_sint(), matroska_parse_block(), matroska_parse_laces(), matroska_parse_seekhead_entry(), matroska_probe(), matroska_read_header(), mkv_write_cues(), mkv_write_seekhead(), mkv_write_tracks(), MLS64(), mov_build_index(), mov_read_elst(), mov_read_extradata(), mov_read_glbl(), mov_read_strf(), mov_read_trex(), mov_read_trun(), mov_read_wave(), mpeg1_encode_sequence_header(), mul_thrmat_mmx(), multiswap_dec(), multiswap_enc(), mxf_decrypt_triplet(), mxf_gen_umid(), mxf_get_sorted_table_segments(), mxf_parse_timestamp(), mxf_read_header(), mxf_read_local_tags(), mxf_read_partition_pack(), mxf_write_d10_video_packet(), mxf_write_header(), mxf_write_partition(), mxf_write_random_index_pack(), nprobe(), nut_probe(), nut_read_header(), nut_read_packet(), nuv_packet(), ogg_gptopts(), ogg_read_page(), ogm_header(), old_dirac_gptopts(), opt_channel_layout(), output_configure(), parse_maps(), phi_at(), pix_abs16x16_x2_mvi(), pix_abs16x16_xy2_mvi(), pix_abs16x16_y2_mvi(), pix_abs8x8_mvi(), pix_norm1_c(), pmp_header(), png_parse(), postProcess_TMPL(), print_codec(), print_fps(), print_stats(), process_ipmovie_chunk(), put_ebml_uint(), pva_read_timestamp(), query_formats(), r3d_read_reda(), r3d_read_redv(), ratecontrol_1pass(), read_desc_chunk(), read_header(), read_packet(), read_specific_config(), read_time(), reallocBuffers(), reduce_formats_on_filter(), rnd_table_init(), row_fdct_mmx(), row_idct_mmx(), rtp_asf_fix_header(), run_psnr(), select_channel_layout(), show_layouts(), shuffle(), shuffle_inv(), skeleton_header(), sniff_channel_order(), softfloat_mul(), softfloat_reciprocal(), start_frame(), svq3_decode_init(), swap_channel_layouts_on_filter(), swf_read_packet(), theora_gptopts(), transcode_init(), tta_read_header(), UMULH(), unpack_codebook(), v4l2_set_parameters(), vf_open(), vorbis_residue_decode_internal(), wavesynth_parse_extradata(), wtvfile_open2(), xmv_process_packet_header(), xsub_encode(), xwma_read_header(), yadif_filter_line_TMPL(), yuvPlanartouyvy_c(), and yuvPlanartoyuy2_c().


Generated on Fri Oct 26 02:50:04 2012 for FFmpeg by  doxygen 1.5.8