dec_noise.h (937B)
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_DEC_NOISE_H_ 7 #define LIB_JXL_DEC_NOISE_H_ 8 9 // Noise synthesis. Currently disabled. 10 11 #include <stddef.h> 12 #include <stdint.h> 13 14 #include "lib/jxl/base/status.h" 15 #include "lib/jxl/chroma_from_luma.h" 16 #include "lib/jxl/dec_bit_reader.h" 17 #include "lib/jxl/image.h" 18 #include "lib/jxl/noise.h" 19 20 namespace jxl { 21 22 void Random3Planes(size_t visible_frame_index, size_t nonvisible_frame_index, 23 size_t x0, size_t y0, const std::pair<ImageF*, Rect>& plane0, 24 const std::pair<ImageF*, Rect>& plane1, 25 const std::pair<ImageF*, Rect>& plane2); 26 27 // Must only call if FrameHeader.flags.kNoise. 28 Status DecodeNoise(BitReader* br, NoiseParams* noise_params); 29 30 } // namespace jxl 31 32 #endif // LIB_JXL_DEC_NOISE_H_