Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PgsParser ¶
type PgsParser interface { // ParsePgsFile Parse the input file path and call the onImage function for each ImageData found ParsePgsFile(inputFilePath string, onImage func(index int, startTime time.Duration, data displaySet.ImageData) error) error // ParseDisplaySets Parse the input file path and call the onDisplaySet function for each DisplaySet found ParseDisplaySets(inputFilePath string, onDisplaySet func(data displaySet.DisplaySet, startTime time.Duration) error) error // ConvertToPngImages Parse the input file path and save each subtitle picture as a PNG using fileCreator function to create the PNG file ConvertToPngImages(inputFilePath string, fileCreator func(index int, startTime time.Duration) (*os.File, error)) error // ConvertToJpgImages Parse the input file path and save each subtitle picture as a JPG using fileCreator function to create the JPG file ConvertToJpgImages(inputFilePath string, fileCreator func(index int, startTime time.Duration) (*os.File, error)) error }
Click to show internal directories.
Click to hide internal directories.