openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
eDVBTSTools Class Reference

#include <tstools.h>

Inheritance diagram for eDVBTSTools:
eDVBPMTParser

Public Types

enum  { frametypeI = 1 , frametypeP = 2 , frametypeB = 4 , frametypeAll = frametypeI | frametypeP | frametypeB }
 

Public Member Functions

 eDVBTSTools ()
 
 ~eDVBTSTools ()
 
void setSource (ePtr< iTsSource > &source, const char *streaminfo_filename=NULL)
 
int openFile (const char *filename, int nostreaminfo=0)
 
int getOffset (off_t &offset, pts_t &pts, int marg=0)
 
int getNextAccessPoint (pts_t &ts, const pts_t &start, int direction)
 
int fixupPTS (const off_t &offset, pts_t &pts)
 
int calcLen (pts_t &len)
 
int calcBitrate ()
 
int findFrame (off_t &offset, size_t &len, int &direction, int frame_types=frametypeI)
 
int findNextPicture (off_t &offset, size_t &len, int &distance, int frame_types=frametypeAll)
 
int findPMT (eDVBPMTParser::program &program)
 
- Public Member Functions inherited from eDVBPMTParser
 eDVBPMTParser ()
 
virtual ~eDVBPMTParser ()
 
void processCaDescriptor (program &program, CaDescriptor *desc)
 
virtual int getProgramInfo (program &program)
 
void clearProgramInfo (program &program)
 

Protected Member Functions

void closeSource ()
 
int getPTS (off_t &offset, pts_t &pts, int fixed=0)
 
void calcBegin ()
 
void calcEnd ()
 
void calcBeginAndEnd ()
 
void takeSamples ()
 
int takeSample (off_t off, pts_t &p)
 

Additional Inherited Members

- Protected Attributes inherited from eDVBPMTParser
eAUTable< eTable< ProgramMapSection > > m_PMT
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
frametypeI 
frametypeP 
frametypeB 
frametypeAll 

Constructor & Destructor Documentation

◆ eDVBTSTools()

eDVBTSTools::eDVBTSTools ( )

◆ ~eDVBTSTools()

eDVBTSTools::~eDVBTSTools ( )

Member Function Documentation

◆ calcBegin()

void eDVBTSTools::calcBegin ( )
protected

◆ calcBeginAndEnd()

void eDVBTSTools::calcBeginAndEnd ( )
protected

◆ calcBitrate()

int eDVBTSTools::calcBitrate ( )

◆ calcEnd()

void eDVBTSTools::calcEnd ( )
protected

◆ calcLen()

int eDVBTSTools::calcLen ( pts_t len)

◆ closeSource()

void eDVBTSTools::closeSource ( )
protected

◆ findFrame()

int eDVBTSTools::findFrame ( off_t &  offset,
size_t &  len,
int &  direction,
int  frame_types = frametypeI 
)

findFrame: finds a specific frame at a given position findFrame will look for the specified frame type starting at the given position, moving forward (when direction is >0) or backward (when direction is <0). (direction=0 is a special case and also moves forward, but starts with the last frame.) return values are the new offset, the length of the found frame (both unaligned), and the (signed) number of frames skipped.

◆ findNextPicture()

int eDVBTSTools::findNextPicture ( off_t &  offset,
size_t &  len,
int &  distance,
int  frame_types = frametypeAll 
)

◆ findPMT()

int eDVBTSTools::findPMT ( eDVBPMTParser::program program)

◆ fixupPTS()

int eDVBTSTools::fixupPTS ( const off_t &  offset,
pts_t pts 
)

◆ getNextAccessPoint()

int eDVBTSTools::getNextAccessPoint ( pts_t ts,
const pts_t start,
int  direction 
)

◆ getOffset()

int eDVBTSTools::getOffset ( off_t &  offset,
pts_t pts,
int  marg = 0 
)

◆ getPTS()

int eDVBTSTools::getPTS ( off_t &  offset,
pts_t pts,
int  fixed = 0 
)
protected

◆ openFile()

int eDVBTSTools::openFile ( const char *  filename,
int  nostreaminfo = 0 
)

◆ setSource()

void eDVBTSTools::setSource ( ePtr< iTsSource > &  source,
const char *  streaminfo_filename = NULL 
)

◆ takeSample()

int eDVBTSTools::takeSample ( off_t  off,
pts_t p 
)
protected

◆ takeSamples()

void eDVBTSTools::takeSamples ( )
protected

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