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_SddProc.h" | 7 #include "JBig2_SddProc.h" |
8 | 8 |
9 #include "../../../include/fxcrt/fx_basic.h" | |
10 #include "JBig2_ArithIntDecoder.h" | 9 #include "JBig2_ArithIntDecoder.h" |
11 #include "JBig2_GrdProc.h" | 10 #include "JBig2_GrdProc.h" |
12 #include "JBig2_GrrdProc.h" | 11 #include "JBig2_GrrdProc.h" |
13 #include "JBig2_HuffmanDecoder.h" | 12 #include "JBig2_HuffmanDecoder.h" |
14 #include "JBig2_HuffmanTable.h" | 13 #include "JBig2_HuffmanTable.h" |
15 #include "JBig2_SymbolDict.h" | 14 #include "JBig2_SymbolDict.h" |
16 #include "JBig2_TrdProc.h" | 15 #include "JBig2_TrdProc.h" |
| 16 #include "core/include/fxcrt/fx_basic.h" |
17 #include "third_party/base/nonstd_unique_ptr.h" | 17 #include "third_party/base/nonstd_unique_ptr.h" |
18 #include "third_party/base/stl_util.h" | 18 #include "third_party/base/stl_util.h" |
19 | 19 |
20 using pdfium::vector_as_array; | 20 using pdfium::vector_as_array; |
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; |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 failed: | 622 failed: |
623 for (I = 0; I < NSYMSDECODED; I++) { | 623 for (I = 0; I < NSYMSDECODED; I++) { |
624 delete SDNEWSYMS[I]; | 624 delete SDNEWSYMS[I]; |
625 } | 625 } |
626 FX_Free(SDNEWSYMS); | 626 FX_Free(SDNEWSYMS); |
627 if (SDREFAGG == 0) { | 627 if (SDREFAGG == 0) { |
628 FX_Free(SDNEWSYMWIDTHS); | 628 FX_Free(SDNEWSYMWIDTHS); |
629 } | 629 } |
630 return nullptr; | 630 return nullptr; |
631 } | 631 } |
OLD | NEW |