summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Theato <root@ttill.de>2014-05-04 16:57:56 (GMT)
committerTill Theato <root@ttill.de>2014-05-04 16:57:56 (GMT)
commitdb8a876d45903b2d720e17ec83b6b6b4306effa4 (patch)
treedb40a5045a3757a77f58ed48d62ac42af05907fb
parent348ea58ff8c9a7661f7df98f860d9e96c935d6dc (diff)
Remove unused functions in Render.
-rw-r--r--src/renderer.cpp32
-rw-r--r--src/renderer.h4
2 files changed, 0 insertions, 36 deletions
diff --git a/src/renderer.cpp b/src/renderer.cpp
index 270e1d4..ab7b615 100644
--- a/src/renderer.cpp
+++ b/src/renderer.cpp
@@ -1749,38 +1749,6 @@ void Render::emitConsumerStopped(bool forcePause)
}
}
-void Render::exportFileToFirewire(QString /*srcFileName*/, int /*port*/, GenTime /*startTime*/, GenTime /*endTime*/)
-{
- KMessageBox::sorry(0, i18n("Firewire is not enabled on your system.\n Please install Libiec61883 and recompile Kdenlive"));
-}
-
-void Render::exportCurrentFrame(const KUrl &url, bool /*notify*/)
-{
- if (!m_mltProducer) {
- KMessageBox::sorry(qApp->activeWindow(), i18n("There is no clip, cannot extract frame."));
- return;
- }
-
- //int height = 1080;//KdenliveSettings::defaultheight();
- //int width = 1940; //KdenliveSettings::displaywidth();
- //TODO: rewrite
- QPixmap pix; // = KThumb::getFrame(m_mltProducer, -1, width, height);
- /*
- QPixmap pix(width, height);
- Mlt::Filter m_convert(*m_mltProfile, "avcolour_space");
- m_convert.set("forced", mlt_image_rgb24a);
- m_mltProducer->attach(m_convert);
- Mlt::Frame * frame = m_mltProducer->get_frame();
- m_mltProducer->detach(m_convert);
- if (frame) {
- pix = frameThumbnail(frame, width, height);
- delete frame;
- }*/
- pix.save(url.path(), "PNG");
- //if (notify) QApplication::postEvent(qApp->activeWindow(), new UrlEvent(url, 10003));
-}
-
-
void Render::showFrame(Mlt::Frame* frame)
{
int currentPos = m_mltConsumer->position();
diff --git a/src/renderer.h b/src/renderer.h
index b563f9c..facb87b 100644
--- a/src/renderer.h
+++ b/src/renderer.h
@@ -185,9 +185,6 @@ class Render: public AbstractRender
void emitFrameNumber();
void emitConsumerStopped(bool forcePause = false);
- /** @brief Saves current producer frame as an image. */
- void exportCurrentFrame(const KUrl &url, bool notify);
-
/** @brief Change the Mlt PROFILE
* @param profileName The MLT profile name
* @param dropSceneList If true, the current playlist will be deleted
@@ -491,7 +488,6 @@ public slots:
/** @brief Checks if the file is readable by MLT. */
bool isValid(const KUrl &url);
- void exportFileToFirewire(QString srcFileName, int port, GenTime startTime, GenTime endTime);
void mltSavePlaylist();
void slotSplitView(bool doit);
void slotSetVolume(int volume);