MythTV  master
Macros | Functions
ringbuffer.cpp File Reference
#include <cstdlib>
#include <cstring>
#include "ringbuffer.h"
#include "pes.h"
#include "mythlogging.h"
Include dependency graph for ringbuffer.cpp:

Go to the source code of this file.

Macros

#define DEBUG   true
 

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_peek (ringbuffer *rbuf, uint8_t *data, unsigned int count, uint32_t off)
 
int ring_peek (ringbuffer *rbuf, peek_poke_vec data, unsigned int count, uint32_t off)
 
int ring_peek (ringbuffer *rbuf, peek_poke_vec data, uint32_t off)
 
int ring_poke (ringbuffer *rbuf, uint8_t *data, unsigned int count, uint32_t off)
 
int ring_poke (ringbuffer *rbuf, peek_poke_vec data, unsigned int count, uint32_t off)
 
int ring_poke (ringbuffer *rbuf, peek_poke_vec data, uint32_t off)
 
int ring_read (ringbuffer *rbuf, uint8_t *data, int count)
 
int ring_skip (ringbuffer *rbuf, int count)
 
int ring_write_file (ringbuffer *rbuf, int fd, int count)
 
int ring_read_file (ringbuffer *rbuf, int fd, int count)
 
static void show (uint8_t *buf, int length)
 
void ring_show (ringbuffer *rbuf, unsigned int count, uint32_t off)
 
int dummy_init (dummy_buffer *dbuf, int s)
 
void dummy_destroy (dummy_buffer *dbuf)
 
void dummy_clear (dummy_buffer *dbuf)
 
int dummy_add (dummy_buffer *dbuf, uint64_t time, uint32_t size)
 
int dummy_delete (dummy_buffer *dbuf, uint64_t time)
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG   true

Definition at line 36 of file ringbuffer.cpp.

Function Documentation

◆ ring_init()

int ring_init ( ringbuffer rbuf,
int  size 
)

Definition at line 38 of file ringbuffer.cpp.

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

◆ ring_reinit()

int ring_reinit ( ringbuffer rbuf,
int  size 
)

Definition at line 56 of file ringbuffer.cpp.

Referenced by MPEG2fixup::AddFrame().

◆ ring_clear()

void ring_clear ( ringbuffer rbuf)

Definition at line 76 of file ringbuffer.cpp.

Referenced by dummy_clear().

◆ ring_destroy()

void ring_destroy ( ringbuffer rbuf)

Definition at line 84 of file ringbuffer.cpp.

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

◆ ring_write()

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

◆ ring_peek() [1/3]

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

◆ ring_peek() [2/3]

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

Definition at line 151 of file ringbuffer.cpp.

◆ ring_peek() [3/3]

int ring_peek ( ringbuffer rbuf,
peek_poke_vec  data,
uint32_t  off 
)

Definition at line 156 of file ringbuffer.cpp.

◆ ring_poke() [1/3]

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

Definition at line 161 of file ringbuffer.cpp.

Referenced by ring_poke(), and writeout_video().

◆ ring_poke() [2/3]

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

Definition at line 190 of file ringbuffer.cpp.

◆ ring_poke() [3/3]

int ring_poke ( ringbuffer rbuf,
peek_poke_vec  data,
uint32_t  off 
)

Definition at line 195 of file ringbuffer.cpp.

◆ ring_read()

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

◆ ring_skip()

int ring_skip ( ringbuffer rbuf,
int  count 
)

◆ ring_write_file()

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

Definition at line 262 of file ringbuffer.cpp.

◆ ring_read_file()

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

Definition at line 300 of file ringbuffer.cpp.

Referenced by do_demux().

◆ show()

static void show ( uint8_t *  buf,
int  length 
)
static

◆ ring_show()

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

Definition at line 371 of file ringbuffer.cpp.

◆ dummy_init()

int dummy_init ( dummy_buffer dbuf,
int  s 
)

Definition at line 399 of file ringbuffer.cpp.

Referenced by init_multiplex().

◆ dummy_destroy()

void dummy_destroy ( dummy_buffer dbuf)

Definition at line 411 of file ringbuffer.cpp.

Referenced by finish_mpg().

◆ dummy_clear()

void dummy_clear ( dummy_buffer dbuf)

Definition at line 417 of file ringbuffer.cpp.

◆ dummy_add()

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

Definition at line 424 of file ringbuffer.cpp.

Referenced by writeout_ext(), and writeout_video().

◆ dummy_delete()

int dummy_delete ( dummy_buffer dbuf,
uint64_t  time 
)

Definition at line 442 of file ringbuffer.cpp.

Referenced by check_times().