libjxl

FORK: libjxl patches used on blog
git clone https://git.neptards.moe/blog/libjxl.git
Log | Files | Refs | Submodules | README | LICENSE

patch_dictionary_internal.h (859B)


      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_PATCH_DICTIONARY_INTERNAL_H_
      7 #define LIB_JXL_PATCH_DICTIONARY_INTERNAL_H_
      8 
      9 #include "lib/jxl/dec_patch_dictionary.h"
     10 #include "lib/jxl/passes_state.h"  // for PassesSharedState
     11 
     12 namespace jxl {
     13 
     14 // Context numbers as specified in Section C.4.5, Listing C.2:
     15 enum Contexts {
     16   kNumRefPatchContext = 0,
     17   kReferenceFrameContext = 1,
     18   kPatchSizeContext = 2,
     19   kPatchReferencePositionContext = 3,
     20   kPatchPositionContext = 4,
     21   kPatchBlendModeContext = 5,
     22   kPatchOffsetContext = 6,
     23   kPatchCountContext = 7,
     24   kPatchAlphaChannelContext = 8,
     25   kPatchClampContext = 9,
     26   kNumPatchDictionaryContexts
     27 };
     28 
     29 }  // namespace jxl
     30 
     31 #endif  // LIB_JXL_PATCH_DICTIONARY_INTERNAL_H_