bcc

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BCC

type BCC struct {
	FontSize        float32     `json:"font_size"`
	FontColor       string      `json:"font_color"`
	BackgroundAlpha float32     `json:"background_alpha"`
	BackgroundColor string      `json:"background_color"`
	Stroke          string      `json:"stroke"`
	Body            []*Subtitle `json:"body"`
}

func Open

func Open(file string) (ret *BCC, err error)

type SortSubtitle

type SortSubtitle []*Subtitle

func (SortSubtitle) Len

func (s SortSubtitle) Len() int

func (SortSubtitle) Less

func (s SortSubtitle) Less(i, j int) bool

func (SortSubtitle) Swap

func (s SortSubtitle) Swap(i, j int)

type Subtitle

type Subtitle struct {
	From     float32 `json:"from"`
	To       float32 `json:"to"`
	Location int     `json:"location"`
	Content  string  `json:"content"`
}

Jump to

Keyboard shortcuts

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