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_TMPL le64
uint64_t_TMPL AV_RL64
uint64_t_TMPL AV_WL64 unsigned
int_TMPL 
le32
uint64_t_TMPL AV_WL64 unsigned
int_TMPL 
AV_RL32
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL 
le24
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL 
AV_RL24
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL 
le16
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL 
AV_RL16
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL 
be64
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL 
AV_RB64
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL 
be32
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL 
AV_RB32
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL
AV_WB32 unsigned int_TMPL 
be24
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL
AV_WB32 unsigned int_TMPL 
AV_RB24
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL
AV_WB32 unsigned int_TMPL
AV_WB24 unsigned int_TMPL 
be16
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL
AV_WB32 unsigned int_TMPL
AV_WB24 unsigned int_TMPL 
AV_RB16
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL
AV_WB32 unsigned int_TMPL
AV_WB24 unsigned int_TMPL
AV_WB16 unsigned int_TMPL 
byte
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL
AV_WB32 unsigned int_TMPL
AV_WB24 unsigned int_TMPL
AV_WB16 unsigned int_TMPL 
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]

Definition at line 268 of file bytestream.h.

Referenced by decode_frame(), decode_packet(), op(), and xwd_decode_frame().

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]

Definition at line 139 of file bytestream.h.

Referenced by encode_frame(), and sunrast_encode_frame().

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

Definition at line 277 of file bytestream.h.

Referenced by sunrast_image_write_image().

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.

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(), 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 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

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_RB16

Definition at line 84 of file bytestream.h.

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_RB24

Definition at line 84 of file bytestream.h.

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_RB32

Definition at line 84 of file bytestream.h.

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_RB64

Definition at line 84 of file bytestream.h.

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_WB16 unsigned int_TMPL AV_RB8

Definition at line 84 of file bytestream.h.

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_RL16

Definition at line 84 of file bytestream.h.

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_RL24

Definition at line 84 of file bytestream.h.

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_RL32

Definition at line 84 of file bytestream.h.

uint64_t_TMPL AV_RL64

Definition at line 84 of file bytestream.h.

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL be16

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL be24

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL be32

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL be64

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_WB16 unsigned int_TMPL byte

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL le16

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL le24

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

uint64_t_TMPL AV_WL64 unsigned int_TMPL le32

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

uint64_t_TMPL le64

Definition at line 84 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().


Generated on Fri Oct 26 02:47:55 2012 for FFmpeg by  doxygen 1.5.8