本文整理汇总了C++中mlt::Producer::get_properties方法的典型用法代码示例。如果您正苦于以下问题:C++ Producer::get_properties方法的具体用法?C++ Producer::get_properties怎么用?C++ Producer::get_properties使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mlt::Producer
的用法示例。
在下文中一共展示了Producer::get_properties方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QObject
ClipController::ClipController(BinController *bincontroller, Mlt::Producer& producer) : QObject()
, selectedEffectIndex(1)
, audioThumbCreated(false)
, m_properties(new Mlt::Properties(producer.get_properties()))
, m_usesProxy(false)
, m_audioInfo(NULL)
, m_audioIndex(0)
, m_videoIndex(0)
, m_clipType(Unknown)
, m_hasLimitedDuration(true)
, m_binController(bincontroller)
, m_snapMarkers(QList < CommentedTime >())
{
m_masterProducer = &producer;
if (!m_masterProducer->is_valid()) {
qDebug()<<"// WARNING, USING INVALID PRODUCER";
return;
}
else {
QString proxy = m_properties->get("kdenlive:proxy");
if (proxy.length() > 2) {
// This is a proxy producer, read original url from kdenlive property
QString path = m_properties->get("kdenlive:originalurl");
if (!path.startsWith(QLatin1String("/"))) {
path.prepend(bincontroller->documentRoot());
}
m_url = QUrl::fromLocalFile(path);
m_usesProxy = true;
}
else m_url = QUrl::fromLocalFile(m_properties->get("resource"));
m_service = m_properties->get("mlt_service");
getInfoForProducer();
}
}
示例2: addMasterProducer
void ClipController::addMasterProducer(Mlt::Producer &producer)
{
m_properties = new Mlt::Properties(producer.get_properties());
m_masterProducer = &producer;
if (!m_masterProducer->is_valid()) qDebug()<<"// WARNING, USING INVALID PRODUCER";
else {
QString proxy = m_properties->get("kdenlive:proxy");
if (proxy.length() > 2) {
// This is a proxy producer, read original url from kdenlive property
m_url = QUrl::fromLocalFile(m_properties->get("kdenlive:originalurl"));
m_usesProxy = true;
}
else {
m_url = QUrl::fromLocalFile(m_properties->get("resource"));
m_usesProxy = false;
}
m_service = m_properties->get("mlt_service");
getInfoForProducer();
}
}