| 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_SddProc.h" | 7 #include "core/fxcodec/jbig2/JBig2_SddProc.h" |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "core/fxcodec/jbig2/JBig2_ArithIntDecoder.h" | 12 #include "core/fxcodec/jbig2/JBig2_ArithIntDecoder.h" |
| 13 #include "core/fxcodec/jbig2/JBig2_GrdProc.h" | 13 #include "core/fxcodec/jbig2/JBig2_GrdProc.h" |
| 14 #include "core/fxcodec/jbig2/JBig2_GrrdProc.h" | 14 #include "core/fxcodec/jbig2/JBig2_GrrdProc.h" |
| 15 #include "core/fxcodec/jbig2/JBig2_HuffmanDecoder.h" | 15 #include "core/fxcodec/jbig2/JBig2_HuffmanDecoder.h" |
| 16 #include "core/fxcodec/jbig2/JBig2_HuffmanTable.h" | 16 #include "core/fxcodec/jbig2/JBig2_HuffmanTable.h" |
| 17 #include "core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h" | 17 #include "core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h" |
| 18 #include "core/fxcodec/jbig2/JBig2_SymbolDict.h" | 18 #include "core/fxcodec/jbig2/JBig2_SymbolDict.h" |
| 19 #include "core/fxcodec/jbig2/JBig2_TrdProc.h" | 19 #include "core/fxcodec/jbig2/JBig2_TrdProc.h" |
| 20 #include "core/fxcrt/include/fx_basic.h" | 20 #include "core/fxcrt/fx_basic.h" |
| 21 | 21 |
| 22 CJBig2_SymbolDict* CJBig2_SDDProc::decode_Arith( | 22 CJBig2_SymbolDict* CJBig2_SDDProc::decode_Arith( |
| 23 CJBig2_ArithDecoder* pArithDecoder, | 23 CJBig2_ArithDecoder* pArithDecoder, |
| 24 std::vector<JBig2ArithCtx>* gbContext, | 24 std::vector<JBig2ArithCtx>* gbContext, |
| 25 std::vector<JBig2ArithCtx>* grContext) { | 25 std::vector<JBig2ArithCtx>* grContext) { |
| 26 CJBig2_Image** SDNEWSYMS; | 26 CJBig2_Image** SDNEWSYMS; |
| 27 uint32_t HCHEIGHT, NSYMSDECODED; | 27 uint32_t HCHEIGHT, NSYMSDECODED; |
| 28 int32_t HCDH; | 28 int32_t HCDH; |
| 29 uint32_t SYMWIDTH, TOTWIDTH; | 29 uint32_t SYMWIDTH, TOTWIDTH; |
| 30 int32_t DW; | 30 int32_t DW; |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 failed: | 594 failed: |
| 595 for (I = 0; I < NSYMSDECODED; I++) { | 595 for (I = 0; I < NSYMSDECODED; I++) { |
| 596 delete SDNEWSYMS[I]; | 596 delete SDNEWSYMS[I]; |
| 597 } | 597 } |
| 598 FX_Free(SDNEWSYMS); | 598 FX_Free(SDNEWSYMS); |
| 599 if (SDREFAGG == 0) { | 599 if (SDREFAGG == 0) { |
| 600 FX_Free(SDNEWSYMWIDTHS); | 600 FX_Free(SDNEWSYMWIDTHS); |
| 601 } | 601 } |
| 602 return nullptr; | 602 return nullptr; |
| 603 } | 603 } |
| OLD | NEW |