Commit 9fcbba8b authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Improve some effect names, capitalize first letter, patch by alcinos

REVIEW: 129218
parent 68e89f48
<!DOCTYPE kpartgui>
<effect tag="frei0r.mask0mate" id="frei0r.mask0mate" type="video" unique="1">
<name>Mask0Mate</name>
<name>Rectangular Alpha mask</name>
<description>Creates an square alpha-channel mask</description>
<author>Richard Spindler</author>
<parameter type="constant" name="Left" max="1000" min="0" default="0" factor="1000">
......
<!DOCTYPE kpartgui>
<effect LC_NUMERIC="C" tag="frei0r.pr0be" id="frei0r.pr0be">
<name>pr0be</name>
<name>Video values</name>
<description>Measure video values</description>
<author>Marko Cebokli</author>
......
<!DOCTYPE kpartgui>
<effect LC_NUMERIC="C" tag="frei0r.pr0file" id="frei0r.pr0file">
<name>pr0file</name>
<name>Oscilloscope</name>
<description>2D video oscilloscope</description>
<author>Marko Cebokli</author>
......
<!DOCTYPE kpartgui>
<effect tag="frei0r.threelay0r" id="frei0r.threelay0r">
<name>threelay0r</name>
<name>3-level Threshold</name>
<description>Dynamic 3-level thresholding</description>
<author>Hedde Bosman</author>
</effect>
<!DOCTYPE kpartgui>
<effect tag="frei0r.threshold0r" id="frei0r.threshold0r">
<name>Threshold0r</name>
<name>Threshold</name>
<description>Thresholds a source image</description>
<author>Jean-Sebastien Senecal</author>
<parameter type="simplekeyframe" name="Threshold" max="1000" min="0" default="200" factor="1000">
......
<!DOCTYPE kpartgui>
<effect tag="frei0r.twolay0r" id="frei0r.twolay0r">
<name>twolay0r</name>
<name>Binarize dynamically</name>
<description>Dynamic thresholding</description>
<author>Martin Bayer</author>
</effect>
<!DOCTYPE kpartgui>
<effect tag="threshold" id="threshold">
<name>Threshold</name>
<name>Binarize</name>
<description>Make monochrome clip</description>
<author>Charles Yates</author>
<parameter type="constant" name="midpoint" max="255" min="0" default="128">
......
......@@ -553,7 +553,7 @@ QDomDocument initEffects::createDescriptionFromMlt(Mlt::Repository* repository,
Mlt::Properties *metadata = repository->metadata(filter_type, filtername.toLatin1().data());
////qDebug() << filtername;
if (metadata && metadata->is_valid()) {
if (metadata->get("title") && metadata->get("identifier")) {
if (metadata->get("title") && metadata->get("identifier") && strlen(metadata->get("title")) > 0) {
QDomElement eff = ret.createElement(QStringLiteral("effect"));
QString id = metadata->get("identifier");
eff.setAttribute(QStringLiteral("tag"), id);
......@@ -561,7 +561,9 @@ QDomDocument initEffects::createDescriptionFromMlt(Mlt::Repository* repository,
////qDebug()<<"Effect: "<<id;
QDomElement name = ret.createElement(QStringLiteral("name"));
name.appendChild(ret.createTextNode(metadata->get("title")));
QString name_str = metadata->get("title");
name_str[0] = name_str[0].toUpper();
name.appendChild(ret.createTextNode(name_str));
QDomElement desc = ret.createElement(QStringLiteral("description"));
desc.appendChild(ret.createTextNode(metadata->get("description")));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment