C# Class SubLib.Core.Timing.AdjustOperator

Performs adjustment operations.
显示文件 Open project: GNOME/gnome-subtitles Class Usage Examples

Public Methods

Method Description
Adjust ( System.TimeSpan startTime, System.TimeSpan endTime ) : bool

Auto adjusts the subtitles given the correct times for the first and last subtitle.

The subtitles are first shifted to the first subtitle's correct time, and then proportionally adjusted using the last subtitle's correct time.

Adjust ( int startIndex, System.TimeSpan startTime, int endIndex, System.TimeSpan endTime ) : bool

Auto adjusts a range of subtitles given their first and last correct times.

The subtitles are first shifted to the first subtitle's correct time, and then proportionally adjusted using the last subtitle's correct time.

Adjust ( int startFrame, int endFrame ) : bool

Auto adjusts the subtitles given the correct frames for the first and last subtitle.

The subtitles are first shifted to the first subtitle's correct frame, and then proportionally adjusted using the last subtitle's correct frame.

Adjust ( int startIndex, int startFrame, int endIndex, int endFrame ) : bool

Auto adjusts a range of subtitles given their first and last correct frames.

The subtitles are first shifted to the first subtitle's correct frame, and then proportionally adjusted using the last subtitle's correct frame.

AdjustOperator ( Subtitles subtitles ) : SubLib.Core.Domain

Method Details

Adjust() public method

Auto adjusts the subtitles given the correct times for the first and last subtitle.
The subtitles are first shifted to the first subtitle's correct time, and then proportionally adjusted using the last subtitle's correct time.
public Adjust ( System.TimeSpan startTime, System.TimeSpan endTime ) : bool
startTime System.TimeSpan The correct start time for the first subtitle.
endTime System.TimeSpan The correct start time for the last subtitle.
return bool

Adjust() public method

Auto adjusts a range of subtitles given their first and last correct times.
The subtitles are first shifted to the first subtitle's correct time, and then proportionally adjusted using the last subtitle's correct time.
public Adjust ( int startIndex, System.TimeSpan startTime, int endIndex, System.TimeSpan endTime ) : bool
startIndex int The subtitle index to start the adjustment with.
startTime System.TimeSpan The correct start time for the first subtitle.
endIndex int The subtitle index to end the adjustment with.
endTime System.TimeSpan The correct start time for the last subtitle.
return bool

Adjust() public method

Auto adjusts the subtitles given the correct frames for the first and last subtitle.
The subtitles are first shifted to the first subtitle's correct frame, and then proportionally adjusted using the last subtitle's correct frame.
public Adjust ( int startFrame, int endFrame ) : bool
startFrame int The correct start frame for the first subtitle.
endFrame int The correct start frame for the last subtitle.
return bool

Adjust() public method

Auto adjusts a range of subtitles given their first and last correct frames.
The subtitles are first shifted to the first subtitle's correct frame, and then proportionally adjusted using the last subtitle's correct frame.
public Adjust ( int startIndex, int startFrame, int endIndex, int endFrame ) : bool
startIndex int The subtitle index to start the adjustment with.
startFrame int The correct start frame for the first subtitle.
endIndex int The subtitle index to end the adjustment with.
endFrame int The correct start frame for the last subtitle.
return bool

AdjustOperator() public method

public AdjustOperator ( Subtitles subtitles ) : SubLib.Core.Domain
subtitles SubLib.Core.Domain.Subtitles
return SubLib.Core.Domain