enc_toc.h (848B)
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_TOC_H_ 7 #define LIB_JXL_ENC_TOC_H_ 8 9 #include <stddef.h> 10 #include <stdint.h> 11 12 #include <vector> 13 14 #include "lib/jxl/base/compiler_specific.h" 15 #include "lib/jxl/base/status.h" 16 #include "lib/jxl/coeff_order_fwd.h" 17 #include "lib/jxl/enc_bit_writer.h" 18 19 namespace jxl { 20 21 struct AuxOut; 22 23 // Writes the group offsets. If the permutation vector is empty, the identity 24 // permutation will be used. 25 Status WriteGroupOffsets(const std::vector<BitWriter>& group_codes, 26 const std::vector<coeff_order_t>& permutation, 27 BitWriter* JXL_RESTRICT writer, AuxOut* aux_out); 28 29 } // namespace jxl 30 31 #endif // LIB_JXL_ENC_TOC_H_