GitCorner

Code

ossartcrafteffectcraft🌐
665bfac0b339
//! The layer-style records the exporter writes, one per parameter (aep-format.md 3.12b): the
//! match name, the components, the key template (`tdb4` byte 7), the class word (`tdb4` 8..11)
//! and the limits (`tdum` / `tduM`), as After Effects shows them for each style parameter. The
//! rows were listed from our style cases (950-980) through the reader.

/// One record: match name, components, key template, class word, limits.
pub(crate) type StyleRec = (&'static str, u8, u8, u32, Option<(f64, f64)>);

const fn s(name: &'static str, dims: u8, template: u8, class: u32, limits: Option<(f64, f64)>) -> StyleRec {
    (name, dims, template, class, limits)
}

#[rustfmt::skip]
pub(crate) static STYLE_RECORDS: &[StyleRec] = &[
    s("ADBE B Channel Blend", 1, 0, 0xffff0004, None),
    s("ADBE Blend Interior", 1, 0, 0xffff0004, None),
    s("ADBE Blend Ranges", 1, 0, 0xffff0004, None),
    s("ADBE G Channel Blend", 1, 0, 0xffff0004, None),
    s("ADBE Global Altitude2", 1, 0, 0x0002ffff, None),
    s("ADBE Global Angle2", 1, 0, 0x0002ffff, None),
    s("ADBE Layer Fill Opacity2", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("ADBE R Channel Blend", 1, 0, 0xffff0004, None),
    s("bevelEmboss/bevelDirection", 1, 0, 0x00010004, None),
    s("bevelEmboss/bevelStyle", 1, 0, 0x00010004, None),
    s("bevelEmboss/bevelTechnique", 1, 0, 0x00010004, None),
    s("bevelEmboss/blur", 1, 0, 0xffffffff, Some((0.0, 250.0))),
    s("bevelEmboss/highlightColor", 4, 1, 0x0002ffff, None),
    s("bevelEmboss/highlightMode", 1, 0, 0x00010004, None),
    s("bevelEmboss/highlightOpacity", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("bevelEmboss/localLightingAltitude", 1, 0, 0xffffffff, None),
    s("bevelEmboss/localLightingAngle", 1, 0, 0xffffffff, None),
    s("bevelEmboss/shadowColor", 4, 1, 0x0002ffff, None),
    s("bevelEmboss/shadowMode", 1, 0, 0x00010004, None),
    s("bevelEmboss/shadowOpacity", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("bevelEmboss/softness", 1, 0, 0xffffffff, Some((0.0, 16.0))),
    s("bevelEmboss/strengthRatio", 1, 0, 0xffffffff, Some((1.0, 1000.0))),
    s("bevelEmboss/useGlobalAngle", 1, 0, 0x00010004, None),
    s("chromeFX/blur", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("chromeFX/color", 4, 1, 0x0002ffff, None),
    s("chromeFX/distance", 1, 0, 0xffffffff, Some((1.0, 100.0))),
    s("chromeFX/invert", 1, 0, 0x00010004, None),
    s("chromeFX/localLightingAngle", 1, 0, 0xffffffff, None),
    s("chromeFX/mode2", 1, 0, 0x00010004, None),
    s("chromeFX/opacity", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("dropShadow/blur", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("dropShadow/chokeMatte", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("dropShadow/color", 4, 1, 0x0002ffff, None),
    s("dropShadow/distance", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("dropShadow/layerConceals", 1, 0, 0x00010004, None),
    s("dropShadow/localLightingAngle", 1, 0, 0xffffffff, None),
    s("dropShadow/mode2", 1, 0, 0x00010004, None),
    s("dropShadow/noise", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("dropShadow/opacity", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("dropShadow/useGlobalAngle", 1, 0, 0x00010004, None),
    s("frameFX/color", 4, 1, 0x0002ffff, None),
    s("frameFX/mode2", 1, 0, 0x00010004, None),
    s("frameFX/opacity", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("frameFX/size", 1, 0, 0xffffffff, Some((1.0, 100.0))),
    s("frameFX/style", 1, 0, 0x00010004, None),
    s("gradientFill/align", 1, 0, 0x00010004, None),
    s("gradientFill/angle", 1, 0, 0xffffffff, None),
    s("gradientFill/gradientSmoothness", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("gradientFill/mode2", 1, 0, 0x00010004, None),
    s("gradientFill/offset", 2, 3, 0xffffffff, None),
    s("gradientFill/opacity", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("gradientFill/reverse", 1, 0, 0x00010004, None),
    s("gradientFill/scale", 1, 0, 0xffffffff, Some((10.0, 150.0))),
    s("gradientFill/type", 1, 0, 0x00010004, None),
    s("innerGlow/AEColorChoice", 1, 0, 0x00010004, None),
    s("innerGlow/blur", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("innerGlow/chokeMatte", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("innerGlow/color", 4, 1, 0x0002ffff, None),
    s("innerGlow/glowTechnique", 1, 0, 0x00010004, None),
    s("innerGlow/gradientSmoothness", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("innerGlow/innerGlowSource", 1, 0, 0x00010004, None),
    s("innerGlow/inputRange", 1, 0, 0xffffffff, Some((1.0, 100.0))),
    s("innerGlow/mode2", 1, 0, 0x00010004, None),
    s("innerGlow/noise", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("innerGlow/opacity", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("innerGlow/shadingNoise", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("innerShadow/blur", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("innerShadow/chokeMatte", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("innerShadow/color", 4, 1, 0x0002ffff, None),
    s("innerShadow/distance", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("innerShadow/localLightingAngle", 1, 0, 0xffffffff, None),
    s("innerShadow/mode2", 1, 0, 0x00010004, None),
    s("innerShadow/noise", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("innerShadow/opacity", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("innerShadow/useGlobalAngle", 1, 0, 0x00010004, None),
    s("outerGlow/AEColorChoice", 1, 0, 0x00010004, None),
    s("outerGlow/blur", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("outerGlow/chokeMatte", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("outerGlow/color", 4, 1, 0x0002ffff, None),
    s("outerGlow/glowTechnique", 1, 0, 0x00010004, None),
    s("outerGlow/gradientSmoothness", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("outerGlow/inputRange", 1, 0, 0xffffffff, Some((1.0, 100.0))),
    s("outerGlow/mode2", 1, 0, 0x00010004, None),
    s("outerGlow/noise", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("outerGlow/opacity", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("outerGlow/shadingNoise", 1, 0, 0xffffffff, Some((0.0, 100.0))),
    s("solidFill/color", 4, 1, 0x0002ffff, None),
    s("solidFill/mode2", 1, 0, 0x00010004, None),
    s("solidFill/opacity", 1, 0, 0xffffffff, Some((0.0, 100.0))),
];