本文整理汇总了C++中mlt::Properties::set方法的典型用法代码示例。如果您正苦于以下问题:C++ Properties::set方法的具体用法?C++ Properties::set怎么用?C++ Properties::set使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mlt::Properties
的用法示例。
在下文中一共展示了Properties::set方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getPreset
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;
}
示例2: getPreset
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;
}
示例3: getPreset
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;
}
示例4: getPreset
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;
}
示例5: getPreset
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;
}
示例6:
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;
}
示例7: cloneProperties
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);
}
}
}
示例8: getPreset
Mlt::Properties* NetworkProducerWidget::getPreset() const
{
Mlt::Properties* p = new Mlt::Properties;
p->set("resource", ui->urlLineEdit->text().toUtf8().constData());
return p;
}
示例9: getPreset
Mlt::Properties* ColorBarsWidget::getPreset() const
{
Mlt::Properties* p = new Mlt::Properties;
p->set(kParamType, ui->comboBox->currentIndex());
return p;
}
示例10: setUuid
void Controller::setUuid(Mlt::Properties &properties, QUuid uid) const
{
properties.set(kUuidProperty,
(uid.toByteArray() + '\n').data());
}