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

#include <fifowriter.h>

Collaboration diagram for FIFOWriter:
Collaboration graph
[legend]

Classes

struct  fifo_buf
 

Public Member Functions

 FIFOWriter (int count, bool sync)
 
 FIFOWriter (const FIFOWriter &rhs)
 
 ~FIFOWriter (void)
 
bool FIFOInit (int id, const QString &desc, const QString &name, long size, int num_bufs)
 
void FIFOWrite (int id, void *buf, long size)
 
void FIFODrain (void)
 

Private Member Functions

void FIFOWriteThread (int id)
 

Private Attributes

fifo_buf ** m_fifoBuf {nullptr}
 
fifo_buf ** m_fbInptr {nullptr}
 
fifo_buf ** m_fbOutptr {nullptr}
 
FIFOThreadm_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}
 
int m_numFifos {0}
 
bool m_useSync
 

Friends

class FIFOThread
 

Detailed Description

Definition at line 30 of file fifowriter.h.

Constructor & Destructor Documentation

◆ FIFOWriter() [1/2]

FIFOWriter::FIFOWriter ( int  count,
bool  sync 
)

Definition at line 25 of file fifowriter.cpp.

◆ FIFOWriter() [2/2]

FIFOWriter::FIFOWriter ( const FIFOWriter rhs)

◆ ~FIFOWriter()

FIFOWriter::~FIFOWriter ( void  )

Definition at line 47 of file fifowriter.cpp.

Member Function Documentation

◆ FIFOInit()

bool FIFOWriter::FIFOInit ( int  id,
const QString &  desc,
const QString &  name,
long  size,
int  num_bufs 
)

Definition at line 81 of file fifowriter.cpp.

Referenced by Transcode::TranscodeFile().

◆ FIFOWrite()

void FIFOWriter::FIFOWrite ( int  id,
void *  buf,
long  size 
)

Definition at line 191 of file fifowriter.cpp.

Referenced by Transcode::TranscodeFile().

◆ FIFODrain()

void FIFOWriter::FIFODrain ( void  )

Definition at line 234 of file fifowriter.cpp.

Referenced by Transcode::TranscodeFile().

◆ FIFOWriteThread()

void FIFOWriter::FIFOWriteThread ( int  id)
private

Definition at line 135 of file fifowriter.cpp.

Referenced by FIFOThread::run().

Friends And Related Function Documentation

◆ FIFOThread

friend class FIFOThread
friend

Definition at line 32 of file fifowriter.h.

Member Data Documentation

◆ m_fifoBuf

fifo_buf** FIFOWriter::m_fifoBuf {nullptr}
private

Definition at line 51 of file fifowriter.h.

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

◆ m_fbInptr

fifo_buf** FIFOWriter::m_fbInptr {nullptr}
private

Definition at line 52 of file fifowriter.h.

Referenced by FIFODrain(), FIFOInit(), FIFOWrite(), FIFOWriter(), FIFOWriteThread(), and ~FIFOWriter().

◆ m_fbOutptr

fifo_buf** FIFOWriter::m_fbOutptr {nullptr}
private

Definition at line 53 of file fifowriter.h.

Referenced by FIFODrain(), FIFOInit(), FIFOWrite(), FIFOWriter(), FIFOWriteThread(), and ~FIFOWriter().

◆ m_fifoThrds

FIFOThread* FIFOWriter::m_fifoThrds {nullptr}
private

Definition at line 55 of file fifowriter.h.

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

◆ m_fifoLock

QMutex* FIFOWriter::m_fifoLock {nullptr}
private

Definition at line 56 of file fifowriter.h.

Referenced by FIFODrain(), FIFOWrite(), FIFOWriter(), FIFOWriteThread(), and ~FIFOWriter().

◆ m_fullCond

QWaitCondition* FIFOWriter::m_fullCond {nullptr}
private

Definition at line 57 of file fifowriter.h.

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

◆ m_emptyCond

QWaitCondition* FIFOWriter::m_emptyCond {nullptr}
private

Definition at line 58 of file fifowriter.h.

Referenced by FIFODrain(), FIFOWrite(), FIFOWriter(), FIFOWriteThread(), and ~FIFOWriter().

◆ m_filename

QString* FIFOWriter::m_filename {nullptr}
private

Definition at line 60 of file fifowriter.h.

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

◆ m_fbDesc

QString* FIFOWriter::m_fbDesc {nullptr}
private

Definition at line 61 of file fifowriter.h.

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

◆ m_maxBlkSize

long* FIFOWriter::m_maxBlkSize {nullptr}
private

Definition at line 63 of file fifowriter.h.

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

◆ m_killWr

int* FIFOWriter::m_killWr {nullptr}
private

Definition at line 64 of file fifowriter.h.

Referenced by FIFODrain(), FIFOInit(), FIFOWriter(), FIFOWriteThread(), and ~FIFOWriter().

◆ m_fbCount

int* FIFOWriter::m_fbCount {nullptr}
private

Definition at line 65 of file fifowriter.h.

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

◆ m_fbMaxCount

int* FIFOWriter::m_fbMaxCount {nullptr}
private

Definition at line 66 of file fifowriter.h.

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

◆ m_numFifos

int FIFOWriter::m_numFifos {0}
private

Definition at line 67 of file fifowriter.h.

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

◆ m_useSync

bool FIFOWriter::m_useSync
private

Definition at line 68 of file fifowriter.h.

Referenced by FIFOInit(), and FIFOWrite().


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