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

◆ OutputDescriptor_t

Constructor & Destructor Documentation

◆ MPEG1or2Demux()

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

◆ ~MPEG1or2Demux()

virtual MPEG1or2Demux::~MPEG1or2Demux ( )
privatevirtual

Member Function Documentation

◆ close() [1/2]

static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
)
staticinherited

◆ close() [2/2]

static void Medium::close ( Medium medium)
staticinherited

◆ continueReadProcessing() [1/2]

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

◆ continueReadProcessing() [2/2]

void MPEG1or2Demux::continueReadProcessing ( )
private

◆ createNew()

static MPEG1or2Demux* MPEG1or2Demux::createNew ( UsageEnvironment env,
FramedSource inputSource,
Boolean  reclaimWhenLastESDies = False 
)
static

◆ envir()

UsageEnvironment& Medium::envir ( ) const
inlineinherited

◆ flushInput()

void MPEG1or2Demux::flushInput ( )

◆ getNextFrame()

void MPEG1or2Demux::getNextFrame ( u_int8_t  streamIdTag,
unsigned char *  to,
unsigned  maxSize,
FramedSource::afterGettingFunc afterGettingFunc,
void *  afterGettingClientData,
FramedSource::onCloseFunc onCloseFunc,
void *  onCloseClientData 
)

◆ handleClosure()

static void MPEG1or2Demux::handleClosure ( void *  clientData)
static

◆ inputSource()

FramedSource* MPEG1or2Demux::inputSource ( ) const
inline

Definition at line 64 of file MPEG1or2Demux.hh.

64 { return fInputSource; }
FramedSource * fInputSource

References fInputSource.

◆ isMediaSession()

virtual Boolean Medium::isMediaSession ( ) const
virtualinherited

Reimplemented in MediaSession.

◆ isRTCPInstance()

virtual Boolean Medium::isRTCPInstance ( ) const
virtualinherited

Reimplemented in RTCPInstance.

◆ isRTSPClient()

virtual Boolean Medium::isRTSPClient ( ) const
virtualinherited

Reimplemented in RTSPClient.

◆ isRTSPServer()

virtual Boolean Medium::isRTSPServer ( ) const
virtualinherited

Reimplemented in RTSPServer.

◆ isServerMediaSession()

virtual Boolean Medium::isServerMediaSession ( ) const
virtualinherited

Reimplemented in ServerMediaSession.

◆ isSink()

virtual Boolean Medium::isSink ( ) const
virtualinherited

Reimplemented in MediaSink.

◆ isSource()

virtual Boolean Medium::isSource ( ) const
virtualinherited

Reimplemented in MediaSource.

◆ lastSeenSCR()

SCR& MPEG1or2Demux::lastSeenSCR ( )
inline

Definition at line 76 of file MPEG1or2Demux.hh.

76 { return fLastSeenSCR; }

References fLastSeenSCR.

◆ lookupByName()

static Boolean Medium::lookupByName ( UsageEnvironment env,
char const *  mediumName,
Medium *&  resultMedium 
)
staticinherited

◆ mpegVersion()

unsigned char MPEG1or2Demux::mpegVersion ( ) const
inline

Definition at line 78 of file MPEG1or2Demux.hh.

78 { return fMPEGversion; }
unsigned char fMPEGversion

References fMPEGversion.

◆ name()

char const* Medium::name ( ) const
inlineinherited

Definition at line 61 of file Media.hh.

61 {return fMediumName;}
char fMediumName[mediumNameMaxLen]
Definition: Media.hh:83

References Medium::fMediumName.

◆ newAudioStream()

MPEG1or2DemuxedElementaryStream* MPEG1or2Demux::newAudioStream ( )

◆ newElementaryStream()

MPEG1or2DemuxedElementaryStream* MPEG1or2Demux::newElementaryStream ( u_int8_t  streamIdTag)

◆ newRawPESStream()

MPEG1or2DemuxedElementaryStream* MPEG1or2Demux::newRawPESStream ( )

◆ newVideoStream()

MPEG1or2DemuxedElementaryStream* MPEG1or2Demux::newVideoStream ( )

◆ nextTask()

TaskToken& Medium::nextTask ( )
inlineprotectedinherited

Definition at line 77 of file Media.hh.

77  {
78  return fNextTask;
79  }
TaskToken fNextTask
Definition: Media.hh:84

References Medium::fNextTask.

◆ noteElementaryStreamDeletion()

void MPEG1or2Demux::noteElementaryStreamDeletion ( MPEG1or2DemuxedElementaryStream es)
private

◆ registerReadInterest()

void MPEG1or2Demux::registerReadInterest ( u_int8_t  streamIdTag,
unsigned char *  to,
unsigned  maxSize,
FramedSource::afterGettingFunc afterGettingFunc,
void *  afterGettingClientData,
FramedSource::onCloseFunc onCloseFunc,
void *  onCloseClientData 
)
private

◆ stopGettingFrames()

void MPEG1or2Demux::stopGettingFrames ( u_int8_t  streamIdTag)

◆ useSavedData()

Boolean MPEG1or2Demux::useSavedData ( u_int8_t  streamIdTag,
unsigned char *  to,
unsigned  maxSize,
FramedSource::afterGettingFunc afterGettingFunc,
void *  afterGettingClientData 
)
private

Friends And Related Function Documentation

◆ MPEG1or2DemuxedElementaryStream

friend class MPEG1or2DemuxedElementaryStream
friend

Definition at line 106 of file MPEG1or2Demux.hh.

◆ MPEGProgramStreamParser

friend class MPEGProgramStreamParser
friend

Definition at line 147 of file MPEG1or2Demux.hh.

Field Documentation

◆ fHaveUndeliveredData

Boolean MPEG1or2Demux::fHaveUndeliveredData
private

Definition at line 143 of file MPEG1or2Demux.hh.

◆ fInputSource

FramedSource* MPEG1or2Demux::fInputSource
private

Definition at line 110 of file MPEG1or2Demux.hh.

Referenced by inputSource().

◆ fLastSeenSCR

SCR MPEG1or2Demux::fLastSeenSCR
private

Definition at line 111 of file MPEG1or2Demux.hh.

Referenced by lastSeenSCR().

◆ fMPEGversion

unsigned char MPEG1or2Demux::fMPEGversion
private

Definition at line 112 of file MPEG1or2Demux.hh.

Referenced by mpegVersion().

◆ fNextAudioStreamNumber

unsigned char MPEG1or2Demux::fNextAudioStreamNumber
private

Definition at line 114 of file MPEG1or2Demux.hh.

◆ fNextVideoStreamNumber

unsigned char MPEG1or2Demux::fNextVideoStreamNumber
private

Definition at line 115 of file MPEG1or2Demux.hh.

◆ fNumOutstandingESs

unsigned MPEG1or2Demux::fNumOutstandingESs
private

Definition at line 117 of file MPEG1or2Demux.hh.

◆ fNumPendingReads

unsigned MPEG1or2Demux::fNumPendingReads
private

Definition at line 142 of file MPEG1or2Demux.hh.

◆ fOutput

OutputDescriptor_t MPEG1or2Demux::fOutput[256]
private

Definition at line 140 of file MPEG1or2Demux.hh.

◆ fParser

class MPEGProgramStreamParser* MPEG1or2Demux::fParser
private

Definition at line 146 of file MPEG1or2Demux.hh.

◆ fReclaimWhenLastESDies

Boolean MPEG1or2Demux::fReclaimWhenLastESDies
private

Definition at line 116 of file MPEG1or2Demux.hh.


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