mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-14 22:33:09 +00:00
The container's `Pard` is now the only decoder of parameter definitions: `EffectParam` delegates to it and the export's test reference reads its encoded table back through it (no big-endian readers of its own). The export stores a checkbox default as on/off, as the importer reads it. Inside a strongly connected component of candidate precomp links (a file with a precomp loop), the per-composition searches share one budget of link visits; past it, a layer that would need a search is refused and reported, which never lets a loop in. Below the budget the decisions are the old ones exactly.
67 lines
2.9 KiB
Rust
67 lines
2.9 KiB
Rust
//! After Effects project (`.aep`) container reader and writer.
|
|
//!
|
|
//! An `.aep` is a `RIFX` container (big-endian RIFF) with form type `Egg!`. This crate reads it
|
|
//! into a lossless chunk tree ([`AepFile`]) and writes it back byte for byte. The XML form of a
|
|
//! project (`.aepx`) is read into the same tree by [`read_aepx`]; [`parse_any`] picks the reader
|
|
//! by content. See
|
|
//! `docs/aep-format.md` for the observed format and how it was established (clean room: only
|
|
//! files we generated ourselves, one change per file).
|
|
//!
|
|
//! [`Project::new`] opens a typed, read-only view over the tree: items, compositions
|
|
//! ([`CompHeader`]), layers ([`LayerHeader`], [`Transform`], effects, masks, text documents,
|
|
//! markers), properties, keyframes and footage. Only fields whose layout was verified against the
|
|
//! values the test files were made with are decoded; every accessor returns `None` (or an empty
|
|
//! list) on damaged data instead of failing.
|
|
|
|
mod aepx;
|
|
mod arbitrary;
|
|
mod bytes;
|
|
mod camera;
|
|
mod chunk;
|
|
pub mod effect_map;
|
|
mod effects;
|
|
mod error;
|
|
mod footage;
|
|
mod header;
|
|
pub mod index;
|
|
mod keys;
|
|
mod masks;
|
|
mod matte;
|
|
mod read;
|
|
mod settings;
|
|
mod shapes;
|
|
pub mod style_map;
|
|
mod textdoc;
|
|
mod typed;
|
|
mod values;
|
|
mod version;
|
|
mod write;
|
|
|
|
pub use aepx::{is_aepx, parse_any, read_aepx, read_aepx_with_limits};
|
|
pub use arbitrary::{
|
|
CURVE_IDENTITY, CryptomatteData, CurvesData, ExtractorChannels, HueSaturationData, LevelsData, MeshData, curve_lut, identifier_channel_type,
|
|
};
|
|
pub use camera::{CameraPosition, DEFAULT_CAMERA_ZOOM};
|
|
pub use chunk::{AepFile, Body, Chunk, LIST, NESTED_IDS, Walk};
|
|
pub use effects::{DefinitionSource, Effect, EffectDefinitions, EffectParam, LayerRef, ParamKind, ParamValue};
|
|
// The export's tests read their encoded definitions back through the importer's decoder.
|
|
#[cfg(test)]
|
|
pub(crate) use effects::Pard;
|
|
pub use error::AepError;
|
|
pub use footage::{Footage, SequenceInfo};
|
|
pub use header::{BlendMode, CompHeader, LayerHeader, LayerType, LightType, Quality, Rational, Renderer};
|
|
pub use index::{Node, NodeWalk, Nodes, TreeIndex};
|
|
pub use keys::{ExpressionFlags, Interpolation, KeyEase, KeyframeKind, SpatialKey};
|
|
pub use masks::{Mask, MaskAtom, MaskMode, PathVertex, ShapePath};
|
|
pub use matte::{MatteMode, TrackMatte};
|
|
pub use read::{Limits, parse, parse_with_limits};
|
|
pub use settings::{ProjectSettings, TimeDisplay, WorkingSpace};
|
|
pub use shapes::{GradientType, PolystarType, ShapeDetail, ShapeGroup, ShapeItem, Stroke, StrokeCap, StrokeJoin};
|
|
pub use textdoc::{
|
|
AutoKern, Caps, CueType, FontBaseline, Justification, KernRun, Marker, ParagraphRun, StyleRun, TextBox, TextDocument, TextValue, parse_text_dict,
|
|
};
|
|
pub use typed::{Comp, Item, ItemKind, KeyLayout, KeyList, Keyframe, Layer, ListHeader, Project, PropEntry, PropGroup, PropNode, Property, TimeBase};
|
|
pub use values::{Orientation, OrientationKey, TimeRemap, TimeRemapKey, Tracked, Transform, ValueSource};
|
|
pub use version::AeVersion;
|
|
pub use write::{write, write_to};
|