decord/source/8079_pickNotNil.js
2026-07-24 07:16:23 +00:00

40 lines
1.3 KiB
JavaScript

// Module ID: 8079
// Function ID: 64032
// Name: pickNotNil
// Dependencies: [4487]
// Module 8079 (pickNotNil)
const module = arg2;
const dependencyMap = arg6;
arg5.pickNotNil = function pickNotNil(obj) {
obj = {};
for (const key10007 in arg0) {
let tmp4 = key10007;
let _Object = Object;
if (!hasOwnProperty.call(arg0, key10007)) {
continue;
} else {
let tmp = arg0[key10007];
let tmp2 = tmp;
if (null == tmp) {
continue;
} else {
obj[key10007] = tmp;
let tmp3 = tmp;
continue;
}
continue;
}
continue;
}
return obj;
};
arg5.idPattern = /#([^)]+)'?\)?$/;
arg5.getRandomNumber = function getRandomNumber() {
const random = Math.random();
const random1 = Math.random();
return Math.floor(random * Math.floor(random1 * Date.now()));
};
arg5.warnUnimplementedFilter = function warnUnimplementedFilter() {
module(4487)(true, "Some of the used filters are not yet supported on native platforms. Please check the USAGE.md for more info. Not implemented filters:\n", JSON.stringify(["FeComponentTransfer", "FeConvolveMatrix", "FeDiffuseLighting", "FeDisplacementMap", "FeFuncA", "FeFuncB", "FeFuncG", "FeFuncR", "FeImage", "FeMorphology", "FePointLight", "FeSpecularLighting", "FeSpotLight", "FeTile", "FeTurbulence"], null, 2));
};