| OLD | NEW |
| 1 // Copyright 2015 PDFium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "core/fxcodec/jbig2/JBig2_GrdProc.h" | 7 #include "core/fxcodec/jbig2/JBig2_GrdProc.h" |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "core/fxcodec/include/fx_codec.h" | 11 #include "core/fxcodec/fx_codec.h" |
| 12 #include "core/fxcodec/jbig2/JBig2_ArithDecoder.h" | 12 #include "core/fxcodec/jbig2/JBig2_ArithDecoder.h" |
| 13 #include "core/fxcodec/jbig2/JBig2_BitStream.h" | 13 #include "core/fxcodec/jbig2/JBig2_BitStream.h" |
| 14 #include "core/fxcodec/jbig2/JBig2_Image.h" | 14 #include "core/fxcodec/jbig2/JBig2_Image.h" |
| 15 | 15 |
| 16 CJBig2_GRDProc::CJBig2_GRDProc() | 16 CJBig2_GRDProc::CJBig2_GRDProc() |
| 17 : m_loopIndex(0), | 17 : m_loopIndex(0), |
| 18 m_pLine(nullptr), | 18 m_pLine(nullptr), |
| 19 m_pPause(nullptr), | 19 m_pPause(nullptr), |
| 20 m_DecodeType(0), | 20 m_DecodeType(0), |
| 21 m_LTP(FALSE) { | 21 m_LTP(FALSE) { |
| (...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1155 } | 1155 } |
| 1156 if (pPause && pPause->NeedToPauseNow()) { | 1156 if (pPause && pPause->NeedToPauseNow()) { |
| 1157 m_loopIndex++; | 1157 m_loopIndex++; |
| 1158 m_ProssiveStatus = FXCODEC_STATUS_DECODE_TOBECONTINUE; | 1158 m_ProssiveStatus = FXCODEC_STATUS_DECODE_TOBECONTINUE; |
| 1159 return FXCODEC_STATUS_DECODE_TOBECONTINUE; | 1159 return FXCODEC_STATUS_DECODE_TOBECONTINUE; |
| 1160 } | 1160 } |
| 1161 } | 1161 } |
| 1162 m_ProssiveStatus = FXCODEC_STATUS_DECODE_FINISH; | 1162 m_ProssiveStatus = FXCODEC_STATUS_DECODE_FINISH; |
| 1163 return FXCODEC_STATUS_DECODE_FINISH; | 1163 return FXCODEC_STATUS_DECODE_FINISH; |
| 1164 } | 1164 } |
| OLD | NEW |