Add noise width/height to libaom
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
DataHoarder 2023-11-05 18:16:55 +01:00
parent 883dad8b84
commit 6fbd6290ce
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -72,7 +72,9 @@ func NewEncoder(w io.Writer, properties frame.StreamProperties, settings map[str
if photonNoiseIso > 0 && photonNoiseTransferFunction != nil {
//create table
table, err := filmgrain.CreatePhotonNoiseTable(properties.Width, properties.Height, float64(photonNoiseIso), photonNoiseTransferFunction)
noiseWidth := getSettingUnsigned[uint](clonedSettings, "photon-noise-width", uint(properties.Width))
noiseHeight := getSettingUnsigned[uint](clonedSettings, "photon-noise-height", uint(properties.Height))
table, err := filmgrain.CreatePhotonNoiseTable(int(noiseWidth), int(noiseHeight), float64(photonNoiseIso), photonNoiseTransferFunction)
if err != nil {
return nil, err
}