tor-browser

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

enc_splines.h (780B)


      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_SPLINES_H_
      7 #define LIB_JXL_ENC_SPLINES_H_
      8 
      9 #include <cstdint>
     10 
     11 #include "lib/jxl/base/status.h"
     12 #include "lib/jxl/enc_ans_params.h"
     13 #include "lib/jxl/enc_bit_writer.h"
     14 #include "lib/jxl/image.h"
     15 #include "lib/jxl/splines.h"
     16 
     17 namespace jxl {
     18 
     19 struct AuxOut;
     20 enum class LayerType : uint8_t;
     21 
     22 // Only call if splines.HasAny().
     23 Status EncodeSplines(const Splines& splines, BitWriter* writer, LayerType layer,
     24                     const HistogramParams& histogram_params, AuxOut* aux_out);
     25 
     26 Splines FindSplines(const Image3F& opsin);
     27 
     28 }  // namespace jxl
     29 
     30 #endif  // LIB_JXL_ENC_SPLINES_H_