1 /***************************************************************************
2 krender.h - description
4 begin : Fri Nov 22 2002
5 copyright : (C) 2002 by Jason Wood
6 email : jasonwood@blueyonder.co.uk
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
28 #include <mlt++/Mlt.h>
30 /**KRender encapsulates the client side of the interface to a renderer.
31 From Kdenlive's point of view, you treat the KRender object as the
32 renderer, and simply use it as if it was local. Calls are asyncrhonous -
33 you send a call out, and then recieve the return value through the
34 relevant signal that get's emitted once the call completes.
48 class MyThread : public QThread {
52 void init(KUrl url, QString target, double frame, double frameLength, int frequency, int channels, int arrayWidth);
68 class KThumb:public QObject {
72 KThumb(KUrl url, int width, int height, QObject * parent = 0, const char *name = 0);
76 void extractImage( int frame, int frame2);
77 static QPixmap getImage(KUrl url, int width, int height);
78 /* void getImage(KUrl url, int frame, int width, int height);
79 void getThumbs(KUrl url, int startframe, int endframe, int width, int height);*/
80 void stopAudioThumbs();
81 void removeAudioThumb();
82 void getAudioThumbs(KUrl url, int channel, double frame, double frameLength, int arrayWidth);
85 MyThread thumbProducer;
90 Mlt::Profile *m_profile;
93 void thumbReady(int frame, QPixmap pm);
94 void audioThumbReady(QMap <int, QMap <int, QByteArray> >);