#include "gentime.h"
#include "definitions.h"
+#include "abstractmonitor.h"
#include "mlt/framework/mlt_types.h"
#include <kurl.h>
#include <QEvent>
-class Render;
-
class QTimer;
class QPixmap;
QString m_message;
};
-class Render: public QObject
+
+class Render: public AbstractRender
{
Q_OBJECT public:
Render(const QString & rendererName, int winid, QString profile = QString(), QWidget *parent = 0);
/** @brief Destroy the MLT Renderer. */
- ~Render();
+ virtual ~Render();
/** @brief Seeks the renderer clip to the given time. */
void seek(GenTime time);
void seek(int time);
- void seekToFrame(int pos);
void seekToFrameDiff(int diff);
int m_isBlocked;
* The speed is relative to normal playback, e.g. 1.0 is normal speed, 0.0
* is paused, -1.0 means play backwards. It does not specify start/stop */
void play(double speed);
- void switchPlay();
+ void switchPlay(bool play);
void pause();
/** @brief Stops playing.
void stop(const GenTime & startTime);
int volume() const;
- QImage extractFrame(int frame_position, int width = -1, int height = -1);
+ QImage extractFrame(int frame_position, QString path = QString(), int width = -1, int height = -1);
/** @brief Plays the scene starting from a specific time.
* @param startTime time to start playing the scene from */
void showAudio(Mlt::Frame&);
/** @brief This property is used to decide if the renderer should send audio data for monitoring. */
bool analyseAudio;
- /** @brief This property is used to decide if the renderer should convert it's frames to QImage for use in other Kdenlive widgets. */
- bool sendFrameForAnalysis;
+
QList <int> checkTrackSequence(int);
void sendFrameUpdate();
+ /** @brief Returns a pointer to the main producer. */
+ Mlt::Producer *getProducer();
+
private:
/** @brief The name of this renderer.
/** @brief The renderer started rendering. */
void rendering(const GenTime &);
- /** @brief The rendering has finished.
- @see consumer_frame_show
- This signal seems to be useless; use renderPosition(int) instead --Granjow */
- void renderFinished();
-
- /* @brief The current seek position has been changed by the renderer.
- void positionChanged(const GenTime &);*/
-
/** @brief An error occurred within this renderer. */
void error(const QString &, const QString &);
void durationChanged(int);
void rendererStopped(int);
/** @brief The clip is not valid, should be removed from project. */
void removeInvalidClip(const QString &, bool replaceProducer);
- /** @brief The proxy is not valid, should be deleted. */
- void removeInvalidProxy(const QString &);
- void refreshDocumentProducers();
+ /** @brief The proxy is not valid, should be deleted.
+ * @param id The original clip's id
+ * @param durationError Should be set to true if the proxy failed because it has not same length as original clip
+ */
+ void removeInvalidProxy(const QString &id, bool durationError);
+ void refreshDocumentProducers(bool displayRatioChanged);
/** @brief A frame's image has to be shown.
*
* Used in Mac OS X. */
void showImageSignal(QImage);
void showAudioSignal(const QByteArray);
- /** @brief The renderer refreshed the current frame, but no seeking was done. */
- void frameUpdated(QImage);
- /** @brief This signal contains the audio of the current frame. */
- void audioSamplesSignal(const QVector<int16_t>&, int freq, int num_channels, int num_samples);
public slots:
void slotSplitView(bool doit);
void slotSwitchFullscreen();
void slotSetVolume(int volume);
+ void seekToFrame(int pos);
};
#endif