m_thumbFile = m_clipManager->projectFolder() + "/thumbs/" + hash + ".thumb";
}
-void KThumb::updateClipUrl(KUrl url, const QString &hash)
+void KThumb::updateClipUrl(const KUrl &url, const QString &hash)
{
m_url = url;
m_thumbFile = m_clipManager->projectFolder() + "/thumbs/" + hash + ".thumb";
return getImage(url, 0, width, height);
}
-void KThumb::extractImage(QList <int>frames)
+void KThumb::extractImage(const QList<int> &frames)
{
if (!KdenliveSettings::videothumbnails() || m_producer == NULL) return;
m_clipManager->slotRequestThumbs(m_id, frames);
frame->set("rescale.interp", "nearest");
frame->set("deinterlace_method", "onefield");
frame->set("top_field_first", -1 );
- QImage p = getFrame(frame, frameWidth, displayWidth, height);
+ const QImage p = getFrame(frame, frameWidth, displayWidth, height);
delete frame;
return p;
}
}
//static
-uint KThumb::imageVariance(QImage image )
+uint KThumb::imageVariance(const QImage &image )
{
uint delta = 0;
uint avg = 0;
}
#if KDE_IS_VERSION(4,5,0)
-void KThumb::queryIntraThumbs(QList <int> missingFrames)
+void KThumb::queryIntraThumbs(const QList <int> &missingFrames)
{
foreach (int i, missingFrames) {
if (!m_intraFramesQueue.contains(i)) m_intraFramesQueue.append(i);