live
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions
H264VideoStreamDiscreteFramer Class Reference

#include <H264VideoStreamDiscreteFramer.hh>

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

Public Types

typedef void( afterGettingFunc )(void *clientData, unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds)
 
typedef void( onCloseFunc )(void *clientData)
 

Public Member Functions

void getVPSandSPSandPPS (u_int8_t *&vps, unsigned &vpsSize, u_int8_t *&sps, unsigned &spsSize, u_int8_t *&pps, unsigned &ppsSize) const
 
void setVPSandSPSandPPS (u_int8_t *vps, unsigned vpsSize, u_int8_t *sps, unsigned spsSize, u_int8_t *pps, unsigned ppsSize)
 
BooleanpictureEndMarker ()
 
void flushInput ()
 
FramedSourceinputSource () const
 
void reassignInputSource (FramedSource *newInputSource)
 
void detachInputSource ()
 
void getNextFrame (unsigned char *to, unsigned maxSize, afterGettingFunc *afterGettingFunc, void *afterGettingClientData, onCloseFunc *onCloseFunc, void *onCloseClientData)
 
void handleClosure ()
 
void stopGettingFrames ()
 
virtual unsigned maxFrameSize () const
 
Boolean isCurrentlyAwaitingData () const
 
virtual Boolean isRTPSource () const
 
virtual Boolean isMPEG1or2VideoStreamFramer () const
 
virtual Boolean isMPEG4VideoStreamFramer () const
 
virtual Boolean isH265VideoStreamFramer () const
 
virtual Boolean isDVVideoStreamFramer () const
 
virtual Boolean isJPEGVideoSource () const
 
virtual Boolean isAMRAudioSource () const
 
UsageEnvironmentenvir () const
 
char const * name () 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
 
virtual Boolean isDarwinInjector () const
 

Static Public Member Functions

static
H264VideoStreamDiscreteFramer
createNew (UsageEnvironment &env, FramedSource *inputSource)
 
static Boolean lookupByName (UsageEnvironment &env, char const *sourceName, FramedSource *&resultSource)
 
static Boolean lookupByName (UsageEnvironment &env, char const *sourceName, MediaSource *&resultSource)
 
static Boolean lookupByName (UsageEnvironment &env, char const *mediumName, Medium *&resultMedium)
 
static void handleClosure (void *clientData)
 
static void afterGetting (FramedSource *source)
 
static void close (UsageEnvironment &env, char const *mediumName)
 
static void close (Medium *medium)
 

Protected Member Functions

 H264VideoStreamDiscreteFramer (UsageEnvironment &env, FramedSource *inputSource)
 
virtual ~H264VideoStreamDiscreteFramer ()
 
virtual void doGetNextFrame ()
 
void afterGettingFrame1 (unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds)
 
virtual Boolean nalUnitEndsAccessUnit (u_int8_t nal_unit_type)
 
void saveCopyOfVPS (u_int8_t *from, unsigned size)
 
void saveCopyOfSPS (u_int8_t *from, unsigned size)
 
void saveCopyOfPPS (u_int8_t *from, unsigned size)
 
void setPresentationTime ()
 
Boolean isVPS (u_int8_t nal_unit_type)
 
Boolean isSPS (u_int8_t nal_unit_type)
 
Boolean isPPS (u_int8_t nal_unit_type)
 
Boolean isVCL (u_int8_t nal_unit_type)
 
void computePresentationTime (unsigned numAdditionalPictures)
 
void setTimeCode (unsigned hours, unsigned minutes, unsigned seconds, unsigned pictures, unsigned picturesSinceLastGOP)
 
virtual char const * MIMEtype () const
 
virtual void getAttributes () const
 
virtual void doStopGettingFrames ()
 
TaskTokennextTask ()
 

Static Protected Member Functions

static void afterGettingFrame (void *clientData, unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds)
 

Protected Attributes

int fHNumber
 
u_int8_t * fLastSeenVPS
 
unsigned fLastSeenVPSSize
 
u_int8_t * fLastSeenSPS
 
unsigned fLastSeenSPSSize
 
u_int8_t * fLastSeenPPS
 
unsigned fLastSeenPPSSize
 
struct timeval fNextPresentationTime
 
double fFrameRate
 
unsigned fPictureCount
 
Boolean fPictureEndMarker
 
struct timeval fPresentationTimeBase
 
class MPEGVideoStreamParserfParser
 
FramedSourcefInputSource
 
unsigned char * fTo
 
unsigned fMaxSize
 
unsigned fFrameSize
 
unsigned fNumTruncatedBytes
 
struct timeval fPresentationTime
 
unsigned fDurationInMicroseconds
 

Private Member Functions

virtual Boolean isH264VideoStreamFramer () const
 

Detailed Description

Definition at line 31 of file H264VideoStreamDiscreteFramer.hh.

Member Typedef Documentation

typedef void( FramedSource::afterGettingFunc)(void *clientData, unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds)
inherited

Definition at line 36 of file FramedSource.hh.

typedef void( FramedSource::onCloseFunc)(void *clientData)
inherited

Definition at line 40 of file FramedSource.hh.

Constructor & Destructor Documentation

H264VideoStreamDiscreteFramer::H264VideoStreamDiscreteFramer ( UsageEnvironment env,
FramedSource inputSource 
)
protected
virtual H264VideoStreamDiscreteFramer::~H264VideoStreamDiscreteFramer ( )
protectedvirtual

Member Function Documentation

static void FramedSource::afterGetting ( FramedSource source)
staticinherited
static void H264or5VideoStreamDiscreteFramer::afterGettingFrame ( void *  clientData,
unsigned  frameSize,
unsigned  numTruncatedBytes,
struct timeval  presentationTime,
unsigned  durationInMicroseconds 
)
staticprotectedinherited
void H264or5VideoStreamDiscreteFramer::afterGettingFrame1 ( unsigned  frameSize,
unsigned  numTruncatedBytes,
struct timeval  presentationTime,
unsigned  durationInMicroseconds 
)
protectedinherited
static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
)
staticinherited
static void Medium::close ( Medium medium)
staticinherited
void MPEGVideoStreamFramer::computePresentationTime ( unsigned  numAdditionalPictures)
protectedinherited
static H264VideoStreamDiscreteFramer* H264VideoStreamDiscreteFramer::createNew ( UsageEnvironment env,
FramedSource inputSource 
)
static
void FramedFilter::detachInputSource ( )
inherited
virtual void H264or5VideoStreamDiscreteFramer::doGetNextFrame ( )
protectedvirtualinherited

Reimplemented from MPEGVideoStreamFramer.

virtual void FramedFilter::doStopGettingFrames ( )
protectedvirtualinherited
UsageEnvironment& Medium::envir ( ) const
inlineinherited

Definition at line 59 of file Media.hh.

References Medium::fEnviron.

Referenced by MediaSubsession::env(), RTPInterface::envir(), RTSPServer::RTSPClientConnection::envir(), and RTSPServer::RTSPClientSession::envir().

59 {return fEnviron;}
UsageEnvironment & fEnviron
Definition: Media.hh:83
void MPEGVideoStreamFramer::flushInput ( )
inherited
virtual void FramedFilter::getAttributes ( ) const
protectedvirtualinherited

Reimplemented from MediaSource.

Reimplemented in MP3ADUTranscoder.

void FramedSource::getNextFrame ( unsigned char *  to,
unsigned  maxSize,
afterGettingFunc afterGettingFunc,
void *  afterGettingClientData,
onCloseFunc onCloseFunc,
void *  onCloseClientData 
)
inherited
void H264or5VideoStreamFramer::getVPSandSPSandPPS ( u_int8_t *&  vps,
unsigned &  vpsSize,
u_int8_t *&  sps,
unsigned &  spsSize,
u_int8_t *&  pps,
unsigned &  ppsSize 
) const
inlineinherited

Definition at line 30 of file H264or5VideoStreamFramer.hh.

References H264or5VideoStreamFramer::fLastSeenPPS, H264or5VideoStreamFramer::fLastSeenPPSSize, H264or5VideoStreamFramer::fLastSeenSPS, H264or5VideoStreamFramer::fLastSeenSPSSize, H264or5VideoStreamFramer::fLastSeenVPS, and H264or5VideoStreamFramer::fLastSeenVPSSize.

32  {
33  // Returns pointers to copies of the most recently seen VPS (video parameter set)
34  // SPS (sequence parameter set) and PPS (picture parameter set) NAL units.
35  // (NULL pointers are returned if the NAL units have not yet been seen.)
36  vps = fLastSeenVPS; vpsSize = fLastSeenVPSSize;
37  sps = fLastSeenSPS; spsSize = fLastSeenSPSSize;
38  pps = fLastSeenPPS; ppsSize = fLastSeenPPSSize;
39  }
static void FramedSource::handleClosure ( void *  clientData)
staticinherited
void FramedSource::handleClosure ( )
inherited
FramedSource* FramedFilter::inputSource ( ) const
inlineinherited

Definition at line 30 of file FramedFilter.hh.

References FramedFilter::fInputSource.

30 { return fInputSource; }
FramedSource * fInputSource
Definition: FramedFilter.hh:49
virtual Boolean MediaSource::isAMRAudioSource ( ) const
virtualinherited

Reimplemented in AMRAudioSource.

Boolean FramedSource::isCurrentlyAwaitingData ( ) const
inlineinherited

Definition at line 61 of file FramedSource.hh.

References FramedSource::fIsCurrentlyAwaitingData.

Boolean fIsCurrentlyAwaitingData
Definition: FramedSource.hh:92
virtual Boolean Medium::isDarwinInjector ( ) const
virtualinherited

Reimplemented in DarwinInjector.

virtual Boolean MediaSource::isDVVideoStreamFramer ( ) const
virtualinherited

Reimplemented in DVVideoStreamFramer.

virtual Boolean H264VideoStreamDiscreteFramer::isH264VideoStreamFramer ( ) const
privatevirtual

Reimplemented from MediaSource.

virtual Boolean MediaSource::isH265VideoStreamFramer ( ) const
virtualinherited
virtual Boolean MediaSource::isJPEGVideoSource ( ) const
virtualinherited

Reimplemented in JPEGVideoSource.

virtual Boolean Medium::isMediaSession ( ) const
virtualinherited

Reimplemented in MediaSession.

virtual Boolean MediaSource::isMPEG1or2VideoStreamFramer ( ) const
virtualinherited

Reimplemented in MPEG1or2VideoStreamFramer.

virtual Boolean MediaSource::isMPEG4VideoStreamFramer ( ) const
virtualinherited

Reimplemented in MPEG4VideoStreamFramer.

Boolean H264or5VideoStreamFramer::isPPS ( u_int8_t  nal_unit_type)
protectedinherited
virtual Boolean Medium::isRTCPInstance ( ) const
virtualinherited

Reimplemented in RTCPInstance.

virtual Boolean MediaSource::isRTPSource ( ) const
virtualinherited

Reimplemented in RTPSource.

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.

Boolean H264or5VideoStreamFramer::isSPS ( u_int8_t  nal_unit_type)
protectedinherited
Boolean H264or5VideoStreamFramer::isVCL ( u_int8_t  nal_unit_type)
protectedinherited
Boolean H264or5VideoStreamFramer::isVPS ( u_int8_t  nal_unit_type)
protectedinherited
static Boolean MediaSource::lookupByName ( UsageEnvironment env,
char const *  sourceName,
MediaSource *&  resultSource 
)
staticinherited
static Boolean FramedSource::lookupByName ( UsageEnvironment env,
char const *  sourceName,
FramedSource *&  resultSource 
)
staticinherited
static Boolean Medium::lookupByName ( UsageEnvironment env,
char const *  mediumName,
Medium *&  resultMedium 
)
staticinherited
virtual unsigned FramedSource::maxFrameSize ( ) const
virtualinherited
virtual char const* FramedFilter::MIMEtype ( ) const
protectedvirtualinherited

Reimplemented from MediaSource.

Reimplemented in MP3FromADUSource, and ADUFromMP3Source.

virtual Boolean H264or5VideoStreamDiscreteFramer::nalUnitEndsAccessUnit ( u_int8_t  nal_unit_type)
protectedvirtualinherited
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:84
TaskToken& Medium::nextTask ( )
inlineprotectedinherited

Definition at line 78 of file Media.hh.

References Medium::fNextTask.

78  {
79  return fNextTask;
80  }
TaskToken fNextTask
Definition: Media.hh:85
Boolean& MPEGVideoStreamFramer::pictureEndMarker ( )
inlineinherited
void FramedFilter::reassignInputSource ( FramedSource newInputSource)
inlineinherited

Definition at line 32 of file FramedFilter.hh.

References FramedFilter::fInputSource.

32 { fInputSource = newInputSource; }
FramedSource * fInputSource
Definition: FramedFilter.hh:49
void H264or5VideoStreamFramer::saveCopyOfPPS ( u_int8_t *  from,
unsigned  size 
)
protectedinherited
void H264or5VideoStreamFramer::saveCopyOfSPS ( u_int8_t *  from,
unsigned  size 
)
protectedinherited
void H264or5VideoStreamFramer::saveCopyOfVPS ( u_int8_t *  from,
unsigned  size 
)
protectedinherited
void H264or5VideoStreamFramer::setPresentationTime ( )
inlineprotectedinherited
void MPEGVideoStreamFramer::setTimeCode ( unsigned  hours,
unsigned  minutes,
unsigned  seconds,
unsigned  pictures,
unsigned  picturesSinceLastGOP 
)
protectedinherited
void H264or5VideoStreamFramer::setVPSandSPSandPPS ( u_int8_t *  vps,
unsigned  vpsSize,
u_int8_t *  sps,
unsigned  spsSize,
u_int8_t *  pps,
unsigned  ppsSize 
)
inlineinherited

Definition at line 41 of file H264or5VideoStreamFramer.hh.

References H264or5VideoStreamFramer::saveCopyOfPPS(), H264or5VideoStreamFramer::saveCopyOfSPS(), and H264or5VideoStreamFramer::saveCopyOfVPS().

43  {
44  // Assigns copies of the VPS, SPS and PPS NAL units. If this function is not called,
45  // then these NAL units are assigned only if/when they appear in the input stream.
46  saveCopyOfVPS(vps, vpsSize);
47  saveCopyOfSPS(sps, spsSize);
48  saveCopyOfPPS(pps, ppsSize);
49  }
void saveCopyOfSPS(u_int8_t *from, unsigned size)
void saveCopyOfVPS(u_int8_t *from, unsigned size)
void saveCopyOfPPS(u_int8_t *from, unsigned size)
void FramedSource::stopGettingFrames ( )
inherited

Field Documentation

unsigned FramedSource::fDurationInMicroseconds
protectedinherited
double MPEGVideoStreamFramer::fFrameRate
protectedinherited

Definition at line 67 of file MPEGVideoStreamFramer.hh.

unsigned FramedSource::fFrameSize
protectedinherited

Definition at line 77 of file FramedSource.hh.

Referenced by OggDemuxedTrack::frameSize(), and MatroskaDemuxedTrack::frameSize().

int H264or5VideoStreamFramer::fHNumber
protectedinherited

Definition at line 70 of file H264or5VideoStreamFramer.hh.

FramedSource* FramedFilter::fInputSource
protectedinherited
u_int8_t* H264or5VideoStreamFramer::fLastSeenPPS
protectedinherited
unsigned H264or5VideoStreamFramer::fLastSeenPPSSize
protectedinherited
u_int8_t* H264or5VideoStreamFramer::fLastSeenSPS
protectedinherited
unsigned H264or5VideoStreamFramer::fLastSeenSPSSize
protectedinherited
u_int8_t* H264or5VideoStreamFramer::fLastSeenVPS
protectedinherited
unsigned H264or5VideoStreamFramer::fLastSeenVPSSize
protectedinherited
unsigned FramedSource::fMaxSize
protectedinherited

Definition at line 76 of file FramedSource.hh.

Referenced by OggDemuxedTrack::maxSize(), and MatroskaDemuxedTrack::maxSize().

struct timeval H264or5VideoStreamFramer::fNextPresentationTime
protectedinherited
unsigned FramedSource::fNumTruncatedBytes
protectedinherited
class MPEGVideoStreamParser* MPEGVideoStreamFramer::fParser
protectedinherited

Definition at line 73 of file MPEGVideoStreamFramer.hh.

unsigned MPEGVideoStreamFramer::fPictureCount
protectedinherited

Definition at line 68 of file MPEGVideoStreamFramer.hh.

Boolean MPEGVideoStreamFramer::fPictureEndMarker
protectedinherited

Definition at line 69 of file MPEGVideoStreamFramer.hh.

Referenced by MPEGVideoStreamFramer::pictureEndMarker().

struct timeval FramedSource::fPresentationTime
protectedinherited
struct timeval MPEGVideoStreamFramer::fPresentationTimeBase
protectedinherited

Definition at line 70 of file MPEGVideoStreamFramer.hh.

unsigned char* FramedSource::fTo
protectedinherited

Definition at line 75 of file FramedSource.hh.

Referenced by OggDemuxedTrack::to(), and MatroskaDemuxedTrack::to().


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