decord/source/__polyfill/04xxx/module_4005.js
github-actions 8d58bae3b2 chore: update source for alpha 347.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4907.js (118.4 MB)
2026-09-18 06:58:00 +00:00

31 lines
641 B
JavaScript

// Module ID: 4005
// Function ID: 4006
// Dependencies: []
// Exports: getRoundingMethod
// Module 4005
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;
};