Commit a786164a authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

EffectsEngine: Renaming EffectList to FilterList

parent fd71245d
......@@ -112,13 +112,13 @@ EffectsEngine::browseDirectory( const QString &path )
}
void
EffectsEngine::applyEffects( const EffectList &effects, Workflow::Frame* frame,
EffectsEngine::applyEffects( const FilterList &effects, Workflow::Frame* frame,
qint64 currentFrame, double time )
{
if ( effects.size() == 0 )
return ;
EffectList::const_iterator it = effects.constBegin();
EffectList::const_iterator ite = effects.constEnd();
FilterList::const_iterator it = effects.constBegin();
FilterList::const_iterator ite = effects.constEnd();
quint8 *buff1 = NULL;
quint8 *buff2 = NULL;
......@@ -161,12 +161,12 @@ EffectsEngine::applyEffects( const EffectList &effects, Workflow::Frame* frame,
}
void
EffectsEngine::saveEffects( const EffectList &effects, QXmlStreamWriter &project )
EffectsEngine::saveEffects( const FilterList &effects, QXmlStreamWriter &project )
{
if ( effects.size() <= 0 )
return ;
EffectsEngine::EffectList::const_iterator it = effects.begin();
EffectsEngine::EffectList::const_iterator ite = effects.end();
EffectsEngine::FilterList::const_iterator it = effects.begin();
EffectsEngine::FilterList::const_iterator ite = effects.end();
project.writeStartElement( "effects" );
while ( it != ite )
{
......@@ -181,10 +181,10 @@ EffectsEngine::saveEffects( const EffectList &effects, QXmlStreamWriter &project
}
void
EffectsEngine::initEffects( const EffectList &effects, quint32 width, quint32 height )
EffectsEngine::initEffects( const FilterList &effects, quint32 width, quint32 height )
{
EffectsEngine::EffectList::const_iterator it = effects.begin();
EffectsEngine::EffectList::const_iterator ite = effects.end();
EffectsEngine::FilterList::const_iterator it = effects.begin();
EffectsEngine::FilterList::const_iterator ite = effects.end();
while ( it != ite )
{
......
......@@ -49,16 +49,16 @@ class EffectsEngine : public QObject, public Singleton<EffectsEngine>
qint64 end;
QUuid uuid;
};
typedef QList<EffectHelper*> EffectList;
typedef QList<EffectHelper*> FilterList;
Effect* effect( const QString& name );
bool loadEffect( const QString& fileName );
void browseDirectory( const QString& path );
static void applyEffects( const EffectList &effects,
static void applyEffects( const FilterList &effects,
Workflow::Frame *frame, qint64 currentFrame, double time );
static void saveEffects( const EffectList &effects, QXmlStreamWriter &project );
static void initEffects( const EffectList &effects, quint32 width, quint32 height );
static void saveEffects( const FilterList &effects, QXmlStreamWriter &project );
static void initEffects( const FilterList &effects, quint32 width, quint32 height );
private:
EffectsEngine();
......
......@@ -284,7 +284,7 @@ class WorkflowRenderer : public GenericRenderer
qint64 m_oldLength;
QReadWriteLock *m_effectsLock;
EffectsEngine::EffectList m_effects;
EffectsEngine::FilterList m_effects;
static const quint8 VideoCookie = '0';
static const quint8 AudioCookie = '1';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment