// THE BLUR (module `blur`, an input): a clip's picture blurred at its segment // encode, a caption drawn on it, the sound untouched (a clip's `blur`, // `render.blur` on/off for the uncensored variant; report-to-video // clip-blur.mjs). It filters the footage, so it has no page and no region. import { BLUR_CAPTION_DEFAULT, BLUR_CAPTION_MAX, BLUR_STRENGTH, CLIP_BLUR_KEYS, RENDER_BLUR_VALUES, validateClipBlurEntries, validateRenderBlur, } from "../clip-blur.mjs"; import { defineModule } from "./contract.mjs"; export default defineModule({ id: "blur", version: 1, z: 2, kind: "input", slot: "footage", // Its form in the stacked vertical deck (vertical-deck.mjs). vertical: { slot: "input" }, title: "Blur", summary: "A clip's picture blurred at its encode, a caption on it, the sound as recorded.", configKey: "render.blur", defaults: { blur: "on", caption: BLUR_CAPTION_DEFAULT, strength: BLUR_STRENGTH.default }, validate: (_value, { manifest }) => [...validateRenderBlur(manifest), ...validateClipBlurEntries(manifest)], ui: [ { key: "blur", type: "enum", options: RENDER_BLUR_VALUES, label: "Blurred clips", default: "on" }, { key: "clip.blur", type: "object", keys: CLIP_BLUR_KEYS, label: "A clip's blur", caption: { max: BLUR_CAPTION_MAX, default: BLUR_CAPTION_DEFAULT }, strength: BLUR_STRENGTH }, ], docs: { heading: "Blur", intro: "The full reference is [A clip's picture, blurred](#a-clips-picture-blurred).", rows: [ ["`render.blur`", "`on` · `off` (the uncensored variant) · default `on`", "`umtool look

blur=off`"], ["a clip's `blur`", `\`{on, caption?, strength?, from?, to?}\` -- caption ≤ ${BLUR_CAPTION_MAX}, strength ${BLUR_STRENGTH.min}–${BLUR_STRENGTH.max} (default ${BLUR_STRENGTH.default})`, "`umtool set

blur.on=true`"], ], }, });