completed prototype of background service that traverse the graph

This commit is contained in:
itsmattkc
2019-08-25 13:51:47 +10:00
parent 438e7081f9
commit 09a6a5a12a
16 changed files with 396 additions and 59 deletions
+22
View File
@@ -1,10 +1,27 @@
#include "alphaover.h"
#include "render/rendertypes.h"
AlphaOverBlend::AlphaOverBlend()
{
}
QString AlphaOverBlend::Name()
{
return tr("Alpha Over");
}
QString AlphaOverBlend::id()
{
return "org.olivevideoeditor.Olive.alphaoverblend";
}
QString AlphaOverBlend::Description()
{
return tr("A blending node that composites one texture over another using its alpha channel.");
}
void AlphaOverBlend::Process(const rational &time)
{
Q_UNUSED(time)
@@ -13,5 +30,10 @@ void AlphaOverBlend::Process(const rational &time)
// Note that alpha will always be premultiplied by this point
//GLuint base_tex = base_input_->get_value(time).value<GLuint>();
// FIXME: Does nothing
texture_output()->set_value(blend_input()->get_value(time).value<RenderTexture>());
}