[][src]Crate alass_core

alass takes two timespan arrays (e.g. from two subtitle files) and tries to align the incorrect subtitles to the reference subtitle. It automatically fixes offsets and introduces/removes breaks between subtitles in the incorrect subtitle to achive the best alignment.

Structs

NoProgressHandler

impl ProgressHandler with empty functions

TimeDelta

This struct represents a time difference between two TimePoints. Internally its an integer type.

TimePoint

Represents a timepoint in your own metric.

TimeSpan

Represents a time span from "start" (included) to "end" (excluded).

Traits

ProgressHandler

Use this trait if you want more detailed information about the progress of the align operation (which might take some seconds).

Functions

align

Matches an incorrect subtitle list to a reference subtitle list.

align_nosplit

Matches an incorrect subtitle list to a reference subtitle list with only a single constant shift (no split).

get_nosplit_score

Calculate the no-split score (see thesis in repository of source code).

get_split_rating

Calculate the split score (see thesis in repository of source code).

overlap_scoring

Calculate score based only on the overlapping length of the intervals (better when comparing scaled subtitles; used for FPS correction).

standard_scoring

This score is 1 for equally length spans and lower the more the spans are unequal in length (use this scoring if you're not sure what to take).

Type Definitions

Score