[−][src]Struct alass_util::SyncOptions
Options governing the synchronization process
Most of these options are passed directly to alass
. See the official alass
repository for
details: https://github.com/kaegi/alass
-
interval
: The smallest unit of time recognized byalass
. Smaller numbers make the alignment more accurate, larger numbers make alignment faster. (millis) -
split_mode
: When true,alass
will attempt alignment assuming the presence of commercial breaks or added/removed scenes. Disablingsplit_mode
can make syncing faster but will only correct subtitles whose misalignment is the result of a constant shift. -
split_penalty
: Determines how eager the algorithm is to avoid splitting of the subtitles. A value of 1000 means that all lines will be shifted by the same offset, while 0.01 will produce MANY segments with different offsets. Values from 1 to 20 are the most reasonable. -
speed_optimization
: Greatly speeds up synchronization by sacrificing accuracy. -
framerate_correction
: Whether to attempt correction of mismatched framerates.
Fields
interval: i64
split_mode: bool
split_penalty: f64
speed_optimization: Option<f64>
framerate_correction: bool
Trait Implementations
impl Default for SyncOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for SyncOptions
impl Send for SyncOptions
impl Sync for SyncOptions
impl Unpin for SyncOptions
impl UnwindSafe for SyncOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,