Valkka  1.6.1
OpenSource Video Management
Macros
framefifo.cpp File Reference
#include "framefifo.h"
#include "enumiter.h"
Include dependency graph for framefifo.cpp:

Macros

#define make_reservoir_and_stack(NAME, PARNAME, CLASSNAME)
 
#define delete_reservoir(NAME)
 

Detailed Description

Author
Sampsa Riikonen
Date
2017
Version
1.6.1

Macro Definition Documentation

◆ delete_reservoir

#define delete_reservoir (   NAME)
Value:
{ \
Reservoir &reservoir = reservoirs[FrameClass::NAME]; \
for (auto it = reservoir.begin(); it != reservoir.end(); ++it) \
{ \
delete *it; \
}; \
}

◆ make_reservoir_and_stack

#define make_reservoir_and_stack (   NAME,
  PARNAME,
  CLASSNAME 
)
Value:
{ \
reservoirs.insert(std::make_pair(FrameClass::NAME, reservoir)); \
stacks.insert(std::make_pair(FrameClass::NAME, stack)); \
for (i = 0; i < PARNAME; i++) \
{ \
reservoirs[FrameClass::NAME].push_back(new CLASSNAME()); \
stacks[FrameClass::NAME].push_back(reservoirs[FrameClass::NAME].back()); \
} \
}