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 "JBig2_GrdProc.h" | 7 #include "JBig2_GrdProc.h" |
8 | 8 |
9 #include "../../../include/fxcodec/fx_codec.h" | |
10 #include "JBig2_ArithDecoder.h" | 9 #include "JBig2_ArithDecoder.h" |
11 #include "JBig2_BitStream.h" | 10 #include "JBig2_BitStream.h" |
12 #include "JBig2_Image.h" | 11 #include "JBig2_Image.h" |
| 12 #include "core/include/fxcodec/fx_codec.h" |
13 #include "third_party/base/nonstd_unique_ptr.h" | 13 #include "third_party/base/nonstd_unique_ptr.h" |
14 | 14 |
15 CJBig2_GRDProc::CJBig2_GRDProc() | 15 CJBig2_GRDProc::CJBig2_GRDProc() |
16 : m_loopIndex(0), | 16 : m_loopIndex(0), |
17 m_pLine(nullptr), | 17 m_pLine(nullptr), |
18 m_pPause(nullptr), | 18 m_pPause(nullptr), |
19 m_DecodeType(0), | 19 m_DecodeType(0), |
20 LTP(0) { | 20 LTP(0) { |
21 m_ReplaceRect.left = 0; | 21 m_ReplaceRect.left = 0; |
22 m_ReplaceRect.bottom = 0; | 22 m_ReplaceRect.bottom = 0; |
(...skipping 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1249 } | 1249 } |
1250 if (pPause && pPause->NeedToPauseNow()) { | 1250 if (pPause && pPause->NeedToPauseNow()) { |
1251 m_loopIndex++; | 1251 m_loopIndex++; |
1252 m_ProssiveStatus = FXCODEC_STATUS_DECODE_TOBECONTINUE; | 1252 m_ProssiveStatus = FXCODEC_STATUS_DECODE_TOBECONTINUE; |
1253 return FXCODEC_STATUS_DECODE_TOBECONTINUE; | 1253 return FXCODEC_STATUS_DECODE_TOBECONTINUE; |
1254 } | 1254 } |
1255 } | 1255 } |
1256 m_ProssiveStatus = FXCODEC_STATUS_DECODE_FINISH; | 1256 m_ProssiveStatus = FXCODEC_STATUS_DECODE_FINISH; |
1257 return FXCODEC_STATUS_DECODE_FINISH; | 1257 return FXCODEC_STATUS_DECODE_FINISH; |
1258 } | 1258 } |
OLD | NEW |