MythTV  master
Classes | Macros | Enumerations
libs/libmythtv/ringbuffer.h File Reference
#include <QReadWriteLock>
#include <QWaitCondition>
#include <QString>
#include <QMutex>
#include <QMap>
#include "mythconfig.h"
#include "mthread.h"
#include "libavcodec/avcodec.h"
#include "mythtvexp.h"
Include dependency graph for libs/libmythtv/ringbuffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RingBuffer
 Implements a file/stream reader/writer. More...
 

Macros

#define PNG_MIN_SIZE   20 /* header plus one empty chunk */
 
#define NUV_MIN_SIZE   204 /* header size? */
 
#define MPEG_MIN_SIZE   376 /* 2 TS packets */
 
#define kReadTestSize   PNG_MIN_SIZE
 
#define BUFFER_SIZE_MINIMUM   (4 * 1024 * 1024)
 
#define BUFFER_FACTOR_NETWORK   2
 
#define BUFFER_FACTOR_BITRATE   2
 
#define BUFFER_FACTOR_MATROSKA   2
 
#define CHUNK   32768 /* readblocksize increments */
 

Enumerations

enum  RingBufferType {
  kRingBuffer_Unknown = 0, kRingBuffer_File, kRingBuffer_DVD, kRingBuffer_BD,
  kRingBuffer_HTTP, kRingBuffer_HLS, kRingBuffer_MHEG
}
 

Macro Definition Documentation

◆ PNG_MIN_SIZE

#define PNG_MIN_SIZE   20 /* header plus one empty chunk */

Definition at line 21 of file libs/libmythtv/ringbuffer.h.

◆ NUV_MIN_SIZE

#define NUV_MIN_SIZE   204 /* header size? */

Definition at line 22 of file libs/libmythtv/ringbuffer.h.

◆ MPEG_MIN_SIZE

#define MPEG_MIN_SIZE   376 /* 2 TS packets */

Definition at line 23 of file libs/libmythtv/ringbuffer.h.

◆ kReadTestSize

#define kReadTestSize   PNG_MIN_SIZE

Definition at line 26 of file libs/libmythtv/ringbuffer.h.

◆ BUFFER_SIZE_MINIMUM

#define BUFFER_SIZE_MINIMUM   (4 * 1024 * 1024)

Definition at line 29 of file libs/libmythtv/ringbuffer.h.

◆ BUFFER_FACTOR_NETWORK

#define BUFFER_FACTOR_NETWORK   2

Definition at line 30 of file libs/libmythtv/ringbuffer.h.

◆ BUFFER_FACTOR_BITRATE

#define BUFFER_FACTOR_BITRATE   2

Definition at line 31 of file libs/libmythtv/ringbuffer.h.

◆ BUFFER_FACTOR_MATROSKA

#define BUFFER_FACTOR_MATROSKA   2

Definition at line 32 of file libs/libmythtv/ringbuffer.h.

◆ CHUNK

#define CHUNK   32768 /* readblocksize increments */

Definition at line 34 of file libs/libmythtv/ringbuffer.h.

Enumeration Type Documentation

◆ RingBufferType

Enumerator
kRingBuffer_Unknown 
kRingBuffer_File 
kRingBuffer_DVD 
kRingBuffer_BD 
kRingBuffer_HTTP 
kRingBuffer_HLS 
kRingBuffer_MHEG 

Definition at line 42 of file libs/libmythtv/ringbuffer.h.