decord/source/3404_getRoundingMethod.js

31 lines
650 B
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 3404
2026-07-27 11:26:19 +00:00
// Function ID: 26612
2026-07-20 16:05:17 +00:00
// Name: getRoundingMethod
// Dependencies: []
2026-07-25 08:10:48 +00:00
// Module 3404 (getRoundingMethod)
2026-07-20 16:05:17 +00:00
arg5.getRoundingMethod = function getRoundingMethod(roundingMethod) {
if (roundingMethod) {
let tmp3 = tmp[roundingMethod];
} else {
2026-07-23 10:11:24 +00:00
tmp3 = tmp[trunc];
2026-07-20 16:05:17 +00:00
}
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;
}
};
2026-07-23 10:11:24 +00:00
const trunc = "trunc";