libavcodec/bytestream.h File Reference

#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_T(type, name, bytes, read, write)
#define DEF(name, bytes, read, write)   DEF_T(unsigned int, name, bytes, read, write)
#define DEF64(name, bytes, read, write)   DEF_T(uint64_t, 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_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

 le32_TMPL
 AV_RL32
AV_WL32 le24_TMPL
AV_WL32 AV_RL24
AV_WL32 AV_WL24 le16_TMPL
AV_WL32 AV_WL24 AV_RL16
AV_WL32 AV_WL24 AV_WL16 be32_TMPL
AV_WL32 AV_WL24 AV_WL16 AV_RB32
AV_WL32 AV_WL24 AV_WL16 AV_WB32 be24_TMPL
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_RB24
AV_WL32 AV_WL24 AV_WL16
AV_WB32 AV_WB24 
be16_TMPL
AV_WL32 AV_WL24 AV_WL16
AV_WB32 AV_WB24 
AV_RB16
AV_WL32 AV_WL24 AV_WL16
AV_WB32 AV_WB24 AV_WB16 
byte_TMPL
AV_WL32 AV_WL24 AV_WL16
AV_WB32 AV_WB24 AV_WB16 
AV_RB8


Define Documentation

#define bytestream2_get_ne16   bytestream2_get_le16

Definition at line 120 of file bytestream.h.

#define bytestream2_get_ne16u   bytestream2_get_le16u

Definition at line 124 of file bytestream.h.

Referenced by read_uncompressed_sgi().

#define bytestream2_get_ne24   bytestream2_get_le24

Definition at line 121 of file bytestream.h.

#define bytestream2_get_ne24u   bytestream2_get_le24u

Definition at line 125 of file bytestream.h.

#define bytestream2_get_ne32   bytestream2_get_le32

Definition at line 122 of file bytestream.h.

#define bytestream2_get_ne32u   bytestream2_get_le32u

Definition at line 126 of file bytestream.h.

#define bytestream2_get_ne64   bytestream2_get_le64

Definition at line 123 of file bytestream.h.

#define bytestream2_get_ne64u   bytestream2_get_le64u

Definition at line 127 of file bytestream.h.

#define bytestream2_peek_ne16   bytestream2_peek_le16

Definition at line 132 of file bytestream.h.

#define bytestream2_peek_ne24   bytestream2_peek_le24

Definition at line 133 of file bytestream.h.

#define bytestream2_peek_ne32   bytestream2_peek_le32

Definition at line 134 of file bytestream.h.

#define bytestream2_peek_ne64   bytestream2_peek_le64

Definition at line 135 of file bytestream.h.

#define bytestream2_put_ne16   bytestream2_put_le16

Definition at line 128 of file bytestream.h.

#define bytestream2_put_ne24   bytestream2_put_le24

Definition at line 129 of file bytestream.h.

#define bytestream2_put_ne32   bytestream2_put_le32

Definition at line 130 of file bytestream.h.

#define bytestream2_put_ne64   bytestream2_put_le64

Definition at line 131 of file bytestream.h.

#define DEF ( name,
bytes,
read,
write   )     DEF_T(unsigned int, name, bytes, read, write)

Definition at line 83 of file bytestream.h.

#define DEF64 ( name,
bytes,
read,
write   )     DEF_T(uint64_t, name, bytes, read, write)

Definition at line 85 of file bytestream.h.

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

Definition at line 40 of file bytestream.h.


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 266 of file bytestream.h.

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 162 of file bytestream.h.

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

Definition at line 321 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 147 of file bytestream.h.

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

Definition at line 275 of file bytestream.h.

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

Definition at line 290 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 225 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 299 of file bytestream.h.

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

Definition at line 313 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 179 of file bytestream.h.

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

Definition at line 173 of file bytestream.h.

Referenced by decode_frame().

static av_always_inline int bytestream2_tell ( GetByteContext g  )  [static]

static av_always_inline int bytestream2_tell_p ( PutByteContext p  )  [static]

Definition at line 196 of file bytestream.h.

Referenced by bytestream2_seek_p().

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_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_RB16

Definition at line 89 of file bytestream.h.

AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_RB24

Definition at line 89 of file bytestream.h.

AV_WL32 AV_WL24 AV_WL16 AV_RB32

Definition at line 89 of file bytestream.h.

AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_WB16 AV_RB8

Definition at line 89 of file bytestream.h.

AV_WL32 AV_WL24 AV_RL16

Definition at line 89 of file bytestream.h.

AV_WL32 AV_RL24

Definition at line 89 of file bytestream.h.

AV_RL32

Definition at line 89 of file bytestream.h.

AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 be16_TMPL

Definition at line 89 of file bytestream.h.

AV_WL32 AV_WL24 AV_WL16 AV_WB32 be24_TMPL

Definition at line 89 of file bytestream.h.

AV_WL32 AV_WL24 AV_WL16 be32_TMPL

Definition at line 89 of file bytestream.h.

AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_WB16 byte_TMPL

Definition at line 89 of file bytestream.h.

AV_WL32 AV_WL24 le16_TMPL

Definition at line 89 of file bytestream.h.

AV_WL32 le24_TMPL

Definition at line 89 of file bytestream.h.

Definition at line 89 of file bytestream.h.


Generated on Fri Oct 26 02:46:07 2012 for FFmpeg by  doxygen 1.5.8