generator

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	White   = YCbCr10{940, 512, 512}
	Yellow  = YCbCr10{877, 64, 553}
	Cyan    = YCbCr10{754, 615, 64}
	Green   = YCbCr10{691, 167, 105}
	Magenta = YCbCr10{313, 857, 919}
	Red     = YCbCr10{250, 409, 960}
	Blue    = YCbCr10{127, 960, 471}
	Black   = YCbCr10{64, 512, 512}
)

Functions

func NewEBU

func NewEBU(par *ffmpeg.Par) (*ebu, error)

Create a new video generator which generates the EBU Colour Bars

func NewSine

func NewSine(freq, volume float64, par *ffmpeg.Par) (*sine, error)

Create a new sine wave generator with one channel using float32 for samples. The frequency in Hz, volume in decibels and samplerate (ie, 44100) for the audio stream are passed as arguments.

func NewYUV420P

func NewYUV420P(par *ffmpeg.Par) (*yuv420p, error)

Create a new video generator which generates YUV420P frames of the specified size and framerate (in frames per second)

Types

type Generator

type Generator interface {
	io.Closer

	// Return the next generated frame
	Frame() *ffmpeg.Frame
}

Generator is an interface for generating frames of audio or video

type YCbCr10

type YCbCr10 struct {
	Y, Cb, Cr uint16
}

10-bit YCbCr values for the eight standard colors.

func (YCbCr10) Color

func (c YCbCr10) Color() color.YCbCr

Make 8-bit

Jump to

Keyboard shortcuts

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