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

A FrameFifo for RGBFrame s. More...

#include <rgbframefifo.h>

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

Public Member Functions

 RGBFrameFifo (RGBFrameFifoContext ctx)
 Default constructor. More...
 
 ~RGBFrameFifo ()
 Default destructor.
 
virtual bool writeCopy (Frame *f, bool wait=false)
 Redefined. Uses FrameFifo::writeCopy. Separates configuration frames and YUVFrames.
 
virtual void recycle_ (Frame *f)
 Redefined. Uses FrameFifo::recycle_. Separates configuration frames and YUVFrames.
 
- Public Member Functions inherited from FrameFifo
 FrameFifo (const char *name, FrameFifoContext ctx=FrameFifoContext())
 Default ctor

 
virtual ~FrameFifo ()
 Default virtual dtor

 
 ban_copy_ctor (FrameFifo)
 
 ban_copy_asm (FrameFifo)
 
virtual Frameread (unsigned short int mstimeout=0)
 Pop a frame from the end of the fifo when available.
 
virtual void recycle (Frame *f)
 Like FrameFifo::recycle_ but with mutex protection.
 
virtual void recycleAll ()
 Recycle all frames from fifo back to stack (make a "flush")
 
virtual void dumpStacks ()
 Dump frames in the stacks.
 
virtual void dumpFifo ()
 Dump frames in the fifo.
 
virtual void diagnosis ()
 Print a resumen of fifo and stack usage.
 
bool isEmpty ()
 Tell if fifo is empty.
 

Protected Attributes

RGBReservoir rgb_reservoir
 
RGBStack rgb_stack
 
- Protected Attributes inherited from FrameFifo
std::string name
 
FrameFifoContext ctx
 Parameters defining the stack and overflow behaviour.
 
std::map< FrameClass, Reservoir > reservoirs
 The actual frames.
 
std::map< FrameClass, Stack > stacks
 Pointers to the actual frames, sorted by FrameClass.
 
Fifo fifo
 The fifo queue.
 
std::mutex mutex
 The Lock.
 
std::condition_variable condition
 The Event/Flag.
 
std::condition_variable ready_condition
 The Event/Flag for FrameFifo::ready_mutex.
 

Additional Inherited Members

- Protected Member Functions inherited from FrameFifo
virtual void recycleAll_ ()
 Recycle all frames back to the stack.
 

Detailed Description

A FrameFifo for RGBFrame s.

Constructor & Destructor Documentation

◆ RGBFrameFifo()

RGBFrameFifo::RGBFrameFifo ( RGBFrameFifoContext  ctx)

Default constructor.


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