Valkka
1.6.1
OpenSource Video Management
|
Implements a FramedSource for sending frames. More...
#include <liveserver.h>
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 | |
FrameFifo & | fifo |
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 |
Implements a FramedSource for sending frames.
See Live streaming
BufferSource::BufferSource | ( | UsageEnvironment & | env, |
FrameFifo & | fifo, | ||
Boolean & | canary, | ||
unsigned | preferredFrameSize = 0 , |
||
unsigned | playTimePerFrame = 0 , |
||
unsigned | offset = 0 |
||
) |
Default constructor.
env | Identifies the live555 event loop |
fifo | See BufferSource::fifo |