postprocess

package
v0.0.0-...-cc5a67f Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Overview

Package postprocess implements the postprocess pipeline.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clamp

type Clamp struct {
	// contains filtered or unexported fields
}

Clamp represents a clamp filter.

func NewClamp

func NewClamp(max float64) *Clamp

NewClamp returns a new clamp filter.

func (*Clamp) Apply

func (c *Clamp) Apply(i image.Image, _ *scene.Scene) error

type ColourGrading

type ColourGrading struct {
	// contains filtered or unexported fields
}

ColourGrading represents a colour grading filter.

func NewColourGradingFromCube

func NewColourGradingFromCube(r io.Reader) (*ColourGrading, error)

NewColourGradingFromCube returns a new colour grading filter.

func (*ColourGrading) Apply

func (cg *ColourGrading) Apply(i image.Image, _ *scene.Scene) error

type Filter

type Filter interface {
	// Apply performs a series of changes on the supplied image.
	Apply(i image.Image, scene *scene.Scene) error
}

Filter represents a postprocess filter.

type Gamma

type Gamma struct{}

Gamma represents a gamma adjustment filter.

func NewGamma

func NewGamma() *Gamma

NewClamp returns a new clamp filter.

func (*Gamma) Apply

func (g *Gamma) Apply(i image.Image, _ *scene.Scene) error

type Pipeline

type Pipeline struct {
	// contains filtered or unexported fields
}

Pipeline represents a filter pipeline.

func NewPipeline

func NewPipeline(filters []Filter) *Pipeline

NewPipeline returns a new filter pipeline.

func (*Pipeline) Apply

func (p *Pipeline) Apply(i image.Image, scene *scene.Scene) error

Apply applies all the filters in the pipeline in the order they were added to the slice.

Jump to

Keyboard shortcuts

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