MythTV  master
Macros | Functions
ringbuffer.c File Reference
#include <stdlib.h>
#include <string.h>
#include "ringbuffer.h"
#include "pes.h"
#include "mythlogging.h"
Include dependency graph for ringbuffer.c:

Go to the source code of this file.

Macros

#define DEBUG   1
 

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_poke (ringbuffer *rbuf, uint8_t *data, unsigned int count, 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)
 
static void dummy_print (dummy_buffer *dbuf)
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG   1

Definition at line 36 of file ringbuffer.c.

Function Documentation

◆ ring_init()

int ring_init ( ringbuffer rbuf,
int  size 
)

Definition at line 37 of file ringbuffer.c.

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

◆ ring_reinit()

int ring_reinit ( ringbuffer rbuf,
int  size 
)

Definition at line 55 of file ringbuffer.c.

Referenced by MPEG2fixup::AddFrame().

◆ ring_clear()

void ring_clear ( ringbuffer rbuf)

Definition at line 75 of file ringbuffer.c.

Referenced by dummy_clear().

◆ ring_destroy()

void ring_destroy ( ringbuffer rbuf)

Definition at line 83 of file ringbuffer.c.

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

◆ ring_write()

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

◆ ring_peek()

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

◆ ring_poke()

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

Definition at line 156 of file ringbuffer.c.

Referenced by writeout_video().

◆ 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 257 of file ringbuffer.c.

◆ ring_read_file()

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

Definition at line 295 of file ringbuffer.c.

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 376 of file ringbuffer.c.

◆ dummy_init()

int dummy_init ( dummy_buffer dbuf,
int  s 
)

Definition at line 408 of file ringbuffer.c.

Referenced by init_multiplex().

◆ dummy_destroy()

void dummy_destroy ( dummy_buffer dbuf)

Definition at line 420 of file ringbuffer.c.

Referenced by finish_mpg().

◆ dummy_clear()

void dummy_clear ( dummy_buffer dbuf)

Definition at line 426 of file ringbuffer.c.

◆ dummy_add()

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

Definition at line 433 of file ringbuffer.c.

Referenced by writeout_ext(), and writeout_video().

◆ dummy_delete()

int dummy_delete ( dummy_buffer dbuf,
uint64_t  time 
)

Definition at line 450 of file ringbuffer.c.

Referenced by check_times().

◆ dummy_print()

static void dummy_print ( dummy_buffer dbuf)
static

Definition at line 482 of file ringbuffer.c.