live
Data Structures | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Friends
MPEG1or2Demux Class Reference

#include <MPEG1or2Demux.hh>

Inheritance diagram for MPEG1or2Demux:
Inheritance graph
[legend]
Collaboration diagram for MPEG1or2Demux:
Collaboration graph
[legend]

Data Structures

struct  OutputDescriptor
 
class  SCR
 

Public Member Functions

MPEG1or2DemuxedElementaryStreamnewElementaryStream (u_int8_t streamIdTag)
 
MPEG1or2DemuxedElementaryStreamnewAudioStream ()
 
MPEG1or2DemuxedElementaryStreamnewVideoStream ()
 
MPEG1or2DemuxedElementaryStreamnewRawPESStream ()
 
void getNextFrame (u_int8_t streamIdTag, unsigned char *to, unsigned maxSize, FramedSource::afterGettingFunc *afterGettingFunc, void *afterGettingClientData, FramedSource::onCloseFunc *onCloseFunc, void *onCloseClientData)
 
void stopGettingFrames (u_int8_t streamIdTag)
 
FramedSourceinputSource () const
 
SCRlastSeenSCR ()
 
unsigned char mpegVersion () const
 
void flushInput ()
 
UsageEnvironmentenvir () const
 
char const * name () const
 
virtual Boolean isSource () const
 
virtual Boolean isSink () const
 
virtual Boolean isRTCPInstance () const
 
virtual Boolean isRTSPClient () const
 
virtual Boolean isRTSPServer () const
 
virtual Boolean isMediaSession () const
 
virtual Boolean isServerMediaSession () const
 

Static Public Member Functions

static MPEG1or2DemuxcreateNew (UsageEnvironment &env, FramedSource *inputSource, Boolean reclaimWhenLastESDies=False)
 
static void handleClosure (void *clientData)
 
static Boolean lookupByName (UsageEnvironment &env, char const *mediumName, Medium *&resultMedium)
 
static void close (UsageEnvironment &env, char const *mediumName)
 
static void close (Medium *medium)
 

Protected Member Functions

TaskTokennextTask ()
 

Private Types

typedef struct
MPEG1or2Demux::OutputDescriptor 
OutputDescriptor_t
 

Private Member Functions

 MPEG1or2Demux (UsageEnvironment &env, FramedSource *inputSource, Boolean reclaimWhenLastESDies)
 
virtual ~MPEG1or2Demux ()
 
void registerReadInterest (u_int8_t streamIdTag, unsigned char *to, unsigned maxSize, FramedSource::afterGettingFunc *afterGettingFunc, void *afterGettingClientData, FramedSource::onCloseFunc *onCloseFunc, void *onCloseClientData)
 
Boolean useSavedData (u_int8_t streamIdTag, unsigned char *to, unsigned maxSize, FramedSource::afterGettingFunc *afterGettingFunc, void *afterGettingClientData)
 
void continueReadProcessing ()
 
void noteElementaryStreamDeletion (MPEG1or2DemuxedElementaryStream *es)
 

Static Private Member Functions

static void continueReadProcessing (void *clientData, unsigned char *ptr, unsigned size, struct timeval presentationTime)
 

Private Attributes

FramedSourcefInputSource
 
SCR fLastSeenSCR
 
unsigned char fMPEGversion
 
unsigned char fNextAudioStreamNumber
 
unsigned char fNextVideoStreamNumber
 
Boolean fReclaimWhenLastESDies
 
unsigned fNumOutstandingESs
 
OutputDescriptor_t fOutput [256]
 
unsigned fNumPendingReads
 
Boolean fHaveUndeliveredData
 
class MPEGProgramStreamParserfParser
 

Friends

class MPEG1or2DemuxedElementaryStream
 
class MPEGProgramStreamParser
 

Detailed Description

Definition at line 30 of file MPEG1or2Demux.hh.

Member Typedef Documentation

Constructor & Destructor Documentation

MPEG1or2Demux::MPEG1or2Demux ( UsageEnvironment env,
FramedSource inputSource,
Boolean  reclaimWhenLastESDies 
)
private
virtual MPEG1or2Demux::~MPEG1or2Demux ( )
privatevirtual

Member Function Documentation

static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
)
staticinherited
static void Medium::close ( Medium medium)
staticinherited
static void MPEG1or2Demux::continueReadProcessing ( void *  clientData,
unsigned char *  ptr,
unsigned  size,
struct timeval  presentationTime 
)
staticprivate
void MPEG1or2Demux::continueReadProcessing ( )
private
static MPEG1or2Demux* MPEG1or2Demux::createNew ( UsageEnvironment env,
FramedSource inputSource,
Boolean  reclaimWhenLastESDies = False 
)
static
UsageEnvironment& Medium::envir ( ) const
inlineinherited
void MPEG1or2Demux::flushInput ( )
void MPEG1or2Demux::getNextFrame ( u_int8_t  streamIdTag,
unsigned char *  to,
unsigned  maxSize,
FramedSource::afterGettingFunc afterGettingFunc,
void *  afterGettingClientData,
FramedSource::onCloseFunc onCloseFunc,
void *  onCloseClientData 
)
static void MPEG1or2Demux::handleClosure ( void *  clientData)
static
FramedSource* MPEG1or2Demux::inputSource ( ) const
inline

Definition at line 64 of file MPEG1or2Demux.hh.

References fInputSource.

64 { return fInputSource; }
FramedSource * fInputSource
virtual Boolean Medium::isMediaSession ( ) const
virtualinherited

Reimplemented in MediaSession.

virtual Boolean Medium::isRTCPInstance ( ) const
virtualinherited

Reimplemented in RTCPInstance.

virtual Boolean Medium::isRTSPClient ( ) const
virtualinherited

Reimplemented in RTSPClient.

virtual Boolean Medium::isRTSPServer ( ) const
virtualinherited

Reimplemented in RTSPServer.

virtual Boolean Medium::isServerMediaSession ( ) const
virtualinherited

Reimplemented in ServerMediaSession.

virtual Boolean Medium::isSink ( ) const
virtualinherited

Reimplemented in MediaSink.

virtual Boolean Medium::isSource ( ) const
virtualinherited

Reimplemented in MediaSource.

SCR& MPEG1or2Demux::lastSeenSCR ( )
inline

Definition at line 76 of file MPEG1or2Demux.hh.

References fLastSeenSCR.

76 { return fLastSeenSCR; }
static Boolean Medium::lookupByName ( UsageEnvironment env,
char const *  mediumName,
Medium *&  resultMedium 
)
staticinherited
unsigned char MPEG1or2Demux::mpegVersion ( ) const
inline

Definition at line 78 of file MPEG1or2Demux.hh.

References fMPEGversion.

78 { return fMPEGversion; }
unsigned char fMPEGversion
char const* Medium::name ( ) const
inlineinherited

Definition at line 61 of file Media.hh.

References Medium::fMediumName.

61 {return fMediumName;}
char fMediumName[mediumNameMaxLen]
Definition: Media.hh:83
MPEG1or2DemuxedElementaryStream* MPEG1or2Demux::newAudioStream ( )
MPEG1or2DemuxedElementaryStream* MPEG1or2Demux::newElementaryStream ( u_int8_t  streamIdTag)
MPEG1or2DemuxedElementaryStream* MPEG1or2Demux::newRawPESStream ( )
MPEG1or2DemuxedElementaryStream* MPEG1or2Demux::newVideoStream ( )
TaskToken& Medium::nextTask ( )
inlineprotectedinherited

Definition at line 77 of file Media.hh.

References Medium::fNextTask.

77  {
78  return fNextTask;
79  }
TaskToken fNextTask
Definition: Media.hh:84
void MPEG1or2Demux::noteElementaryStreamDeletion ( MPEG1or2DemuxedElementaryStream es)
private
void MPEG1or2Demux::registerReadInterest ( u_int8_t  streamIdTag,
unsigned char *  to,
unsigned  maxSize,
FramedSource::afterGettingFunc afterGettingFunc,
void *  afterGettingClientData,
FramedSource::onCloseFunc onCloseFunc,
void *  onCloseClientData 
)
private
void MPEG1or2Demux::stopGettingFrames ( u_int8_t  streamIdTag)
Boolean MPEG1or2Demux::useSavedData ( u_int8_t  streamIdTag,
unsigned char *  to,
unsigned  maxSize,
FramedSource::afterGettingFunc afterGettingFunc,
void *  afterGettingClientData 
)
private

Friends And Related Function Documentation

friend class MPEG1or2DemuxedElementaryStream
friend

Definition at line 106 of file MPEG1or2Demux.hh.

friend class MPEGProgramStreamParser
friend

Definition at line 147 of file MPEG1or2Demux.hh.

Field Documentation

Boolean MPEG1or2Demux::fHaveUndeliveredData
private

Definition at line 143 of file MPEG1or2Demux.hh.

FramedSource* MPEG1or2Demux::fInputSource
private

Definition at line 110 of file MPEG1or2Demux.hh.

Referenced by inputSource().

SCR MPEG1or2Demux::fLastSeenSCR
private

Definition at line 111 of file MPEG1or2Demux.hh.

Referenced by lastSeenSCR().

unsigned char MPEG1or2Demux::fMPEGversion
private

Definition at line 112 of file MPEG1or2Demux.hh.

Referenced by mpegVersion().

unsigned char MPEG1or2Demux::fNextAudioStreamNumber
private

Definition at line 114 of file MPEG1or2Demux.hh.

unsigned char MPEG1or2Demux::fNextVideoStreamNumber
private

Definition at line 115 of file MPEG1or2Demux.hh.

unsigned MPEG1or2Demux::fNumOutstandingESs
private

Definition at line 117 of file MPEG1or2Demux.hh.

unsigned MPEG1or2Demux::fNumPendingReads
private

Definition at line 142 of file MPEG1or2Demux.hh.

OutputDescriptor_t MPEG1or2Demux::fOutput[256]
private

Definition at line 140 of file MPEG1or2Demux.hh.

class MPEGProgramStreamParser* MPEG1or2Demux::fParser
private

Definition at line 146 of file MPEG1or2Demux.hh.

Boolean MPEG1or2Demux::fReclaimWhenLastESDies
private

Definition at line 116 of file MPEG1or2Demux.hh.


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