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 CORE_FXCODEC_JBIG2_JBIG2_SEGMENT_H_ | 7 #ifndef CORE_FXCODEC_JBIG2_JBIG2_SEGMENT_H_ |
8 #define CORE_FXCODEC_JBIG2_JBIG2_SEGMENT_H_ | 8 #define CORE_FXCODEC_JBIG2_JBIG2_SEGMENT_H_ |
9 | 9 |
10 #include "core/fxcodec/jbig2/JBig2_Define.h" | 10 #include "core/fxcodec/jbig2/JBig2_Define.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 JBIG2_SYMBOL_DICT_POINTER, | 28 JBIG2_SYMBOL_DICT_POINTER, |
29 JBIG2_PATTERN_DICT_POINTER, | 29 JBIG2_PATTERN_DICT_POINTER, |
30 JBIG2_HUFFMAN_TABLE_POINTER | 30 JBIG2_HUFFMAN_TABLE_POINTER |
31 } JBig2_ResultType; | 31 } JBig2_ResultType; |
32 class CJBig2_Segment { | 32 class CJBig2_Segment { |
33 public: | 33 public: |
34 CJBig2_Segment(); | 34 CJBig2_Segment(); |
35 | 35 |
36 ~CJBig2_Segment(); | 36 ~CJBig2_Segment(); |
37 | 37 |
38 FX_DWORD m_dwNumber; | 38 uint32_t m_dwNumber; |
39 union { | 39 union { |
40 struct { | 40 struct { |
41 uint8_t type : 6; | 41 uint8_t type : 6; |
42 uint8_t page_association_size : 1; | 42 uint8_t page_association_size : 1; |
43 uint8_t deferred_non_retain : 1; | 43 uint8_t deferred_non_retain : 1; |
44 } s; | 44 } s; |
45 uint8_t c; | 45 uint8_t c; |
46 } m_cFlags; | 46 } m_cFlags; |
47 int32_t m_nReferred_to_segment_count; | 47 int32_t m_nReferred_to_segment_count; |
48 FX_DWORD* m_pReferred_to_segment_numbers; | 48 uint32_t* m_pReferred_to_segment_numbers; |
49 FX_DWORD m_dwPage_association; | 49 uint32_t m_dwPage_association; |
50 FX_DWORD m_dwData_length; | 50 uint32_t m_dwData_length; |
51 | 51 |
52 FX_DWORD m_dwHeader_Length; | 52 uint32_t m_dwHeader_Length; |
53 FX_DWORD m_dwObjNum; | 53 uint32_t m_dwObjNum; |
54 FX_DWORD m_dwDataOffset; | 54 uint32_t m_dwDataOffset; |
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 | 65 |
66 #endif // CORE_FXCODEC_JBIG2_JBIG2_SEGMENT_H_ | 66 #endif // CORE_FXCODEC_JBIG2_JBIG2_SEGMENT_H_ |
OLD | NEW |