| 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_MODULAR_ENCODING_MA_COMMON_H_ |
| 7 |
#define LIB_JXL_MODULAR_ENCODING_MA_COMMON_H_ |
| 8 |
|
| 9 |
#include <stddef.h> |
| 10 |
|
| 11 |
namespace jxl { |
| 12 |
|
| 13 |
enum MATreeContext : size_t { |
| 14 |
kSplitValContext = 0, |
| 15 |
kPropertyContext = 1, |
| 16 |
kPredictorContext = 2, |
| 17 |
kOffsetContext = 3, |
| 18 |
kMultiplierLogContext = 4, |
| 19 |
kMultiplierBitsContext = 5, |
| 20 |
|
| 21 |
kNumTreeContexts = 6, |
| 22 |
}; |
| 23 |
|
| 24 |
static constexpr size_t kMaxTreeSize = 1 << 22; |
| 25 |
|
| 26 |
} // namespace jxl |
| 27 |
|
| 28 |
#endif // LIB_JXL_MODULAR_ENCODING_MA_COMMON_H_ |