core

package
v0.0.0-...-03f5639 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core struct {
	// contains filtered or unexported fields
}

func NewCore

func NewCore(ctx context.Context, eventsCh chan tui.Event) *Core

func (*Core) Compare

func (c *Core) Compare(filename string) (bool, error)

encode + decode + compare

func (*Core) Decode

func (c *Core) Decode(videoFile string) (string, error)

1. extract frames from video 2. decode frames into bytes by workers, send results to separage channel in resChs 3. write to result file continuously. Read from resChs in order from every worker

func (*Core) Encode

func (c *Core) Encode(path string) error

1. read file into buffer by chunks 2. encode chunks to images and write to files as png frames 3. encode frames into video

Jump to

Keyboard shortcuts

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