Logo Search packages:      
Sourcecode: kdenlive version File versions

initeffects.h

/***************************************************************************
                          initeffects.h  -  description
                             -------------------
    begin                :  Jul 2006
    copyright            : (C) 2006 by Jean-Baptiste Mardelle
    email                : jb@ader.ch
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef InitEffects_H
#define InitEffects_H

#include <klocale.h>
#include <QDomDocument>
#include <QThread>
#include <mlt++/Mlt.h>


/**Init the MLT effects
  *@author Jean-Baptiste Mardelle
  */

class EffectsList;

class initEffectsThumbnailer : public QThread {
    Q_OBJECT
public:
    initEffectsThumbnailer();
    void prepareThumbnailsCall(const QStringList&);
    void run();
private :
    QStringList m_list;

};

class initEffects : public QObject {

public:
    initEffects();
    ~initEffects();

    static Mlt::Repository *parseEffectFiles();
    static void refreshLumas();
    static QDomDocument createDescriptionFromMlt(Mlt::Repository* repository, const QString& type, const QString& name);
    static void fillTransitionsList(Mlt::Repository *, EffectsList* transitions, QStringList names);
    static QDomElement quickParameterFill(QDomDocument & doc, QString name, QString tag, QString type, QString def = QString(), QString min = QString(), QString max = QString(), QString list = QString(), QString listdisplaynames = QString(), QString factor = QString(), QString namedesc = QString(), QString format = QString());
    static void parseEffectFile(EffectsList *customEffectList, EffectsList *audioEffectList, EffectsList *videoEffectList, QString name, QStringList filtersList, QStringList producersList);
    static void parseCustomEffectsFile();
    static char* ladspaEffectString(int ladspaId, QStringList params);
    static void ladspaEffectFile(const QString & fname, int ladspaId, QStringList params);

    static char* ladspaPitchEffectString(QStringList params);
    static char* ladspaReverbEffectString(QStringList params);
    static char* ladspaRoomReverbEffectString(QStringList params);
    static char* ladspaEqualizerEffectString(QStringList params);
    static char* ladspaDeclipEffectString(QStringList);
    static char* ladspaVinylEffectString(QStringList params);
    static char* ladspaLimiterEffectString(QStringList params);
    static char* ladspaPitchShifterEffectString(QStringList params);
    static char* ladspaPhaserEffectString(QStringList params);
    static char* ladspaRateScalerEffectString(QStringList params);
private:
    static initEffectsThumbnailer thumbnailer;
};


#endif

Generated by  Doxygen 1.6.0   Back to index