ProcNode hierarchy cleanup
This commit is contained in:
parent
ae36b2d941
commit
b25d85e1dd
6 changed files with 4 additions and 184 deletions
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef ENGINE_MASK_H
|
||||
#define ENGINE_MASK_H
|
||||
|
||||
#include "proc/engine/trafo.hpp"
|
||||
#include "proc/engine/procnode.hpp"
|
||||
|
||||
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ namespace engine
|
|||
{
|
||||
|
||||
|
||||
class Mask : public Trafo
|
||||
class Mask : public ProcNode
|
||||
{};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef ENGINE_PLUGINADAPTER_H
|
||||
#define ENGINE_PLUGINADAPTER_H
|
||||
|
||||
#include "proc/engine/trafo.hpp"
|
||||
#include "proc/engine/procnode.hpp"
|
||||
|
||||
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ namespace engine
|
|||
* Effects processors are typically defined in a separate library and
|
||||
* will be loaded at runtime using Lumiera's plugin interface.
|
||||
*/
|
||||
class PluginAdapter : public Trafo
|
||||
class PluginAdapter : public ProcNode
|
||||
{
|
||||
/////////////
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,34 +0,0 @@
|
|||
/*
|
||||
Projector - video ProcNode for scaling and translating image data
|
||||
|
||||
Copyright (C) Lumiera.org
|
||||
2008, Hermann Vosseler <Ichthyostega@web.de>
|
||||
|
||||
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.
|
||||
|
||||
* *****************************************************/
|
||||
|
||||
|
||||
#include "proc/engine/projector.hpp"
|
||||
|
||||
namespace engine
|
||||
{
|
||||
|
||||
/** */
|
||||
|
||||
|
||||
|
||||
|
||||
} // namespace engine
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
/*
|
||||
PROJECTOR.hpp - video ProcNode for scaling and translating image data
|
||||
|
||||
Copyright (C) Lumiera.org
|
||||
2008, Hermann Vosseler <Ichthyostega@web.de>
|
||||
|
||||
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.
|
||||
|
||||
*/
|
||||
|
||||
|
||||
#ifndef ENGINE_PROJECTOR_H
|
||||
#define ENGINE_PROJECTOR_H
|
||||
|
||||
#include "proc/engine/trafo.hpp"
|
||||
|
||||
|
||||
|
||||
namespace engine
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* Special video processing node used to scale and translate image data.
|
||||
*/
|
||||
class Projector : public Trafo
|
||||
{
|
||||
////////////TODO adapt ctor
|
||||
};
|
||||
|
||||
|
||||
|
||||
} // namespace engine
|
||||
#endif
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
/*
|
||||
Trafo - transforming processing Node
|
||||
|
||||
Copyright (C) Lumiera.org
|
||||
2008, Hermann Vosseler <Ichthyostega@web.de>
|
||||
|
||||
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.
|
||||
|
||||
* *****************************************************/
|
||||
|
||||
|
||||
#include "proc/engine/trafo.hpp"
|
||||
|
||||
namespace engine
|
||||
{
|
||||
|
||||
/** */
|
||||
|
||||
|
||||
|
||||
} // namespace engine
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
/*
|
||||
TRAFO.hpp - transforming processing Node
|
||||
|
||||
Copyright (C) Lumiera.org
|
||||
2008, Hermann Vosseler <Ichthyostega@web.de>
|
||||
|
||||
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.
|
||||
|
||||
*/
|
||||
|
||||
|
||||
#ifndef ENGINE_TRAFO_H
|
||||
#define ENGINE_TRAFO_H
|
||||
|
||||
#include "proc/engine/procnode.hpp"
|
||||
|
||||
|
||||
|
||||
namespace engine
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* abstraction of the most important kind of Processing node,
|
||||
* which really works on the media data and transforms input
|
||||
* into ouput. Subclasses include the (Video) Projector
|
||||
* for scaling/translating, all sorts of effects (Plugins),
|
||||
* as well as the low level codecs used to decode the raw
|
||||
* media at the source end of the render pipeline(s)
|
||||
*/
|
||||
class Trafo : public ProcNode
|
||||
{
|
||||
protected:
|
||||
Trafo (WiringDescriptor const& wd)
|
||||
: ProcNode(wd)
|
||||
{ }
|
||||
|
||||
friend class NodeFactory;
|
||||
|
||||
|
||||
|
||||
/** do the actual calculations.
|
||||
* @internal dispatch to implementation.
|
||||
* Client code should use #render()
|
||||
* @todo obviously we need a parameter!!!
|
||||
*/
|
||||
virtual void process() = 0;
|
||||
};
|
||||
|
||||
typedef Trafo* PTrafo; ///< @todo handle ProcNode by pointer or by shared-ptr??
|
||||
|
||||
|
||||
|
||||
} // namespace engine
|
||||
#endif
|
||||
Loading…
Reference in a new issue