- int pos = m_tc.getFrameCount(m_view.marker_position->text(), m_fps);
- QPixmap p = KThumb::getFrame(m_producer, pos, (int)(100 * m_dar), 100);
- if (!p.isNull()) m_view.clip_thumb->setPixmap(p);
- else kDebug() << "!!!!!!!!!!! ERROR CREATING THUMB";
-}
-
-void MarkerDialog::slotTimeUp()
-{
- int duration = m_tc.getFrameCount(m_view.marker_position->text(), m_fps);
- if (m_clip && duration >= m_clip->duration().frames(m_fps)) return;
- duration ++;
- m_view.marker_position->setText(m_tc.getTimecode(GenTime(duration, m_fps), m_fps));
+ int pos = m_in->getValue();
+ int width = 100.0 * m_dar;
+ int swidth = (int) (100.0 * m_profile->width() / m_profile->height() + 0.5);
+ if (width % 2 == 1)
+ width++;
+
+ m_image = KThumb::getFrame(m_producer, pos, swidth, width, 100);
+ const QPixmap p = QPixmap::fromImage(m_image);
+ if (!p.isNull())
+ clip_thumb->setPixmap(p);
+ else
+ kDebug() << "!!!!!!!!!!! ERROR CREATING THUMB";