video

package
v0.0.0-...-0518d83 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const BufferSize = 3

Variables

This section is empty.

Functions

This section is empty.

Types

type Frame

type Frame []byte

type Metadata

type Metadata struct {
	Width    int
	Height   int
	FPS      float64
	Duration float64
	PixFmt   string
	IsMOV    bool // We need that info to determine if we can apply "ignore_editlist" parameter
}

func LoadMetadata

func LoadMetadata(path string) *Metadata

type Video

type Video struct {
	*sprite.Sprite
	// contains filtered or unexported fields
}

func NewVideo

func NewVideo(path string, depth float64, position vector.Vector2d, origin vector.Vector2d) *Video

func (*Video) Draw

func (video *Video) Draw(time float64, batch *batch.QuadBatch)

func (*Video) SetStartTime

func (video *Video) SetStartTime(startTime float64)

func (*Video) Update

func (video *Video) Update(time float64)

type VideoDecoder

type VideoDecoder struct {
	Metadata *Metadata
	// contains filtered or unexported fields
}

func NewVideoDecoder

func NewVideoDecoder(filePath string) *VideoDecoder

func (*VideoDecoder) Free

func (dec *VideoDecoder) Free(frame Frame)

func (*VideoDecoder) GetFrame

func (dec *VideoDecoder) GetFrame() Frame

func (*VideoDecoder) HasFinished

func (dec *VideoDecoder) HasFinished() bool

func (*VideoDecoder) StartFFmpeg

func (dec *VideoDecoder) StartFFmpeg(millis int64)

Jump to

Keyboard shortcuts

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