decord/source/3404_getRoundingMethod.js
2026-07-25 08:10:48 +00:00

30 lines
650 B
JavaScript

// Module ID: 3404
// Function ID: 26611
// Name: getRoundingMethod
// Dependencies: []
// Module 3404 (getRoundingMethod)
arg5.getRoundingMethod = function getRoundingMethod(roundingMethod) {
if (roundingMethod) {
let tmp3 = tmp[roundingMethod];
} else {
tmp3 = tmp[trunc];
}
return tmp3;
};
const obj = {
ceil: Math.ceil,
round: Math.round,
floor: Math.floor,
trunc(endImportTime) {
if (endImportTime < 0) {
const _Math2 = Math;
let rounded = Math.ceil(endImportTime);
} else {
const _Math = Math;
rounded = Math.floor(endImportTime);
}
return rounded;
}
};
const trunc = "trunc";