Add noise width/height to libaom
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
883dad8b84
commit
6fbd6290ce
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue