C# Class SubLib.Core.Timing.FrameRateOperator

Performs frame rate operations.
ファイルを表示 Open project: GNOME/gnome-subtitles Class Usage Examples

Public Methods

Method Description
ChangeCurrent ( float frameRate ) : void

Changes the current frame rate of the subtitles.

This changes the frame rate currently being used with the subtitles, which is sometimes refered to as the output frame rate.

ChangeOriginal ( float frameRate ) : void

Updates the subtitles' frames using the specified frame rate as the one they had when they were opened.

This results on having the subtitles with the frames they would have if they had been opened with this frame rate. The original frame rate is sometimes refered to as the input frame rate.

FrameRateOperator ( Subtitles subtitles ) : SubLib.Core.Domain

Method Details

ChangeCurrent() public method

Changes the current frame rate of the subtitles.
This changes the frame rate currently being used with the subtitles, which is sometimes refered to as the output frame rate.
public ChangeCurrent ( float frameRate ) : void
frameRate float The new frame rate to be used.
return void

ChangeOriginal() public method

Updates the subtitles' frames using the specified frame rate as the one they had when they were opened.
This results on having the subtitles with the frames they would have if they had been opened with this frame rate. The original frame rate is sometimes refered to as the input frame rate.
public ChangeOriginal ( float frameRate ) : void
frameRate float The original subtitles' frame rate.
return void

FrameRateOperator() public method

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