| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef _JBIG2_SEGMENT_H_ | 7 #ifndef CORE_SRC_FXCODEC_JBIG2_JBIG2_SEGMENT_H_ |
| 8 #define _JBIG2_SEGMENT_H_ | 8 #define CORE_SRC_FXCODEC_JBIG2_JBIG2_SEGMENT_H_ |
| 9 | 9 |
| 10 #include "core/src/fxcodec/jbig2/JBig2_Define.h" | 10 #include "core/src/fxcodec/jbig2/JBig2_Define.h" |
| 11 #include "core/src/fxcodec/jbig2/JBig2_HuffmanTable.h" | 11 #include "core/src/fxcodec/jbig2/JBig2_HuffmanTable.h" |
| 12 #include "core/src/fxcodec/jbig2/JBig2_PatternDict.h" | 12 #include "core/src/fxcodec/jbig2/JBig2_PatternDict.h" |
| 13 #include "core/src/fxcodec/jbig2/JBig2_SymbolDict.h" | 13 #include "core/src/fxcodec/jbig2/JBig2_SymbolDict.h" |
| 14 | 14 |
| 15 #define JBIG2_GET_INT32(buf) \ | 15 #define JBIG2_GET_INT32(buf) \ |
| 16 (((buf)[0] << 24) | ((buf)[1] << 16) | ((buf)[2] << 8) | (buf)[3]) | 16 (((buf)[0] << 24) | ((buf)[1] << 16) | ((buf)[2] << 8) | (buf)[3]) |
| 17 #define JBIG2_GET_INT16(buf) (((buf)[0] << 8) | (buf)[1]) | 17 #define JBIG2_GET_INT16(buf) (((buf)[0] << 8) | (buf)[1]) |
| 18 typedef enum { | 18 typedef enum { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 JBig2_SegmentState m_State; | 55 JBig2_SegmentState m_State; |
| 56 JBig2_ResultType m_nResultType; | 56 JBig2_ResultType m_nResultType; |
| 57 union { | 57 union { |
| 58 CJBig2_SymbolDict* sd; | 58 CJBig2_SymbolDict* sd; |
| 59 CJBig2_PatternDict* pd; | 59 CJBig2_PatternDict* pd; |
| 60 CJBig2_Image* im; | 60 CJBig2_Image* im; |
| 61 CJBig2_HuffmanTable* ht; | 61 CJBig2_HuffmanTable* ht; |
| 62 void* vd; | 62 void* vd; |
| 63 } m_Result; | 63 } m_Result; |
| 64 }; | 64 }; |
| 65 #endif | 65 |
| 66 #endif // CORE_SRC_FXCODEC_JBIG2_JBIG2_SEGMENT_H_ |
| OLD | NEW |