Mlt::Properties* DecklinkProducerWidget::getPreset() const { Mlt::Properties* p = new Mlt::Properties; p->set("card", ui->deviceCombo->currentIndex()); p->set("profile", ui->profileCombo->currentIndex()); return p; }
Mlt::Properties* IsingWidget::getPreset() const { Mlt::Properties* p = new Mlt::Properties; p->set(kParamTemperature, ui->tempSpinner->text().toLatin1().constData()); p->set(kParamBorderGrowth, ui->borderGrowthSpinner->text().toLatin1().constData()); p->set(kParamSpontaneous, ui->spontGrowthSpinner->text().toLatin1().constData()); return p; }
Mlt::Properties CountProducerWidget::getPreset() const { Mlt::Properties p; p.set("direction", currentDirection().toLatin1().constData()); p.set("style", currentStyle().toLatin1().constData()); p.set("sound", currentSound().toLatin1().constData()); p.set("background", currentBackground().toLatin1().constData()); p.set("drop", ui->dropCheckBox->isChecked()); setLength(&p, ui->durationSpinBox->value()); return p; }
Mlt::Properties* PlasmaWidget::getPreset() const { Mlt::Properties* p = new Mlt::Properties; p->set(kParamSpeed1, ui->speed1Spinner->text().toAscii().constData()); p->set(kParamSpeed2, ui->speed2Spinner->text().toAscii().constData()); p->set(kParamSpeed3, ui->speed3Spinner->text().toAscii().constData()); p->set(kParamSpeed4, ui->speed4Spinner->text().toAscii().constData()); p->set(kParamMove1, ui->move1Spinner->text().toAscii().constData()); p->set(kParamMove2, ui->move2Spinner->text().toAscii().constData()); return p; }
Mlt::Properties AlsaWidget::getPreset() const { Mlt::Properties p; QString s("alsa:%1"); if (ui->lineEdit->text().isEmpty()) s = s.arg("default"); else s = s.arg(ui->lineEdit->text()); p.set("resource", s.toUtf8().constData()); p.set("channels", ui->alsaChannelsSpinBox->value()); return p; }
Mlt::Properties Video4LinuxWidget::getPreset() const { Mlt::Properties p; p.set("device", ui->v4lLineEdit->text().toLatin1().constData()); p.set("width", ui->v4lWidthSpinBox->value()); p.set("height", ui->v4lHeightSpinBox->value()); p.set("framerate", ui->v4lFramerateSpinBox->value()); p.set("standard", ui->v4lStandardCombo->currentText().toLatin1().constData()); p.set("channel", ui->v4lChannelSpinBox->value()); p.set("audio_ix", ui->v4lAudioComboBox->currentIndex()); return p; }
void TransitionHandler::cloneProperties(Mlt::Properties &dest, Mlt::Properties &source) { int count = source.count(); int i = 0; for ( i = 0; i < count; i ++ ) { char *value = source.get(i); if ( value != NULL ) { char *name = source.get_name( i ); if (name != NULL && name[0] != '_') dest.set(name, value); } } }
Mlt::Properties* NetworkProducerWidget::getPreset() const { Mlt::Properties* p = new Mlt::Properties; p->set("resource", ui->urlLineEdit->text().toUtf8().constData()); return p; }
Mlt::Properties* ColorBarsWidget::getPreset() const { Mlt::Properties* p = new Mlt::Properties; p->set(kParamType, ui->comboBox->currentIndex()); return p; }
void Controller::setUuid(Mlt::Properties &properties, QUuid uid) const { properties.set(kUuidProperty, (uid.toByteArray() + '\n').data()); }