vdr 2.7.9
cFrameChecker Class Reference

#include <remux.h>

Public Member Functions

 cFrameChecker (void)
 
 ~cFrameChecker ()
 
void Reset (void)
 
bool Check (const uchar *Data, int Length, bool Independent, bool &Errors, bool &Missing, bool Final)
 
int TotalErrors (void)
 

Private Attributes

cTsCheckertsChecker
 
cPtsCheckerptsChecker
 

Detailed Description

Definition at line 535 of file remux.h.

Constructor & Destructor Documentation

◆ cFrameChecker()

cFrameChecker::cFrameChecker ( void )

Definition at line 2163 of file remux.c.

References ptsChecker, and tsChecker.

◆ ~cFrameChecker()

cFrameChecker::~cFrameChecker ( )

Definition at line 2169 of file remux.c.

References ptsChecker, and tsChecker.

Member Function Documentation

◆ Check()

bool cFrameChecker::Check ( const uchar * Data,
int Length,
bool Independent,
bool & Errors,
bool & Missing,
bool Final )

Check Length bytes of the given Data (which must be a complete frame), with Independent telling whether this is an I-frame.

Errors returns true if this frame contains any TS errors, while Missing is true if there are any frames missing before this one. Final must be set to true if this is the last frame to be checked, otherwise false. Returns true if either Errors or Missing is true.

Definition at line 2180 of file remux.c.

References ptsChecker, tsChecker, and TsGetPts().

Referenced by cCuttingThread::ProcessSequence().

◆ Reset()

void cFrameChecker::Reset ( void )

Definition at line 2175 of file remux.c.

References tsChecker.

Referenced by cCuttingThread::ProcessSequence().

◆ TotalErrors()

int cFrameChecker::TotalErrors ( void )

Returns the total number of all errors and missing frames detected in the data given to the calls to Check().

Definition at line 2191 of file remux.c.

References ptsChecker, and tsChecker.

Referenced by cCuttingThread::ProcessSequence().

Member Data Documentation

◆ ptsChecker

cPtsChecker* cFrameChecker::ptsChecker
private

Definition at line 538 of file remux.h.

Referenced by cFrameChecker(), Check(), TotalErrors(), and ~cFrameChecker().

◆ tsChecker

cTsChecker* cFrameChecker::tsChecker
private

Definition at line 537 of file remux.h.

Referenced by cFrameChecker(), Check(), Reset(), TotalErrors(), and ~cFrameChecker().


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