vdr 2.7.7
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::cThread(), recordingName, 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(), dsyslog, cRecordingInfo::Errors(), FileSize(), cFrameDetector::FrameHeight(), cRecordingInfo::FrameHeight(), cFrameDetector::FramesPerSecond(), cRecordingInfo::FramesPerSecond(), cFrameDetector::FrameWidth(), cRecordingInfo::FrameWidth(), cIndexFile::Get(), cRingBufferLinear::Get(), cPatPmtParser::GetVersions(), 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::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(), 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(), and cIndexFileGenerator().

◆ 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: