2011-05-23 04:43:56 +02:00
|
|
|
/*
|
2011-05-23 05:46:40 +02:00
|
|
|
Dispatcher - translating calculation streams into frame jobs
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
Copyright (C) Lumiera.org
|
2011-05-23 05:46:40 +02:00
|
|
|
2011, Hermann Vosseler <Ichthyostega@web.de>
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
|
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
|
|
* *****************************************************/
|
|
|
|
|
|
|
|
|
|
|
2011-05-23 05:46:40 +02:00
|
|
|
#include "proc/engine/dispatcher.hpp"
|
|
|
|
|
//#include "lib/frameid.hpp"
|
|
|
|
|
//#include "proc/state.hpp"
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-02 16:10:03 +01:00
|
|
|
namespace proc {
|
2011-05-23 04:43:56 +02:00
|
|
|
namespace engine {
|
2012-02-04 22:20:21 +01:00
|
|
|
|
|
|
|
|
Dispatcher::~Dispatcher() { } // emit VTable here....
|
|
|
|
|
|
2011-05-23 04:43:56 +02:00
|
|
|
|
2012-03-19 01:03:14 +01:00
|
|
|
/** */
|
2012-04-26 04:11:31 +02:00
|
|
|
Dispatcher::JobBuilder
|
2012-03-19 01:03:14 +01:00
|
|
|
Dispatcher::onCalcStream (ModelPort modelPort, uint channel)
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED ("build coordinates of frame to render");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** */
|
|
|
|
|
FrameCoord
|
2012-04-26 04:11:31 +02:00
|
|
|
Dispatcher::JobBuilder::relativeFrameLocation (TimeAnchor refPoint, uint frameCountOffset)
|
2012-03-19 01:03:14 +01:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED ("build coordinates of frame to render");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2012-04-26 04:11:31 +02:00
|
|
|
/** */
|
|
|
|
|
Dispatcher::JobBuilder&
|
|
|
|
|
Dispatcher::JobBuilder::establishNextJobs (TimeAnchor refPoint)
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED ("job planning and generation");
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** */
|
|
|
|
|
Dispatcher::JobBuilder&
|
|
|
|
|
Dispatcher::JobBuilder::prepareContinuation (function<void(TimeAnchor)> delayedAction)
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED ("wrap already planned jobs, appending a continuation to pick up later");
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-23 04:43:56 +02:00
|
|
|
/** */
|
2012-02-13 00:37:57 +01:00
|
|
|
JobTicket&
|
2012-02-18 00:49:53 +01:00
|
|
|
Dispatcher::accessJobTicket (FrameCoord const& frameID)
|
2012-02-13 00:37:57 +01:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED ("figure out and create the actual JobTicket, for the current segment and the given port");
|
|
|
|
|
}
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-02 16:10:03 +01:00
|
|
|
}} // namespace engine
|