enc_dot_dictionary.h (813B)
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_DOT_DICTIONARY_H_ 7 #define LIB_JXL_ENC_DOT_DICTIONARY_H_ 8 9 // Dots are stored in a dictionary to avoid storing similar dots multiple 10 // times. 11 12 #include <stddef.h> 13 14 #include <vector> 15 16 #include "lib/jxl/base/status.h" 17 #include "lib/jxl/chroma_from_luma.h" 18 #include "lib/jxl/enc_params.h" 19 #include "lib/jxl/enc_patch_dictionary.h" 20 #include "lib/jxl/image.h" 21 22 namespace jxl { 23 24 StatusOr<std::vector<PatchInfo>> FindDotDictionary( 25 const CompressParams& cparams, const Image3F& opsin, const Rect& rect, 26 const ColorCorrelationMap& cmap, ThreadPool* pool); 27 28 } // namespace jxl 29 30 #endif // LIB_JXL_ENC_DOT_DICTIONARY_H_