| // Copyright 2014 PDFium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
| // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
|
| #include "JBig2_Segment.h"
|
| CJBig2_Segment::CJBig2_Segment()
|
| CJBig2_Segment::~CJBig2_Segment()
|
| void CJBig2_Segment::init()
|
| m_nReferred_to_segment_count = 0;
|
| m_pReferred_to_segment_numbers = NULL;
|
| m_dwPage_association = 0;
|
| m_State = JBIG2_SEGMENT_HEADER_UNPARSED;
|
| m_nResultType = JBIG2_VOID_POINTER;
|
| void CJBig2_Segment::clean()
|
| if(m_pReferred_to_segment_numbers) {
|
| m_pModule->JBig2_Free(m_pReferred_to_segment_numbers);
|
| case JBIG2_IMAGE_POINTER:
|
| case JBIG2_SYMBOL_DICT_POINTER:
|
| case JBIG2_PATTERN_DICT_POINTER:
|
| case JBIG2_HUFFMAN_TABLE_POINTER:
|
| m_pModule->JBig2_Free(m_Result.vd);
|