| 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 _JBIG2_SEGMENT_H_ |
| 8 #define _JBIG2_SEGMENT_H_ | 8 #define _JBIG2_SEGMENT_H_ |
| 9 #include "JBig2_Define.h" | 9 #include "JBig2_Define.h" |
| 10 #include "JBig2_SymbolDict.h" | 10 #include "JBig2_SymbolDict.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 JBIG2_SYMBOL_DICT_POINTER, | 27 JBIG2_SYMBOL_DICT_POINTER, |
| 28 JBIG2_PATTERN_DICT_POINTER, | 28 JBIG2_PATTERN_DICT_POINTER, |
| 29 JBIG2_HUFFMAN_TABLE_POINTER | 29 JBIG2_HUFFMAN_TABLE_POINTER |
| 30 } JBig2_ResultType; | 30 } JBig2_ResultType; |
| 31 class CJBig2_Segment : public CJBig2_Object { | 31 class CJBig2_Segment : public CJBig2_Object { |
| 32 public: | 32 public: |
| 33 CJBig2_Segment(); | 33 CJBig2_Segment(); |
| 34 | 34 |
| 35 ~CJBig2_Segment(); | 35 ~CJBig2_Segment(); |
| 36 | 36 |
| 37 void init(); | |
| 38 | |
| 39 void clean(); | 37 void clean(); |
| 40 | 38 |
| 41 public: | 39 public: |
| 42 FX_DWORD m_dwNumber; | 40 FX_DWORD m_dwNumber; |
| 43 union { | 41 union { |
| 44 struct { | 42 struct { |
| 45 uint8_t type : 6; | 43 uint8_t type : 6; |
| 46 uint8_t page_association_size : 1; | 44 uint8_t page_association_size : 1; |
| 47 uint8_t deferred_non_retain : 1; | 45 uint8_t deferred_non_retain : 1; |
| 48 } s; | 46 } s; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 59 JBig2_ResultType m_nResultType; | 57 JBig2_ResultType m_nResultType; |
| 60 union { | 58 union { |
| 61 CJBig2_SymbolDict* sd; | 59 CJBig2_SymbolDict* sd; |
| 62 CJBig2_PatternDict* pd; | 60 CJBig2_PatternDict* pd; |
| 63 CJBig2_Image* im; | 61 CJBig2_Image* im; |
| 64 CJBig2_HuffmanTable* ht; | 62 CJBig2_HuffmanTable* ht; |
| 65 void* vd; | 63 void* vd; |
| 66 } m_Result; | 64 } m_Result; |
| 67 }; | 65 }; |
| 68 #endif | 66 #endif |
| OLD | NEW |