Expand description
LIP binary lip-sync support. LIP binary reader and writer.
LIP files store lip-sync animation keyframes for voiced dialogue. Each keyframe maps a timestamp to a viseme (mouth shape) index.
§Shape of the container
A 16-byte header and a keyframe array directly after it. No offsets, because nothing here needs to point anywhere.
The five-byte keyframe stride is load-bearing rather than incidental: the engine animates straight off the raw file buffer instead of parsing the array, so the entries are packed with no alignment padding and adding any would be read as garbage rather than as a variant.
Byte-level field maps live in docs/src/formats/audio/lip.md, with the
engine’s own load sequence.
Structs§
- Lip
- In-memory LIP container.
- LipKeyframe
- One LIP keyframe entry.
- LipShape
Code - Lossless LIP shape code wrapper.
Enums§
- LipBinary
Error - Errors produced while parsing or serializing LIP binary data.
- LipShape
- Known LIP viseme (mouth shape) IDs.
Functions§
- read_
lip - Reads a LIP file from a reader.
- read_
lip_ from_ bytes - Reads a LIP file directly from bytes.
- write_
lip - Writes a LIP file to a writer.
- write_
lip_ to_ vec - Serializes a LIP file into bytes.