encoders

package
v0.0.0-...-ec6b4c5 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DV9ImageEncoder

type DV9ImageEncoder struct {
	FFMpegBinPath string

	Framerate int
	// contains filtered or unexported fields
}

func (*DV9ImageEncoder) Close

func (enc *DV9ImageEncoder) Close()

func (*DV9ImageEncoder) Encode

func (enc *DV9ImageEncoder) Encode(img image.Image)

func (*DV9ImageEncoder) Init

func (enc *DV9ImageEncoder) Init(videoFileName string)

func (*DV9ImageEncoder) Run

func (enc *DV9ImageEncoder) Run(videoFileName string)

type HuffYuvImageEncoder

type HuffYuvImageEncoder struct {
	FFMpegBinPath string

	Framerate int
	// contains filtered or unexported fields
}

this is a very common loseless encoder (but produces huge files)

func (*HuffYuvImageEncoder) Close

func (enc *HuffYuvImageEncoder) Close()

func (*HuffYuvImageEncoder) Encode

func (enc *HuffYuvImageEncoder) Encode(img image.Image)

func (*HuffYuvImageEncoder) Init

func (enc *HuffYuvImageEncoder) Init(videoFileName string)

func (*HuffYuvImageEncoder) Run

func (enc *HuffYuvImageEncoder) Run(videoFileName string) error

type ImageEncoder

type ImageEncoder interface {
	Init(string)
	Run()
	Encode(image.Image)
	Close()
}

type MJPegImageEncoder

type MJPegImageEncoder struct {
	Quality   int
	Framerate int32
	// contains filtered or unexported fields
}

func (*MJPegImageEncoder) Close

func (enc *MJPegImageEncoder) Close()

func (*MJPegImageEncoder) Encode

func (enc *MJPegImageEncoder) Encode(img image.Image)

func (*MJPegImageEncoder) Init

func (enc *MJPegImageEncoder) Init(videoFileName string)

func (*MJPegImageEncoder) Run

func (enc *MJPegImageEncoder) Run(videoFileName string)

type QTRLEImageEncoder

type QTRLEImageEncoder struct {
	FFMpegBinPath string

	Framerate int
	// contains filtered or unexported fields
}

QTRLEImageEncoder quick time rle is an efficient loseless codec, uses .mov extension

func (*QTRLEImageEncoder) Close

func (enc *QTRLEImageEncoder) Close()

func (*QTRLEImageEncoder) Encode

func (enc *QTRLEImageEncoder) Encode(img image.Image)

func (*QTRLEImageEncoder) Init

func (enc *QTRLEImageEncoder) Init(videoFileName string)

func (*QTRLEImageEncoder) Run

func (enc *QTRLEImageEncoder) Run(videoFileName string) error

type VP8ImageEncoder

type VP8ImageEncoder struct {
	FFMpegBinPath string

	Framerate int
	// contains filtered or unexported fields
}

func (*VP8ImageEncoder) Close

func (enc *VP8ImageEncoder) Close()

func (*VP8ImageEncoder) Encode

func (enc *VP8ImageEncoder) Encode(img image.Image)

func (*VP8ImageEncoder) Init

func (enc *VP8ImageEncoder) Init(videoFileName string)

func (*VP8ImageEncoder) Run

func (enc *VP8ImageEncoder) Run(videoFileName string)

type X264ImageEncoder

type X264ImageEncoder struct {
	FFMpegBinPath string

	Framerate int
	// contains filtered or unexported fields
}

func (*X264ImageEncoder) Close

func (enc *X264ImageEncoder) Close()

func (*X264ImageEncoder) Encode

func (enc *X264ImageEncoder) Encode(img image.Image)

func (*X264ImageEncoder) Init

func (enc *X264ImageEncoder) Init(videoFileName string)

func (*X264ImageEncoder) Run

func (enc *X264ImageEncoder) Run(videoFileName string) error

Jump to

Keyboard shortcuts

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