/usr/share/kdenlive/effects/update/frei0r.cartoon.js is in kdenlive-data 16.12.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | var update = new Object();
update["diffspace"] = new Array(new Array(2.1, function(v, d) { return this.updDiff(v, d); }));
update["triplevel"] = new Array(new Array(2.1, function(v, d) { return this.updTrip(v, d); }));
function updDiff(value, isDowngrade) {
if (isDowngrade)
return value * 256;
else
return value / 256.;
}
function updTrip(value, isDowngrade) {
if (isDowngrade)
return 1 / (1 - value) - 1;
else
return 1 - 1 / (value + 1);
}
|