1 // Copyright 2014 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef CORE_FXCODEC_JBIG2_JBIG2_DEFINE_H_ 8 #define CORE_FXCODEC_JBIG2_JBIG2_DEFINE_H_ 9 10 #include <stdint.h> 11 12 struct JBig2RegionInfo { 13 int32_t width; 14 int32_t height; 15 int32_t x; 16 int32_t y; 17 uint8_t flags; 18 }; 19 20 struct JBig2HuffmanCode { 21 int32_t codelen; 22 int32_t code; 23 }; 24 25 constexpr int32_t kJBig2OOB = 1; 26 27 constexpr int32_t kJBig2MaxReferredSegmentCount = 64; 28 constexpr uint32_t kJBig2MaxExportSymbols = 65535; 29 constexpr uint32_t kJBig2MaxNewSymbols = 65535; 30 constexpr uint32_t kJBig2MaxPatternIndex = 65535; 31 constexpr int32_t kJBig2MaxImageSize = 65535; 32 33 #endif // CORE_FXCODEC_JBIG2_JBIG2_DEFINE_H_ 34