cFrameDetector Class Reference

#include <remux.h>

List of all members.

Public Member Functions

 cFrameDetector (int Pid, int Type)
int Analyze (const uchar *Data, int Length)
bool NewFrame (void)
bool IndependentFrame (void)
double FramesPerSecond (void)

Private Attributes

int pid
int type
bool newFrame
bool independentFrame
int64_t lastPts
bool isVideo
int frameDuration
int framesPerPayloadUnit
bool scanning
uint32_t scanner


Detailed Description

Definition at line 253 of file remux.h.


Constructor & Destructor Documentation

cFrameDetector::cFrameDetector ( int  Pid,
int  Type 
)


Member Function Documentation

int cFrameDetector::Analyze ( const uchar Data,
int  Length 
)

Analyzes the TS packets pointed to by Data. Length is the number of bytes Data points to, and must be a multiple of 188. Returns the number of bytes that have been analyzed and may be written to the recording file. If the return value is 0, the data was not sufficient for analyzing and Analyze() needs to be called again with more actual data.

Definition at line 622 of file remux.c.

References dbgframes, dsyslog, esyslog, frameDuration, framesPerPayloadUnit, independentFrame, isVideo, lastPts, newFrame, PesGetPts(), PesHasPts(), PesPayloadOffset(), pid, scanner, scanning, TS_SIZE, TsHasPayload(), TsIsScrambled(), TsPayloadOffset(), TsPayloadStart(), TsPid(), and type.

Referenced by cRecorder::Action().

Here is the call graph for this function:

bool cFrameDetector::NewFrame ( void   )  [inline]

Returns true if the data given to the last call to Analyze() started a new frame.

Definition at line 274 of file remux.h.

References newFrame.

Referenced by cRecorder::Action().

bool cFrameDetector::IndependentFrame ( void   )  [inline]

Returns true if a new frame was detected and this is an independent frame (i.e. one that can be displayed by itself, without using data from any other frames).

Definition at line 277 of file remux.h.

References independentFrame.

Referenced by cRecorder::Action(), and cRecorder::NextFile().

double cFrameDetector::FramesPerSecond ( void   )  [inline]

Returns the number of frames per second, or 0 if this information is not available.

Definition at line 281 of file remux.h.

References frameDuration.

Referenced by cRecorder::Action().


Member Data Documentation

int cFrameDetector::pid [private]

Definition at line 255 of file remux.h.

Referenced by Analyze(), and cFrameDetector().

int cFrameDetector::type [private]

Definition at line 256 of file remux.h.

Referenced by Analyze(), and cFrameDetector().

bool cFrameDetector::newFrame [private]

Definition at line 257 of file remux.h.

Referenced by Analyze(), cFrameDetector(), and NewFrame().

Definition at line 258 of file remux.h.

Referenced by Analyze(), cFrameDetector(), and IndependentFrame().

int64_t cFrameDetector::lastPts [private]

Definition at line 259 of file remux.h.

Referenced by Analyze(), and cFrameDetector().

bool cFrameDetector::isVideo [private]

Definition at line 260 of file remux.h.

Referenced by Analyze(), and cFrameDetector().

Definition at line 261 of file remux.h.

Referenced by Analyze(), cFrameDetector(), and FramesPerSecond().

Definition at line 262 of file remux.h.

Referenced by Analyze(), and cFrameDetector().

bool cFrameDetector::scanning [private]

Definition at line 263 of file remux.h.

Referenced by Analyze(), and cFrameDetector().

uint32_t cFrameDetector::scanner [private]

Definition at line 264 of file remux.h.

Referenced by Analyze(), and cFrameDetector().


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

Generated on Tue Jan 13 14:29:01 2009 for VDR by  doxygen 1.5.6