vdr 2.8.1
cIndexFileGenerator Class Reference

Public Member Functions

 cIndexFileGenerator (const char *RecordingName)
 ~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 2665 of file recording.c.

Constructor & Destructor Documentation

◆ cIndexFileGenerator()

cIndexFileGenerator::cIndexFileGenerator ( const char * RecordingName)

Definition at line 2676 of file recording.c.

References cThread::cThread(), recordingName, and cThread::Start().

◆ ~cIndexFileGenerator()

cIndexFileGenerator::~cIndexFileGenerator ( )

Definition at line 2683 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 2688 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(), dsyslog, cFrameDetector::Errors(), cRecordingInfo::Errors(), FileSize(), cFrameDetector::FrameHeight(), cRecordingInfo::FrameHeight(), cFrameDetector::FramesPerSecond(), cRecordingInfo::FramesPerSecond(), cFrameDetector::FrameWidth(), cRecordingInfo::FrameWidth(), cRingBufferLinear::Get(), cPatPmtParser::GetVersions(), IFG_BUFFER_SIZE, cFrameDetector::IndependentFrame(), cPatPmtParser::IsPmtPid(), KILOBYTE, LOCK_RECORDINGS_WRITE, MIN_TS_PACKETS_FOR_FRAME_DETECTOR, mtError, mtInfo, cFrameDetector::NewFrame(), cFileName::NextFile(), cFileName::Number(), cFileName::Open(), cPatPmtParser::ParsePat(), cPatPmtParser::ParsePatPmt(), cPatPmtParser::ParsePmt(), PATPID, cRingBufferLinear::Put(), cRecordingInfo::Read(), cRingBufferLinear::Read(), recordingName, cThread::Running(), cFrameDetector::ScanType(), cRecordingInfo::SetErrors(), cRecordingInfo::SetFrameParams(), cRecordingInfo::SetFramesPerSecond(), cFileName::SetOffset(), cFrameDetector::SetPid(), SetRecordingTimerId(), Setup, Skins, cString::sprintf(), cFrameDetector::Synced(), tr, TS_SIZE, TS_SYNC_BYTE, TsPid(), cPatPmtParser::Vpid(), cPatPmtParser::Vtype(), cIndexFile::Write(), and cRecordingInfo::Write().

Member Data Documentation

◆ recordingName

cString cIndexFileGenerator::recordingName
private

Definition at line 2667 of file recording.c.

Referenced by Action(), and cIndexFileGenerator().

◆ update

bool cIndexFileGenerator::update
private

Definition at line 2668 of file recording.c.


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