MythTV
master
|
#include <cstdlib>
#include <cstring>
#include "ringbuffer.h"
#include "pes.h"
#include "libmythbase/mythlogging.h"
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) |
#define DEBUG true |
Definition at line 36 of file ringbuffer.cpp.
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().
int ring_reinit | ( | ringbuffer * | rbuf, |
int | size | ||
) |
Definition at line 58 of file ringbuffer.cpp.
Referenced by MPEG2fixup::AddFrame().
void ring_clear | ( | ringbuffer * | rbuf | ) |
Definition at line 78 of file ringbuffer.cpp.
Referenced by dummy_clear().
void ring_destroy | ( | ringbuffer * | rbuf | ) |
Definition at line 86 of file ringbuffer.cpp.
Referenced by dummy_destroy(), and MPEG2replex::~MPEG2replex().
int ring_write | ( | ringbuffer * | rbuf, |
uint8_t * | data, | ||
int | count | ||
) |
Definition at line 92 of file ringbuffer.cpp.
Referenced by MPEG2fixup::AddFrame(), analyze_audio(), analyze_video(), dummy_add(), get_avi(), get_avi_from_index(), get_pes(), and pes_es_out().
int ring_peek | ( | ringbuffer * | rbuf, |
uint8_t * | data, | ||
unsigned int | count, | ||
uint32_t | off | ||
) |
Definition at line 124 of file ringbuffer.cpp.
Referenced by analyze_audio(), analyze_video(), dummy_delete(), fix_audio(), get_video_ext_info(), get_video_info(), mring_peek(), peek_next_ext_unit(), peek_next_video_unit(), ring_peek(), and writeout_video().
int ring_peek | ( | ringbuffer * | rbuf, |
peek_poke_vec & | data, | ||
unsigned int | count, | ||
uint32_t | off | ||
) |
Definition at line 153 of file ringbuffer.cpp.
int ring_peek | ( | ringbuffer * | rbuf, |
peek_poke_vec & | data, | ||
uint32_t | off | ||
) |
Definition at line 158 of file ringbuffer.cpp.
int ring_poke | ( | ringbuffer * | rbuf, |
uint8_t * | data, | ||
unsigned int | count, | ||
uint32_t | off | ||
) |
Definition at line 163 of file ringbuffer.cpp.
Referenced by ring_poke(), and writeout_video().
int ring_poke | ( | ringbuffer * | rbuf, |
peek_poke_vec & | data, | ||
unsigned int | count, | ||
uint32_t | off | ||
) |
Definition at line 192 of file ringbuffer.cpp.
int ring_poke | ( | ringbuffer * | rbuf, |
peek_poke_vec & | data, | ||
uint32_t | off | ||
) |
Definition at line 197 of file ringbuffer.cpp.
int ring_read | ( | ringbuffer * | rbuf, |
uint8_t * | data, | ||
int | count | ||
) |
Definition at line 202 of file ringbuffer.cpp.
Referenced by dummy_delete(), get_next_ac3_unit(), get_next_audio_unit(), get_next_ext_unit(), get_next_video_unit(), write_ac3_pes(), write_ac3_ts(), write_audio_pes(), write_audio_ts(), write_video_pes(), write_video_ts(), and writeout_ext().
int ring_skip | ( | ringbuffer * | rbuf, |
int | count | ||
) |
Definition at line 235 of file ringbuffer.cpp.
Referenced by analyze_audio(), analyze_video(), avi_es_out(), do_analyze(), es_out(), fix_audio(), and pes_es_out().
int ring_write_file | ( | ringbuffer * | rbuf, |
int | fd, | ||
int | count | ||
) |
Definition at line 264 of file ringbuffer.cpp.
int ring_read_file | ( | ringbuffer * | rbuf, |
int | fd, | ||
int | count | ||
) |
Definition at line 302 of file ringbuffer.cpp.
Referenced by do_demux().
|
static |
Definition at line 341 of file ringbuffer.cpp.
Referenced by GalleryThumbView::DoShowHidden(), TV::FillOSDMenuActorShows(), GalleryThumbView::MenuShow(), ring_show(), TeletextReader::SetShowHeader(), MythMainWindow::Show(), MythTVMenu::Show(), GalleryThumbView::UpdateImageItem(), and ProgFinder::updateTimesList().
void ring_show | ( | ringbuffer * | rbuf, |
unsigned int | count, | ||
uint32_t | off | ||
) |
Definition at line 373 of file ringbuffer.cpp.
int dummy_init | ( | dummy_buffer * | dbuf, |
int | s | ||
) |
Definition at line 401 of file ringbuffer.cpp.
Referenced by init_multiplex().
void dummy_destroy | ( | dummy_buffer * | dbuf | ) |
Definition at line 413 of file ringbuffer.cpp.
Referenced by finish_mpg().
void dummy_clear | ( | dummy_buffer * | dbuf | ) |
Definition at line 419 of file ringbuffer.cpp.
int dummy_add | ( | dummy_buffer * | dbuf, |
uint64_t | time, | ||
uint32_t | size | ||
) |
Definition at line 426 of file ringbuffer.cpp.
Referenced by writeout_ext(), and writeout_video().
int dummy_delete | ( | dummy_buffer * | dbuf, |
uint64_t | time | ||
) |
Definition at line 444 of file ringbuffer.cpp.
Referenced by check_times().