filmgrain

package
v0.0.0-...-fede9f9 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePhotonNoiseTable

func CreatePhotonNoiseTable(width, height int, iso float64, transferFunction *TransferFunction) ([]byte, error)

Types

type TransferFunction

type TransferFunction struct {
	ToLinear   func(in float64) (linear float64)
	FromLinear func(linear float64) (out float64)

	// MidTone In linear output light. This would typically be 0.18 for SDR (this matches
	// the definition of Standard Output Sensitivity from ISO 12232:2019), but in
	// HDR, we certainly do not want to consider 18% of the maximum output a
	// “mid-tone”, as it would be e.g. 1800 cd/m² for SMPTE ST 2084 (PQ).
	MidTone float64
}

func GetTransferFunction

func GetTransferFunction(kind string) *TransferFunction

Jump to

Keyboard shortcuts

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