tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

dec_noise.h (908B)


      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 <cstddef>
     12 
     13 #include "lib/jxl/base/status.h"
     14 #include "lib/jxl/dec_bit_reader.h"
     15 #include "lib/jxl/dec_cache.h"
     16 #include "lib/jxl/frame_dimensions.h"
     17 #include "lib/jxl/frame_header.h"
     18 #include "lib/jxl/noise.h"
     19 
     20 namespace jxl {
     21 
     22 void PrepareNoiseInput(const PassesDecoderState& dec_state,
     23                       const FrameDimensions& frame_dim,
     24                       const FrameHeader& frame_header, size_t group_index,
     25                       size_t thread);
     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_