decord/source/modules/media_engine/GlobalFramePoolLockExperiment.tsx

30 lines
1,014 B
TypeScript
Raw Normal View History

// Module ID: 14009
// Function ID: 14010
2026-07-20 16:05:17 +00:00
// Name: getGlobalFramePoolLockExperimentConfig
// Dependencies: [1434, 2]
2026-07-20 16:05:17 +00:00
// Exports: getGlobalFramePoolLockExperimentConfig
// Module 14009 (getGlobalFramePoolLockExperimentConfig)
import getUnitIdDefault from "getUnitId" /* 1434 */;
2026-08-24 06:08:38 +00:00
2026-07-29 08:29:29 +00:00
let obj = { 1: null };
obj[1] = { enabled: true };
2026-08-24 06:08:38 +00:00
let closure_0 = getUnitIdDefault({ kind: "user", name: "2025-11-global-frame-pool-lock", defaultConfig: { enabled: false }, variations: obj });
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/media_engine/GlobalFramePoolLockExperiment.tsx");
2026-07-20 16:05:17 +00:00
export const getGlobalFramePoolLockExperimentConfig = function getGlobalFramePoolLockExperimentConfig(disable) {
let flag = disable.disable;
if (flag === undefined) {
flag = false;
}
let obj = closure_0;
if (flag) {
let defaultConfig = obj.definition.defaultConfig;
} else {
2026-07-29 08:29:29 +00:00
obj = { location: null };
obj[0] = disable.location;
2026-07-20 16:05:17 +00:00
defaultConfig = obj.getConfig(obj);
}
return defaultConfig;
};