thumber

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ctx context.Context, videoPath string, opts ThumbOptions) (image.Image, error)

Types

type ThumbOptions

type ThumbOptions struct {
	From              time.Duration
	To                time.Duration
	TileColumns       int
	TileCount         int
	Interval          time.Duration
	TileWidth         int
	TileHeight        int
	OverlayTimestamps bool
	Padding           int
}

func (ThumbOptions) Validate

func (o ThumbOptions) Validate() error

type Thumbnail

type Thumbnail struct {
	image.Image
	Timestamp time.Duration
}

func MakeThumbnails

func MakeThumbnails(ctx context.Context, videoPath string, opts ThumbOptions) ([]Thumbnail, error)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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