MythTV  master
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
MythFIFOWriter Class Reference

#include <mythfifowriter.h>

Collaboration diagram for MythFIFOWriter:
Collaboration graph
[legend]

Classes

struct  MythFifoBuffer
 

Public Member Functions

 MythFIFOWriter (uint Count, bool Sync)
 
 ~MythFIFOWriter (void)
 
bool FIFOInit (uint Id, const QString &Desc, const QString &Name, long Size, int NumBufs)
 
void FIFOWrite (uint Id, void *Buffer, long Size)
 
void FIFODrain (void)
 

Private Member Functions

void FIFOWriteThread (int Id)
 

Private Attributes

MythFifoBuffer ** m_fifoBuf { nullptr }
 
MythFifoBuffer ** m_fbInptr { nullptr }
 
MythFifoBuffer ** m_fbOutptr { nullptr }
 
MythFIFOThreadm_fifoThrds { nullptr }
 
QMutex * m_fifoLock { nullptr }
 
QWaitCondition * m_fullCond { nullptr }
 
QWaitCondition * m_emptyCond { nullptr }
 
QString * m_filename { nullptr }
 
QString * m_fbDesc { nullptr }
 
long * m_maxBlkSize { nullptr }
 
int * m_killWr { nullptr }
 
int * m_fbCount { nullptr }
 
int * m_fbMaxCount { nullptr }
 
uint m_numFifos { 0 }
 
bool m_useSync
 

Friends

class MythFIFOThread
 

Detailed Description

Definition at line 33 of file mythfifowriter.h.

Constructor & Destructor Documentation

◆ MythFIFOWriter()

MythFIFOWriter::MythFIFOWriter ( uint  Count,
bool  Sync 
)

Definition at line 55 of file mythfifowriter.cpp.

◆ ~MythFIFOWriter()

MythFIFOWriter::~MythFIFOWriter ( void  )

Definition at line 77 of file mythfifowriter.cpp.

Member Function Documentation

◆ FIFOInit()

bool MythFIFOWriter::FIFOInit ( uint  Id,
const QString &  Desc,
const QString &  Name,
long  Size,
int  NumBufs 
)

Definition at line 109 of file mythfifowriter.cpp.

Referenced by Transcode::TranscodeFile().

◆ FIFOWrite()

void MythFIFOWriter::FIFOWrite ( uint  Id,
void *  Buffer,
long  Size 
)

Definition at line 210 of file mythfifowriter.cpp.

Referenced by Transcode::TranscodeFile().

◆ FIFODrain()

void MythFIFOWriter::FIFODrain ( void  )

Definition at line 255 of file mythfifowriter.cpp.

Referenced by Transcode::TranscodeFile().

◆ FIFOWriteThread()

void MythFIFOWriter::FIFOWriteThread ( int  Id)
private

Definition at line 155 of file mythfifowriter.cpp.

Referenced by MythFIFOThread::run().

Friends And Related Function Documentation

◆ MythFIFOThread

friend class MythFIFOThread
friend

Definition at line 35 of file mythfifowriter.h.

Member Data Documentation

◆ m_fifoBuf

MythFifoBuffer** MythFIFOWriter::m_fifoBuf { nullptr }
private

Definition at line 56 of file mythfifowriter.h.

Referenced by FIFOInit(), FIFOWriteThread(), MythFIFOWriter(), and ~MythFIFOWriter().

◆ m_fbInptr

MythFifoBuffer** MythFIFOWriter::m_fbInptr { nullptr }
private

◆ m_fbOutptr

MythFifoBuffer** MythFIFOWriter::m_fbOutptr { nullptr }
private

◆ m_fifoThrds

MythFIFOThread* MythFIFOWriter::m_fifoThrds { nullptr }
private

Definition at line 60 of file mythfifowriter.h.

Referenced by FIFOInit(), MythFIFOWriter(), and ~MythFIFOWriter().

◆ m_fifoLock

QMutex* MythFIFOWriter::m_fifoLock { nullptr }
private

◆ m_fullCond

QWaitCondition* MythFIFOWriter::m_fullCond { nullptr }
private

Definition at line 62 of file mythfifowriter.h.

Referenced by FIFOWrite(), FIFOWriteThread(), MythFIFOWriter(), and ~MythFIFOWriter().

◆ m_emptyCond

QWaitCondition* MythFIFOWriter::m_emptyCond { nullptr }
private

◆ m_filename

QString* MythFIFOWriter::m_filename { nullptr }
private

Definition at line 65 of file mythfifowriter.h.

Referenced by FIFOInit(), FIFOWriteThread(), MythFIFOWriter(), and ~MythFIFOWriter().

◆ m_fbDesc

QString* MythFIFOWriter::m_fbDesc { nullptr }
private

Definition at line 66 of file mythfifowriter.h.

Referenced by FIFOInit(), FIFOWrite(), MythFIFOWriter(), and ~MythFIFOWriter().

◆ m_maxBlkSize

long* MythFIFOWriter::m_maxBlkSize { nullptr }
private

Definition at line 68 of file mythfifowriter.h.

Referenced by FIFOInit(), FIFOWrite(), MythFIFOWriter(), and ~MythFIFOWriter().

◆ m_killWr

int* MythFIFOWriter::m_killWr { nullptr }
private

◆ m_fbCount

int* MythFIFOWriter::m_fbCount { nullptr }
private

Definition at line 70 of file mythfifowriter.h.

Referenced by FIFOInit(), FIFOWrite(), MythFIFOWriter(), and ~MythFIFOWriter().

◆ m_fbMaxCount

int* MythFIFOWriter::m_fbMaxCount { nullptr }
private

Definition at line 71 of file mythfifowriter.h.

Referenced by FIFOInit(), FIFOWrite(), MythFIFOWriter(), and ~MythFIFOWriter().

◆ m_numFifos

uint MythFIFOWriter::m_numFifos { 0 }
private

Definition at line 72 of file mythfifowriter.h.

Referenced by FIFODrain(), FIFOInit(), FIFOWrite(), and ~MythFIFOWriter().

◆ m_useSync

bool MythFIFOWriter::m_useSync
private

Definition at line 73 of file mythfifowriter.h.

Referenced by FIFOInit(), and FIFOWrite().


The documentation for this class was generated from the following files: