Valkka  1.6.1
OpenSource Video Management
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
FrameSink Class Reference

Live555 handling of media frames. More...

#include <live.h>

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

Public Member Functions

uint8_t * getReceiveBuffer ()
 

Static Public Member Functions

static FrameSinkcreateNew (UsageEnvironment &env, StreamClientState &scs, FrameFilter &framefilter, bool &passthrough, char const *streamId=NULL)
 Default constructor. More...
 

Public Attributes

bool on
 

Private Member Functions

 FrameSink (UsageEnvironment &env, StreamClientState &scs, FrameFilter &framefilter, bool &passthrough, char const *streamId)
 
virtual ~FrameSink ()
 Default virtual destructor.
 
void afterGettingFrame (unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds)
 Called by the other afterGettingFrame.
 
void setReceiveBuffer (unsigned target_size)
 Calculates receiving memory buffer size.
 
unsigned checkBufferSize (unsigned target_size)
 Calculates receiving memory buffer size.
 
void sendParameterSets ()
 Extracts sps and pps info from the SDP string. Creates sps and pps frames and sends them to the filterchain.
 
virtual Boolean continuePlaying ()
 Live555 redefined virtual function.
 

Static Private Member Functions

static void afterGettingFrame (void *clientData, unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds)
 Called after live555 event loop has composed a new frame.
 

Private Attributes

StreamClientStatescs
 
u_int8_t * fReceiveBuffer
 
long unsigned nbuf
 Size of bytebuffer.
 
MediaSubsession & fSubsession
 
char * fStreamId
 
FrameFilterframefilter
 
SetupFrame setupframe
 This frame is used to send subsession information.
 
BasicFrame basicframe
 Data is being copied into this frame.
 
int subsession_index
 
bool & passthrough
 pass frame to framefilter or not
 

Detailed Description

Live555 handling of media frames.

When the live555 event loop has composed a new frame, it's passed to FrameSink::afterGettingFrame. There it is passed to the beginning of valkka framefilter chain.

Member Function Documentation

◆ createNew()

FrameSink * FrameSink::createNew ( UsageEnvironment &  env,
StreamClientState scs,
FrameFilter framefilter,
bool &  passthrough,
char const *  streamId = NULL 
)
static

Default constructor.

Parameters
envThe usage environment, i.e. event loop in question
scsInfo about the stream state
subsessionIdentifies the kind of data that's being received (media type, codec, etc.)
framefilterThe start of valkka FrameFilter filterchain
streamId(optional) identifies the stream itself

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