Skip to main content

Crate oxideav_ass

Crate oxideav_ass 

Source
Expand description

ASS/SSA subtitle codec + container for oxideav.

This crate hosts the parser, writer, codec, and container for the Advanced SubStation Alpha (.ass) and SubStation Alpha (.ssa) text subtitle formats. It is a sibling to oxideav-subtitle, which hosts the “lightweight” text formats (SRT, WebVTT) and the shared subtitle IR re-exports.

FormatCodec idContainer nameExtensions
ASS/SSAassass.ass, .ssa

The public API mirrors oxideav-webp / oxideav-gif:

Format-to-format converters between ASS and the SRT/WebVTT formats from oxideav-subtitle live in transform.

Re-exports§

pub use animate::extract_cue_animation;
pub use animate::parse_overrides;
pub use animate::AnimatedTag;
pub use animate::ClipRect;
pub use animate::CueAnimation;
pub use animate::KaraokeKind;
pub use animate::KaraokeSpan;
pub use animate::RenderState;
pub use drawing::parse_drawing;
pub use render::make_animated_decoder;
pub use render::AnimatedRenderedDecoder;
pub use transform::ass_to_srt;
pub use transform::ass_to_webvtt;
pub use transform::srt_to_ass;
pub use transform::webvtt_to_ass;

Modules§

animate
Typed extraction + time-evaluation of ASS animated override tags.
codec
Decoder / Encoder implementations for ASS/SSA.
container
Container for the standalone ASS/SSA subtitle format.
drawing
ASS drawing-mode parser.
render
Animated subtitle decoder: wraps a base ASS subtitle decoder and emits rasterised RGBA Frame::Videos sampled at a caller-controlled moment in cue-local time.
transform
Direct ASS ↔ SRT / ASS ↔ WebVTT converters.

Functions§

cue_to_bytes_pub
Serialise one cue to a single Dialogue: line. Public alias of the crate-private cue_to_bytes so integration tests + external drivers can build packets without going through the demuxer.
parse
register
Unified registration entry point — installs the ASS codec into the codec sub-registry and the ASS container into the container sub-registry of the supplied RuntimeContext.
register_codecs
Register the ASS codec (decoder + encoder).
register_containers
Register the ASS container (demuxer + muxer + probe).
write