// If there are more than 2 samples per pixel in average, then use the maximum of them
// since by only looking at the left sample we might miss some maxima.
uint src = left;
- int xi_prev = 0;
+// int xi_prev = 0;
int points;
#ifdef DEBUG_FFTTOOLS
points++;
}
- xi_prev = xi;
+// xi_prev = xi;
}
}
// Fill the rest of the vector if the right border exceeds the input vector.
m_view.clip_color->setColor(QColor('#' + props.value("colour").right(8).left(6)));
connect(m_view.clip_color, SIGNAL(changed(QColor)), this, SLOT(slotModified()));
} else if (t == SLIDESHOW) {
- bool isMime = true;
if (url.fileName().startsWith(".all.")) {
// the image sequence is defined by mimetype
m_view.clip_path->setText(url.directory());
m_view.slide_type_label->setHidden(true);
m_view.image_type->setHidden(true);
m_view.clip_path->setText(url.path());
- isMime = false;
}
m_view.tabWidget->removeTab(METATAB);
int r,g,b;
double dy, dr, dg, db, dmax;
- double y,u,v;
+ double /*y,*/ u, v;
QPoint pt;
QRgb px;
switch (colorSpace) {
case VectorscopeGenerator::ColorSpace_YUV:
- y = (double) 0.001173 * r +0.002302 * g +0.0004471* b;
+// y = (double) 0.001173 * r +0.002302 * g +0.0004471* b;
u = (double) -0.0005781* r -0.001135 * g +0.001713 * b;
v = (double) 0.002411 * r -0.002019 * g -0.0003921* b;
break;
case VectorscopeGenerator::ColorSpace_YPbPr:
- y = (double) 0.001173 * r +0.002302 * g +0.0004471* b;
+ default:
+// y = (double) 0.001173 * r +0.002302 * g +0.0004471* b;
u = (double) -0.0006671* r -0.001299 * g +0.0019608* b;
v = (double) 0.001961 * r -0.001642 * g -0.0003189* b;
break;
db = dy + 517.2*u;
break;
case VectorscopeGenerator::ColorSpace_YPbPr:
+ default:
dr = dy + 357.5*v;
dg = dy - 87.75*u - 182*v;
db = dy + 451.9*u;
db = dy + 517.2*u;
break;
case VectorscopeGenerator::ColorSpace_YPbPr:
+ default:
dr = dy + 357.5*v;
dg = dy - 87.75*u - 182*v;
db = dy + 451.9*u;
Q_ASSERT(size.width() > 0);
Q_ASSERT(size.height() > 0);
- int xMax, yMax;
+ /*int xMax, yMax;
switch(xVariant) {
case COM_H:
case COM_V:
yMax = 256;
break;
- }
+ }*/
QImage plane(size, QImage::Format_ARGB32);
m_blockRefresh = true;
m_dragGuide = NULL;
- bool collision = false;
if (m_tool != RAZORTOOL) activateMonitor();
else if (m_document->renderer()->playSpeed() != 0.0) {
m_dragGuide = (Guide *) collisionList.at(i);
if (event->button() == Qt::LeftButton) { // move it
m_dragGuide->setFlag(QGraphicsItem::ItemIsMovable, true);
- collision = true;
m_operationMode = MOVEGUIDE;
// deselect all clips so that only the guide will move
m_scene->clearSelection();
scene()->clearSelection();
QUndoCommand *deleteSelected = new QUndoCommand();
- bool resetGroup = false;
int groupCount = 0;
int clipCount = 0;
int transitionCount = 0;
QList<QGraphicsItem *> children = itemList.at(i)->childItems();
QList <ItemInfo> clipInfos;
QList <ItemInfo> transitionInfos;
- GenTime currentPos = GenTime(m_cursorPos, m_document->fps());
for (int j = 0; j < children.count(); j++) {
if (children.at(j)->type() == AVWIDGET) {
AbstractClipItem *clip = static_cast <AbstractClipItem *>(children.at(j));
if (itemList.at(i)->type() == AVWIDGET) {
clipCount++;
ClipItem *item = static_cast <ClipItem *>(itemList.at(i));
- if (item->parentItem()) resetGroup = true;
//kDebug()<<"// DELETE CLP AT: "<<item->info().startPos.frames(25);
new AddTimelineClipCommand(this, item->xml(), item->clipProducer(), item->info(), item->effectList(), false, false, true, true, deleteSelected);
emit clipItemSelected(NULL);
transitionCount++;
Transition *item = static_cast <Transition *>(itemList.at(i));
//kDebug()<<"// DELETE TRANS AT: "<<item->info().startPos.frames(25);
- if (item->parentItem()) resetGroup = true;
new AddTransitionCommand(this, item->info(), item->transitionEndTrack(), item->toXML(), true, true, deleteSelected);
emit transitionItemSelected(NULL);
}
for (int i = 0; i < itemList.count(); i++) {
if (itemList.at(i)->type() == AVWIDGET) {
ClipItem *item = static_cast <ClipItem *>(itemList.at(i));
- ItemInfo info = item->info();
if (percent == -1) percent = QInputDialog::getInteger(this, i18n("Edit Clip Speed"), i18n("New speed (percents)"), item->speed() * 100, 1, 10000, 1, &ok);
if (!ok) break;
double speed = (double) percent / 100.0;
QList<QGraphicsItem *> itemList = scene()->selectedItems();
QList <ItemInfo> clipInfos;
QList <ItemInfo> transitionInfos;
- GenTime currentPos = GenTime(m_cursorPos, m_document->fps());
// Expand groups
int max = itemList.count();
button->setBackMenu(e.attribute("backtomenu").toInt());
button->setDefaultTextColor(m_view.text_color->color());
button->setZValue(4);
- QRectF r = button->sceneBoundingRect();
m_scene->addItem(button);
button->setPos(e.attribute("posx").toDouble(), e.attribute("posy").toDouble());
m_resizeMode = NoResize;
const QList <QGraphicsItem *> list = items(QRectF(p , QSizeF(4, 4)).toRect());
QGraphicsItem *item = NULL;
- bool hasSelected = false;
if (m_tool == TITLE_SELECT) {
foreach(QGraphicsItem *g, list) {
kDebug() << " - - CHECKING ITEM Z:" << g->zValue() << ", TYPE: " << g->type();
// check is there is a selected item in list
if (g->zValue() > -1000 && g->isSelected()) {
- hasSelected = true;
item = g;
break;
}
void HeaderTrack::updateEffectLabel(QStringList effects)
{
- QColor col = track_number->palette().color(QPalette::Base);
if (!effects.isEmpty()) {
effect_label->setHidden(false);
effect_label->setToolTip(effects.join("/"));
item->setData(1, Qt::UserRole, KUrl(target).path());
item->setData(1, Qt::UserRole + 1, scriptpath.path());
}
- bool activate = false;
+// bool activate = false;
QTreeWidgetItem *script = m_view.scripts_list->topLevelItem(0);
if (script) {
m_view.scripts_list->setCurrentItem(script);
script->setSelected(true);
- activate = true;
+// activate = true;
}
// m_view.start_script->setEnabled(activate);
// m_view.delete_script->setEnabled(activate);
const QString StopmotionWidget::createProducer(MltVideoProfile profile, const QString service, const QString resource)
{
+ Q_UNUSED(profile)
QString playlist = "<mlt title=\"capture\"><producer id=\"producer0\" in=\"0\" out=\"99999\"><property name=\"mlt_type\">producer</property><property name=\"length\">100000</property><property name=\"eof\">pause</property><property name=\"resource\">" + resource + "</property><property name=\"mlt_service\">" + service + "</property></producer>";
int v4l2_free_mmap(src_t *src)
{
src_v4l2_t *s = (src_v4l2_t *) src->state;
- int i;
+ uint i;
for(i = 0; i < s->req.count; i++)
munmap(s->buffer[i].start, s->buffer[i].length);