decord/source/__polyfill/03xxx/module_3920.js
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

31 lines
641 B
JavaScript

// Module ID: 3920
// Function ID: 3921
// Dependencies: []
// Exports: getRoundingMethod
// Module 3920
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";
export const getRoundingMethod = function getRoundingMethod(roundingMethod) {
if (roundingMethod) {
let tmp3 = tmp[roundingMethod];
} else {
tmp3 = tmp[trunc];
}
return tmp3;
};