vdr  2.7.6
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
cIndexFileGenerator Class Reference

Public Member Functions

 cIndexFileGenerator (const char *RecordingName, bool Update=false)
 
 ~cIndexFileGenerator ()
 
- Public Member Functions inherited from cThread
 cThread (const char *Description=NULL, bool LowPriority=false)
 
virtual ~cThread ()
 
void SetDescription (const char *Description,...) __attribute__((format(printf
 
void bool Start (void)
 
bool Active (void)
 

Protected Member Functions

virtual void Action (void) override
 
- Protected Member Functions inherited from cThread
void SetPriority (int Priority)
 
void SetIOPriority (int Priority)
 
void Lock (void)
 
void Unlock (void)
 
bool Running (void)
 
void Cancel (int WaitSeconds=0)
 

Private Attributes

cString recordingName
 
bool update
 

Additional Inherited Members

- Static Public Member Functions inherited from cThread
static tThreadId ThreadId (void)
 
static tThreadId IsMainThread (void)
 
static void SetMainThreadId (void)
 

Detailed Description

Definition at line 2529 of file recording.c.

Constructor & Destructor Documentation

◆ cIndexFileGenerator()

cIndexFileGenerator::cIndexFileGenerator ( const char *  RecordingName,
bool  Update = false 
)

Definition at line 2540 of file recording.c.

References cThread::Start(), and update.

◆ ~cIndexFileGenerator()

cIndexFileGenerator::~cIndexFileGenerator ( )

Definition at line 2548 of file recording.c.

References cThread::Cancel().

Member Function Documentation

◆ Action()

void cIndexFileGenerator::Action ( void  )
overrideprotectedvirtual

A derived cThread class must implement the code it wants to execute as a separate thread in this function.

If this is a loop, it must check Running() repeatedly to see whether it's time to stop.

Implements cThread.

Definition at line 2553 of file recording.c.

References cFrameDetector::Analyze(), cPatPmtParser::Apid(), cFrameDetector::AspectRatio(), cRecordingInfo::AspectRatio(), cPatPmtParser::Atype(), cRingBufferLinear::Available(), cRingBufferLinear::Clear(), cPatPmtParser::Completed(), cRingBufferLinear::Del(), cIndexFile::Delete(), DoubleEqual(), cRecordingInfo::Errors(), FileSize(), cFrameDetector::FrameHeight(), cRecordingInfo::FrameHeight(), cFrameDetector::FramesPerSecond(), cRecordingInfo::FramesPerSecond(), cFrameDetector::FrameWidth(), cRecordingInfo::FrameWidth(), cRingBufferLinear::Get(), cIndexFile::Get(), IFG_BUFFER_SIZE, cFrameDetector::IndependentFrame(), cPatPmtParser::IsPmtPid(), isyslog, KILOBYTE, cIndexFile::Last(), LOCK_RECORDINGS_WRITE, MIN_TS_PACKETS_FOR_FRAME_DETECTOR, mtError, mtInfo, cFrameDetector::NewFrame(), cFileName::NextFile(), cFileName::Number(), cFileName::Open(), cPatPmtParser::ParsePat(), cPatPmtParser::ParsePmt(), PATPID, cRingBufferLinear::Put(), cSkins::QueueMessage(), cRecordingInfo::Read(), cRingBufferLinear::Read(), recordingName, cThread::Running(), cFrameDetector::ScanType(), cRecordingInfo::SetErrors(), cRecordingInfo::SetFrameParams(), cRecordingInfo::SetFramesPerSecond(), cFileName::SetOffset(), cFrameDetector::SetPid(), SetRecordingTimerId(), Setup, Skins, cString::sprintf(), cSetup::SVDRPHostName, cFrameDetector::Synced(), tr, TS_SIZE, TS_SYNC_BYTE, TsPid(), update, cPatPmtParser::Vpid(), cPatPmtParser::Vtype(), cIndexFile::Write(), and cRecordingInfo::Write().

Member Data Documentation

◆ recordingName

cString cIndexFileGenerator::recordingName
private

Definition at line 2531 of file recording.c.

Referenced by Action().

◆ update

bool cIndexFileGenerator::update
private

Definition at line 2532 of file recording.c.

Referenced by Action(), and cIndexFileGenerator().


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