Rev | Line | |
---|
[637] | 1 | #include "filter.hpp" |
---|
| 2 | |
---|
| 3 | namespace xios |
---|
| 4 | { |
---|
[639] | 5 | CFilter::CFilter(CGarbageCollector& gc, size_t inputSlotsCount, IFilterEngine* engine) |
---|
| 6 | : CInputPin(gc, inputSlotsCount) |
---|
[1037] | 7 | , COutputPin() |
---|
[637] | 8 | , engine(engine) |
---|
[827] | 9 | , inputSlotCount(inputSlotCount) |
---|
[637] | 10 | { /* Nothing to do */ } |
---|
| 11 | |
---|
| 12 | void CFilter::onInputReady(std::vector<CDataPacketPtr> data) |
---|
| 13 | { |
---|
| 14 | CDataPacketPtr outputPacket = engine->apply(data); |
---|
| 15 | if (outputPacket) |
---|
[1037] | 16 | deliverOuput(outputPacket); |
---|
[637] | 17 | } |
---|
| 18 | } // namespace xios |
---|
Note: See
TracBrowser
for help on using the repository browser.