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

Implements a FramedSource for sending frames. More...

#include <liveserver.h>

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

Public Member Functions

 BufferSource (UsageEnvironment &env, FrameFifo &fifo, Boolean &canary, unsigned preferredFrameSize=0, unsigned playTimePerFrame=0, unsigned offset=0)
 Default constructor. More...
 
void handleFrame (Frame *f)
 Copies a Frame from BufferSource::fifo into BufferSource::internal_fifo. Sets BufferSource::active. Checks that FrameClass is FrameClass::basic.
 

Public Attributes

std::deque< BasicFrame * > internal_fifo
 Internal fifo BasicFrame, i.e. payload frames.
 
bool active
 If set, doGetNextFrame is currently re-scheduled.
 

Private Member Functions

virtual void doGetNextFrame ()
 All the fun happens here.
 

Private Attributes

FrameFifofifo
 Frames are being read from here. This reference leads all the way down to LiveThread::fifo.
 
Boolean & canary
 If this instance of BufferSource get's annihilated, kill the canary (set it to false)
 
unsigned fPreferredFrameSize
 
unsigned fPlayTimePerFrame
 
unsigned offset
 
std::mutex mutex
 
long int prevtime
 

Detailed Description

Implements a FramedSource for sending frames.

See Live streaming

Constructor & Destructor Documentation

◆ BufferSource()

BufferSource::BufferSource ( UsageEnvironment &  env,
FrameFifo fifo,
Boolean &  canary,
unsigned  preferredFrameSize = 0,
unsigned  playTimePerFrame = 0,
unsigned  offset = 0 
)

Default constructor.

Parameters
envIdentifies the live555 event loop
fifoSee BufferSource::fifo

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