ringbuffer.h File Reference

Go to the source code of this file.

Classes

struct  ringbuffer
struct  dummy_buffer_s

Typedefs

typedef struct dummy_buffer_s dummy_buffer

Functions

int ring_init (ringbuffer *rbuf, int size)
int ring_reinit (ringbuffer *rbuf, int size)
void ring_clear (ringbuffer *rbuf)
void ring_destroy (ringbuffer *rbuf)
int ring_write (ringbuffer *rbuf, uint8_t *data, int count)
int ring_read (ringbuffer *rbuf, uint8_t *data, int count)
int ring_write_file (ringbuffer *rbuf, int fd, int count)
int ring_read_file (ringbuffer *rbuf, int fd, int count)
int ring_peek (ringbuffer *rbuf, uint8_t *data, unsigned int count, uint32_t off)
int ring_poke (ringbuffer *rbuf, uint8_t *data, unsigned int count, uint32_t off)
int ring_skip (ringbuffer *rbuf, int count)
static int ring_wpos (ringbuffer *rbuf)
static int ring_rpos (ringbuffer *rbuf)
static int ring_posdiff (ringbuffer *rbuf, int pos1, int pos2)
static int ring_wdiff (ringbuffer *rbuf, int pos)
static int ring_rdiff (ringbuffer *rbuf, int pos)
static unsigned int ring_free (ringbuffer *rbuf)
static unsigned int ring_avail (ringbuffer *rbuf)
static uint32_t dummy_space (dummy_buffer *dbuf)
int dummy_delete (dummy_buffer *dbuf, uint64_t time)
int dummy_add (dummy_buffer *dbuf, uint64_t time, uint32_t size)
void dummy_clear (dummy_buffer *dbuf)
int dummy_init (dummy_buffer *dbuf, int s)
void dummy_destroy (dummy_buffer *dbuf)
void ring_show (ringbuffer *rbuf, unsigned int count, uint32_t off)


Typedef Documentation

typedef struct dummy_buffer_s dummy_buffer


Function Documentation

int ring_init ( ringbuffer rbuf,
int  size 
)

Definition at line 33 of file ringbuffer.c.

Referenced by dummy_init(), find_pids_stdin(), init_replex(), and MPEG2fixup::InitReplex().

int ring_reinit ( ringbuffer rbuf,
int  size 
)

Definition at line 50 of file ringbuffer.c.

Referenced by MPEG2fixup::AddFrame().

void ring_clear ( ringbuffer rbuf  ) 

Definition at line 70 of file ringbuffer.c.

Referenced by dummy_clear().

void ring_destroy ( ringbuffer rbuf  ) 

Definition at line 78 of file ringbuffer.c.

Referenced by dummy_destroy(), and MPEG2replex::~MPEG2replex().

int ring_write ( ringbuffer rbuf,
uint8_t *  data,
int  count 
)

int ring_read ( ringbuffer rbuf,
uint8_t *  data,
int  count 
)

int ring_write_file ( ringbuffer rbuf,
int  fd,
int  count 
)

Definition at line 230 of file ringbuffer.c.

int ring_read_file ( ringbuffer rbuf,
int  fd,
int  count 
)

Definition at line 265 of file ringbuffer.c.

Referenced by do_demux().

int ring_peek ( ringbuffer rbuf,
uint8_t *  data,
unsigned int  count,
uint32_t  off 
)

int ring_poke ( ringbuffer rbuf,
uint8_t *  data,
unsigned int  count,
uint32_t  off 
)

Definition at line 143 of file ringbuffer.c.

Referenced by writeout_video().

int ring_skip ( ringbuffer rbuf,
int  count 
)

static int ring_wpos ( ringbuffer rbuf  )  [inline, static]

Definition at line 72 of file ringbuffer.h.

Referenced by get_avi(), get_avi_from_index(), init_pes_in(), and pes_es_out().

static int ring_rpos ( ringbuffer rbuf  )  [inline, static]

static int ring_posdiff ( ringbuffer rbuf,
int  pos1,
int  pos2 
) [inline, static]

Definition at line 82 of file ringbuffer.h.

Referenced by analyze_audio(), analyze_video(), ring_rdiff(), and ring_wdiff().

static int ring_wdiff ( ringbuffer rbuf,
int  pos 
) [inline, static]

Definition at line 90 of file ringbuffer.h.

static int ring_rdiff ( ringbuffer rbuf,
int  pos 
) [inline, static]

Definition at line 94 of file ringbuffer.h.

Referenced by analyze_audio(), and analyze_video().

static unsigned int ring_free ( ringbuffer rbuf  )  [inline, static]

static unsigned int ring_avail ( ringbuffer rbuf  )  [inline, static]

static uint32_t dummy_space ( dummy_buffer dbuf  )  [inline, static]

Definition at line 116 of file ringbuffer.h.

Referenced by check_times(), dummy_add(), writeout_ext(), and writeout_video().

int dummy_delete ( dummy_buffer dbuf,
uint64_t  time 
)

Definition at line 398 of file ringbuffer.c.

Referenced by check_times().

int dummy_add ( dummy_buffer dbuf,
uint64_t  time,
uint32_t  size 
)

Definition at line 384 of file ringbuffer.c.

Referenced by writeout_ext(), and writeout_video().

void dummy_clear ( dummy_buffer dbuf  ) 

Definition at line 377 of file ringbuffer.c.

int dummy_init ( dummy_buffer dbuf,
int  s 
)

Definition at line 359 of file ringbuffer.c.

Referenced by init_multiplex().

void dummy_destroy ( dummy_buffer dbuf  ) 

Definition at line 371 of file ringbuffer.c.

Referenced by finish_mpg().

void ring_show ( ringbuffer rbuf,
unsigned int  count,
uint32_t  off 
)

Definition at line 332 of file ringbuffer.c.


Generated on Sat Dec 18 05:15:55 2010 for MythTV by  doxygen 1.5.5