| 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/src/fxcodec/jbig2/JBig2_TrdProc.h" | 7 #include "core/fxcodec/jbig2/JBig2_TrdProc.h" |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "core/src/fxcodec/jbig2/JBig2_ArithDecoder.h" | 11 #include "core/fxcodec/jbig2/JBig2_ArithDecoder.h" |
| 12 #include "core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h" | 12 #include "core/fxcodec/jbig2/JBig2_ArithIntDecoder.h" |
| 13 #include "core/src/fxcodec/jbig2/JBig2_GrrdProc.h" | 13 #include "core/fxcodec/jbig2/JBig2_GrrdProc.h" |
| 14 #include "core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.h" | 14 #include "core/fxcodec/jbig2/JBig2_HuffmanDecoder.h" |
| 15 | 15 |
| 16 CJBig2_Image* CJBig2_TRDProc::decode_Huffman(CJBig2_BitStream* pStream, | 16 CJBig2_Image* CJBig2_TRDProc::decode_Huffman(CJBig2_BitStream* pStream, |
| 17 JBig2ArithCtx* grContext) { | 17 JBig2ArithCtx* grContext) { |
| 18 int32_t STRIPT, FIRSTS; | 18 int32_t STRIPT, FIRSTS; |
| 19 FX_DWORD NINSTANCES; | 19 FX_DWORD NINSTANCES; |
| 20 int32_t DT, DFS, CURS; | 20 int32_t DT, DFS, CURS; |
| 21 int32_t SI, TI; | 21 int32_t SI, TI; |
| 22 CJBig2_Image* IBI; | 22 CJBig2_Image* IBI; |
| 23 FX_DWORD WI, HI; | 23 FX_DWORD WI, HI; |
| 24 int32_t IDS; | 24 int32_t IDS; |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 CURS += WI - 1; | 398 CURS += WI - 1; |
| 399 } else if (TRANSPOSED == 1 && ((REFCORNER == JBIG2_CORNER_TOPLEFT) || | 399 } else if (TRANSPOSED == 1 && ((REFCORNER == JBIG2_CORNER_TOPLEFT) || |
| 400 (REFCORNER == JBIG2_CORNER_TOPRIGHT))) { | 400 (REFCORNER == JBIG2_CORNER_TOPRIGHT))) { |
| 401 CURS += HI - 1; | 401 CURS += HI - 1; |
| 402 } | 402 } |
| 403 ++NINSTANCES; | 403 ++NINSTANCES; |
| 404 } | 404 } |
| 405 } | 405 } |
| 406 return SBREG.release(); | 406 return SBREG.release(); |
| 407 } | 407 } |
| OLD | NEW |