vdr 2.6.8
cFrameDetector Class Reference

#include <remux.h>

Public Member Functions

 cFrameDetector (int Pid=0, int Type=0)
 
void SetPid (int Pid, int Type)
 
int Analyze (const uchar *Data, int Length)
 
bool Synced (void)
 
bool NewFrame (void)
 
bool IndependentFrame (void)
 
double FramesPerSecond (void)
 
uint16_t FrameWidth (void)
 
uint16_t FrameHeight (void)
 
eScanType ScanType (void)
 
eAspectRatio AspectRatio (void)
 

Private Types

enum  { MaxPtsValues = 150 }
 

Private Attributes

int pid
 
int type
 
bool synced
 
bool newFrame
 
bool independentFrame
 
uint32_t ptsValues [MaxPtsValues]
 
int numPtsValues
 
int numIFrames
 
bool isVideo
 
double framesPerSecond
 
uint16_t frameWidth
 
uint16_t frameHeight
 
eScanType scanType
 
eAspectRatio aspectRatio
 
int framesInPayloadUnit
 
int framesPerPayloadUnit
 
bool scanning
 
cFrameParserparser
 

Detailed Description

Definition at line 526 of file remux.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
MaxPtsValues 

Definition at line 528 of file remux.h.

Constructor & Destructor Documentation

◆ cFrameDetector()

cFrameDetector::cFrameDetector ( int Pid = 0,
int Type = 0 )

Sets up a frame detector for the given Pid and stream Type.

If no Pid and Type is given, they need to be set by a separate call to SetPid().

Definition at line 1946 of file remux.c.

References arUnknown, aspectRatio, frameHeight, framesInPayloadUnit, framesPerPayloadUnit, framesPerSecond, frameWidth, independentFrame, newFrame, numIFrames, numPtsValues, parser, scanning, scanType, SetPid(), stUnknown, and synced.

Member Function Documentation

◆ Analyze()

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

◆ AspectRatio()

eAspectRatio cFrameDetector::AspectRatio ( void )
inline

Returns the aspect ratio, or arUnknown if this information is not available.

Definition at line 579 of file remux.h.

References aspectRatio.

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

◆ FrameHeight()

uint16_t cFrameDetector::FrameHeight ( void )
inline

Returns the frame height, or 0 if this information is not available.

Definition at line 575 of file remux.h.

References frameHeight.

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

◆ FramesPerSecond()

double cFrameDetector::FramesPerSecond ( void )
inline

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

Definition at line 570 of file remux.h.

References framesPerSecond.

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

◆ FrameWidth()

uint16_t cFrameDetector::FrameWidth ( void )
inline

Returns the frame width, or 0 if this information is not available.

Definition at line 573 of file remux.h.

References frameWidth.

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

◆ IndependentFrame()

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 566 of file remux.h.

References independentFrame.

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

◆ NewFrame()

bool cFrameDetector::NewFrame ( void )
inline

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

Definition at line 563 of file remux.h.

References newFrame.

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

◆ ScanType()

eScanType cFrameDetector::ScanType ( void )
inline

Returns the scan type, or stUnknown if this information is not available.

Definition at line 577 of file remux.h.

References scanType.

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

◆ SetPid()

void cFrameDetector::SetPid ( int Pid,
int Type )

Sets the Pid and stream Type to detect frames for.

Definition at line 1970 of file remux.c.

References esyslog, isVideo, parser, pid, and type.

Referenced by cIndexFileGenerator::Action(), and cFrameDetector().

◆ Synced()

bool cFrameDetector::Synced ( void )
inline

Returns true if the frame detector has synced on the data stream.

Definition at line 561 of file remux.h.

References synced.

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

Member Data Documentation

◆ aspectRatio

eAspectRatio cFrameDetector::aspectRatio
private

Definition at line 542 of file remux.h.

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

◆ frameHeight

uint16_t cFrameDetector::frameHeight
private

Definition at line 540 of file remux.h.

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

◆ framesInPayloadUnit

int cFrameDetector::framesInPayloadUnit
private

Definition at line 543 of file remux.h.

Referenced by Analyze(), and cFrameDetector().

◆ framesPerPayloadUnit

int cFrameDetector::framesPerPayloadUnit
private

Definition at line 544 of file remux.h.

Referenced by Analyze(), and cFrameDetector().

◆ framesPerSecond

double cFrameDetector::framesPerSecond
private

Definition at line 538 of file remux.h.

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

◆ frameWidth

uint16_t cFrameDetector::frameWidth
private

Definition at line 539 of file remux.h.

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

◆ independentFrame

bool cFrameDetector::independentFrame
private

Definition at line 533 of file remux.h.

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

◆ isVideo

bool cFrameDetector::isVideo
private

Definition at line 537 of file remux.h.

Referenced by Analyze(), and SetPid().

◆ newFrame

bool cFrameDetector::newFrame
private

Definition at line 532 of file remux.h.

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

◆ numIFrames

int cFrameDetector::numIFrames
private

Definition at line 536 of file remux.h.

Referenced by Analyze(), and cFrameDetector().

◆ numPtsValues

int cFrameDetector::numPtsValues
private

Definition at line 535 of file remux.h.

Referenced by Analyze(), and cFrameDetector().

◆ parser

cFrameParser* cFrameDetector::parser
private

Definition at line 547 of file remux.h.

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

◆ pid

int cFrameDetector::pid
private

Definition at line 529 of file remux.h.

Referenced by Analyze(), and SetPid().

◆ ptsValues

uint32_t cFrameDetector::ptsValues[MaxPtsValues]
private

Definition at line 534 of file remux.h.

Referenced by Analyze().

◆ scanning

bool cFrameDetector::scanning
private

Definition at line 546 of file remux.h.

Referenced by Analyze(), and cFrameDetector().

◆ scanType

eScanType cFrameDetector::scanType
private

Definition at line 541 of file remux.h.

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

◆ synced

bool cFrameDetector::synced
private

Definition at line 531 of file remux.h.

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

◆ type

int cFrameDetector::type
private

Definition at line 530 of file remux.h.

Referenced by SetPid().


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