generator

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

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 added in v1.6.7

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 added in v1.6.7

type YCbCr10 struct {
	Y, Cb, Cr uint16
}

10-bit YCbCr values for the eight standard colors.

func (YCbCr10) Color added in v1.6.7

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