enc_photon_noise.h (678B)
1 // Copyright (c) the JPEG XL Project Authors. All rights reserved. 2 // 3 // Use of this source code is governed by a BSD-style 4 // license that can be found in the LICENSE file. 5 6 #ifndef LIB_JXL_ENC_PHOTON_NOISE_H_ 7 #define LIB_JXL_ENC_PHOTON_NOISE_H_ 8 9 #include "lib/jxl/dec_xyb.h" 10 #include "lib/jxl/image.h" 11 #include "lib/jxl/noise.h" 12 13 namespace jxl { 14 15 // Constructs a NoiseParams representing the noise that would be seen at the 16 // selected nominal exposure on a last-decade (as of 2021) color camera with a 17 // 36×24mm sensor (“35mm format”). 18 NoiseParams SimulatePhotonNoise(size_t xsize, size_t ysize, float iso); 19 20 } // namespace jxl 21 22 #endif // LIB_JXL_ENC_PHOTON_NOISE_H_