| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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 "../../../include/fpdfapi/fpdf_parser.h" | 7 #include "../../../include/fpdfapi/fpdf_parser.h" |
| 8 #include "../../../include/fxcrt/fx_string.h" | 8 #include "../../../include/fxcrt/fx_string.h" |
| 9 | 9 |
| 10 // static | 10 // static |
| (...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 pFS->WriteBlock(pBuf, dwRead); | 1007 pFS->WriteBlock(pBuf, dwRead); |
| 1008 } | 1008 } |
| 1009 } while (dwRead == 4096); | 1009 } while (dwRead == 4096); |
| 1010 pFS->Flush(); | 1010 pFS->Flush(); |
| 1011 FX_Free(pBuf); | 1011 FX_Free(pBuf); |
| 1012 delete pSF; | 1012 delete pSF; |
| 1013 } | 1013 } |
| 1014 pObj->InitStream((IFX_FileRead*)pFS, pCloneDict); | 1014 pObj->InitStream((IFX_FileRead*)pFS, pCloneDict); |
| 1015 return pObj; | 1015 return pObj; |
| 1016 } | 1016 } |
| 1017 extern FX_BOOL PDF_DataDecode(const uint8_t* src_buf, | |
| 1018 FX_DWORD src_size, | |
| 1019 const CPDF_Dictionary* pDict, | |
| 1020 uint8_t*& dest_buf, | |
| 1021 FX_DWORD& dest_size, | |
| 1022 CFX_ByteString& ImageEncoding, | |
| 1023 CPDF_Dictionary*& pImageParms, | |
| 1024 FX_DWORD estimated_size, | |
| 1025 FX_BOOL bImageAcc); | |
| 1026 CPDF_StreamAcc::CPDF_StreamAcc() { | 1017 CPDF_StreamAcc::CPDF_StreamAcc() { |
| 1027 m_bNewBuf = FALSE; | 1018 m_bNewBuf = FALSE; |
| 1028 m_pData = NULL; | 1019 m_pData = NULL; |
| 1029 m_dwSize = 0; | 1020 m_dwSize = 0; |
| 1030 m_pImageParam = NULL; | 1021 m_pImageParam = NULL; |
| 1031 m_pStream = NULL; | 1022 m_pStream = NULL; |
| 1032 m_pSrcData = NULL; | 1023 m_pSrcData = NULL; |
| 1033 } | 1024 } |
| 1034 void CPDF_StreamAcc::LoadAllData(const CPDF_Stream* pStream, | 1025 void CPDF_StreamAcc::LoadAllData(const CPDF_Stream* pStream, |
| 1035 FX_BOOL bRawAccess, | 1026 FX_BOOL bRawAccess, |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1237 } | 1228 } |
| 1238 pObj->m_ObjNum = objnum; | 1229 pObj->m_ObjNum = objnum; |
| 1239 m_IndirectObjs.SetAt((void*)(uintptr_t)objnum, pObj); | 1230 m_IndirectObjs.SetAt((void*)(uintptr_t)objnum, pObj); |
| 1240 if (m_LastObjNum < objnum) { | 1231 if (m_LastObjNum < objnum) { |
| 1241 m_LastObjNum = objnum; | 1232 m_LastObjNum = objnum; |
| 1242 } | 1233 } |
| 1243 } | 1234 } |
| 1244 FX_DWORD CPDF_IndirectObjects::GetLastObjNum() const { | 1235 FX_DWORD CPDF_IndirectObjects::GetLastObjNum() const { |
| 1245 return m_LastObjNum; | 1236 return m_LastObjNum; |
| 1246 } | 1237 } |
| OLD | NEW |