pgs

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

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
}

func NewPgsParser

func NewPgsParser() PgsParser

NewPgsParser Initialize a new PGS parser

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL