tor-browser

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

enc_group.h (957B)


      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_GROUP_H_
      7 #define LIB_JXL_ENC_GROUP_H_
      8 
      9 #include <cstddef>
     10 
     11 #include "lib/jxl/base/rect.h"
     12 #include "lib/jxl/base/status.h"
     13 #include "lib/jxl/enc_bit_writer.h"
     14 #include "lib/jxl/image.h"
     15 
     16 namespace jxl {
     17 
     18 struct AuxOut;
     19 struct PassesEncoderState;
     20 
     21 // Fills DC
     22 Status ComputeCoefficients(size_t group_idx, PassesEncoderState* enc_state,
     23                           const Image3F& opsin, const Rect& rect, Image3F* dc);
     24 
     25 Status EncodeGroupTokenizedCoefficients(size_t group_idx, size_t pass_idx,
     26                                        size_t histogram_idx,
     27                                        const PassesEncoderState& enc_state,
     28                                        BitWriter* writer, AuxOut* aux_out);
     29 
     30 }  // namespace jxl
     31 
     32 #endif  // LIB_JXL_ENC_GROUP_H_