Discover Packages
github.com/mutablelogic/go-media
pkg
generator
package
Version:
v1.7.7
Opens a new window with list of versions in this module.
Published: Jun 20, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
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}
)
Create a new video generator which generates the EBU Colour Bars
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.
Create a new video generator which generates YUV420P frames
of the specified size and framerate (in frames per second)
Generator is an interface for generating frames of audio or video
type YCbCr10 struct {
Y, Cb, Cr uint16
}
10-bit YCbCr values for the eight standard colors.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.