decord/source/modules/video_backgrounds/applyBackgroundOption.tsx

74 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 8887
// Function ID: 70010
2026-07-20 16:05:17 +00:00
// Name: _getFilterBlob
2026-07-24 07:16:23 +00:00
// Dependencies: [5, 1849, 8888, 7940, 653, 44, 8890, 4227, 8893, 1392, 8889, 8892, 8894, 2]
2026-07-20 16:05:17 +00:00
// Exports: applyBackgroundOptionPreview, applyInitialVideoBackgroundOption
2026-07-24 07:16:23 +00:00
// Module 8887 (_getFilterBlob)
2026-07-23 10:11:24 +00:00
import invariant from "invariant";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_5 from "_isNativeReflectConstruct";
import VideoFilterType from "VideoFilterType";
import { NOOP } from "ME";
let closure_6;
let closure_7;
const require = arg1;
2026-07-20 16:05:17 +00:00
function _getFilterBlob() {
// CreateGeneratorClosureLongIndex (0x67)
const obj = callback(tmp);
return obj(...arguments);
}
function applyBackgroundMediaFilterSettings(arg0, target, graph, image, blob) {
2026-07-24 07:16:23 +00:00
let obj = require(8890) /* _fetchVideoFilterAssets */;
2026-07-20 16:05:17 +00:00
obj = { graph, target, image, blob };
const result = obj.applyMediaFilterSettings({ [arg0]: obj });
}
function applyBackgroundOption() {
return _applyBackgroundOption(...arguments);
}
function _applyBackgroundOption() {
// CreateGeneratorClosureLongIndex (0x67)
const obj = callback(tmp);
return obj(...arguments);
}
function applyBackgroundOptionLive(lastUsedVideoBackgroundOption, arg1) {
return _applyBackgroundOptionLive(...arguments);
}
function _applyBackgroundOptionLive() {
// CreateGeneratorClosureLongIndex (0x67)
const obj = callback(tmp);
return obj(...arguments);
}
function _applyBackgroundOptionPreview() {
// CreateGeneratorClosureLongIndex (0x67)
const obj = callback(tmp);
return obj(...arguments);
}
2026-07-23 10:11:24 +00:00
({ BACKGROUND_REPLACEMENT_SIZE: closure_6, BLUR_BACKGROUND_OPTION: closure_7 } = VideoFilterType);
let result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/video_backgrounds/applyBackgroundOption.tsx");
2026-07-20 16:05:17 +00:00
export { applyBackgroundOptionLive };
export const applyBackgroundOptionPreview = function applyBackgroundOptionPreview() {
return _applyBackgroundOptionPreview(...arguments);
};
export const applyInitialVideoBackgroundOption = function applyInitialVideoBackgroundOption() {
2026-07-23 10:11:24 +00:00
currentUser = currentUser.getCurrentUser();
2026-07-20 16:05:17 +00:00
if (null != currentUser) {
2026-07-24 07:16:23 +00:00
let obj = require(8892) /* getOptionFromSettingsFiltered */;
2026-07-20 16:05:17 +00:00
const lastUsedVideoBackgroundOption = obj.getLastUsedVideoBackgroundOption(currentUser);
2026-07-24 07:16:23 +00:00
let tmp6 = importDefault(8894)();
2026-07-20 16:05:17 +00:00
if (tmp6) {
tmp6 = !hasBeenApplied.hasBeenApplied;
}
if (tmp6) {
tmp6 = null != lastUsedVideoBackgroundOption;
}
if (tmp6) {
obj = { track: false };
applyBackgroundOptionLive(lastUsedVideoBackgroundOption, obj).catch(NOOP);
const promise = applyBackgroundOptionLive(lastUsedVideoBackgroundOption, obj);
}
}
};