/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_indirect_object_holder.cpp | 25 uint32_t objnum) const { in GetIndirectObject() 26 auto it = m_IndirectObjs.find(objnum); in GetIndirectObject() 31 uint32_t objnum) { in GetOrParseIndirectObject() argument 32 if (objnum == 0) in GetOrParseIndirectObject() 35 CPDF_Object* pObj = GetIndirectObject(objnum); in GetOrParseIndirectObject() 39 std::unique_ptr<CPDF_Object> pNewObj = ParseIndirectObject(objnum); in GetOrParseIndirectObject() 43 pNewObj->m_ObjNum = objnum; in GetOrParseIndirectObject() 44 m_LastObjNum = std::max(m_LastObjNum, objnum); in GetOrParseIndirectObject() 45 m_IndirectObjs[objnum] = std::move(pNewObj); in GetOrParseIndirectObject() 46 return m_IndirectObjs[objnum].get(); in GetOrParseIndirectObject() [all …]
|
D | cpdf_parser.cpp | 73 bool CPDF_Parser::IsValidObjectNumber(uint32_t objnum) const { in IsValidObjectNumber() 74 return !m_ObjectInfo.empty() && objnum <= m_ObjectInfo.rbegin()->first; in IsValidObjectNumber() 77 FX_FILESIZE CPDF_Parser::GetObjectPositionOrZero(uint32_t objnum) const { in GetObjectPositionOrZero() 78 auto it = m_ObjectInfo.find(objnum); in GetObjectPositionOrZero() 82 uint8_t CPDF_Parser::GetObjectType(uint32_t objnum) const { in GetObjectType() 83 ASSERT(IsValidObjectNumber(objnum)); in GetObjectType() 84 auto it = m_ObjectInfo.find(objnum); in GetObjectType() 88 uint16_t CPDF_Parser::GetObjectGenNum(uint32_t objnum) const { in GetObjectGenNum() 89 ASSERT(IsValidObjectNumber(objnum)); in GetObjectGenNum() 90 auto it = m_ObjectInfo.find(objnum); in GetObjectGenNum() [all …]
|
D | cpdf_parser.h | 65 uint32_t objnum); 68 bool IsValidObjectNumber(uint32_t objnum) const; 69 FX_FILESIZE GetObjectPositionOrZero(uint32_t objnum) const; 70 uint8_t GetObjectType(uint32_t objnum) const; 71 uint16_t GetObjectGenNum(uint32_t objnum) const; 73 bool IsObjectFreeOrNull(uint32_t objnum) const; 77 FX_FILESIZE GetObjectOffset(uint32_t objnum) const; 78 FX_FILESIZE GetObjectSize(uint32_t objnum) const; 80 void GetIndirectBinary(uint32_t objnum, uint8_t*& pBuffer, uint32_t& size); 87 uint32_t objnum); [all …]
|
D | cpdf_crypto_handler.h | 25 void* DecryptStart(uint32_t objnum, uint32_t gennum); 26 void Decrypt(uint32_t objnum, uint32_t gennum, CFX_ByteString& str); 32 uint32_t EncryptGetSize(uint32_t objnum, 36 bool EncryptContent(uint32_t objnum, 47 uint32_t objnum, 53 void* CryptStart(uint32_t objnum, uint32_t gennum, bool bEncrypt); 67 void PopulateKey(uint32_t objnum, uint32_t gennum, uint8_t* key);
|
D | cpdf_indirect_object_holder.h | 30 CPDF_Object* GetIndirectObject(uint32_t objnum) const; 31 CPDF_Object* GetOrParseIndirectObject(uint32_t objnum); 32 void DeleteIndirectObject(uint32_t objnum); 55 uint32_t objnum, 59 void SetLastObjNum(uint32_t objnum) { m_LastObjNum = objnum; } in SetLastObjNum() argument 69 virtual std::unique_ptr<CPDF_Object> ParseIndirectObject(uint32_t objnum);
|
D | cpdf_crypto_handler.cpp | 17 uint32_t objnum, in CryptBlock() argument 31 PopulateKey(objnum, gennum, key1); in CryptBlock() 84 void* CPDF_CryptoHandler::CryptStart(uint32_t objnum, in CryptStart() argument 104 PopulateKey(objnum, gennum, key1); in CryptStart() 231 void CPDF_CryptoHandler::Decrypt(uint32_t objnum, in Decrypt() argument 235 void* context = DecryptStart(objnum, gennum); in Decrypt() 241 void* CPDF_CryptoHandler::DecryptStart(uint32_t objnum, uint32_t gennum) { in DecryptStart() argument 242 return CryptStart(objnum, gennum, false); in DecryptStart() 306 uint32_t CPDF_CryptoHandler::EncryptGetSize(uint32_t objnum, in EncryptGetSize() argument 315 bool CPDF_CryptoHandler::EncryptContent(uint32_t objnum, in EncryptContent() argument [all …]
|
D | cpdf_syntax_parser.cpp | 370 uint32_t objnum, in GetObject() argument 389 uint32_t objnum = FXSYS_atoui(word.c_str()); in GetObject() local 390 if (objnum == CPDF_Object::kInvalidObjNum) in GetObject() 392 return pdfium::MakeUnique<CPDF_Reference>(pObjList, objnum); in GetObject() 408 m_pCryptoHandler->Decrypt(objnum, gennum, str); in GetObject() 414 m_pCryptoHandler->Decrypt(objnum, gennum, str); in GetObject() 420 GetObject(pObjList, objnum, gennum, true)) { in GetObject() 460 GetObject(pObjList, objnum, gennum, true); in GetObject() 473 pDict->SetFor("Contents", GetObject(pObjList, objnum, gennum, false)); in GetObject() 482 return ReadStream(std::move(pDict), objnum, gennum); in GetObject() [all …]
|
D | cpdf_reference.cpp | 13 CPDF_Reference::CPDF_Reference(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum) in CPDF_Reference() argument 14 : m_pObjList(pDoc), m_RefObjNum(objnum) {} in CPDF_Reference() 76 void CPDF_Reference::SetRef(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum) { in SetRef() argument 78 m_RefObjNum = objnum; in SetRef()
|
D | cfdf_document.cpp | 53 uint32_t objnum = FXSYS_atoui(word.c_str()); in ParseStream() local 54 if (!objnum) in ParseStream() 66 parser.GetObject(this, objnum, 0, true); in ParseStream() 70 ReplaceIndirectObjectIfHigherGeneration(objnum, std::move(pObj)); in ParseStream()
|
D | cpdf_data_avail.cpp | 94 uint32_t CPDF_DataAvail::GetObjectSize(uint32_t objnum, FX_FILESIZE& offset) { in GetObjectSize() argument 96 if (!pParser || !pParser->IsValidObjectNumber(objnum)) in GetObjectSize() 99 if (pParser->GetObjectType(objnum) == 2) in GetObjectSize() 100 objnum = pParser->GetObjectPositionOrZero(objnum); in GetObjectSize() 102 if (pParser->GetObjectType(objnum) != 1 && in GetObjectSize() 103 pParser->GetObjectType(objnum) != 255) { in GetObjectSize() 107 offset = pParser->GetObjectPositionOrZero(objnum); in GetObjectSize() 338 std::unique_ptr<CPDF_Object> CPDF_DataAvail::GetObject(uint32_t objnum, in GetObject() argument 349 size = GetObjectSize(objnum, offset); in GetObject() 352 size = (uint32_t)m_parser.GetObjectSize(objnum); in GetObject() [all …]
|
D | cpdf_syntax_parser.h | 36 uint32_t objnum, 42 uint32_t objnum, 82 uint32_t objnum,
|
D | cpdf_document.cpp | 362 uint32_t objnum) { in ParseIndirectObject() argument 363 return m_pParser ? m_pParser->ParseIndirectObject(this, objnum) : nullptr; in ParseIndirectObject() 489 uint32_t objnum = m_PageList[iPage]; in GetPage() local 490 if (objnum) in GetPage() 491 return ToDictionary(GetOrParseIndirectObject(objnum)); in GetPage() 520 uint32_t objnum, in FindPageIndex() argument 524 if (objnum == pNode->GetObjNum()) in FindPageIndex() 551 if (pKid && pKid->GetRefObjNum() == objnum) in FindPageIndex() 561 int found_index = FindPageIndex(pKid, skip_count, objnum, index, level + 1); in FindPageIndex() 568 int CPDF_Document::GetPageIndex(uint32_t objnum) { in GetPageIndex() argument [all …]
|
D | cpdf_document.h | 59 int GetPageIndex(uint32_t objnum); 110 uint32_t objnum, 113 std::unique_ptr<CPDF_Object> ParseIndirectObject(uint32_t objnum) override;
|
D | cpdf_reference.h | 19 CPDF_Reference(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum); 37 void SetRef(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum);
|
D | cpdf_data_avail.h | 131 uint32_t GetObjectSize(uint32_t objnum, FX_FILESIZE& offset); 163 uint32_t objnum, 165 std::unique_ptr<CPDF_Object> GetObject(uint32_t objnum,
|
/external/pdfium/core/fpdfapi/edit/ |
D | fpdf_edit_create.cpp | 353 void AppendIndex2(CFX_ByteTextBuf& buffer, uint32_t objnum, int32_t index) { in AppendIndex2() argument 355 buffer.AppendByte(FX_GETBYTEOFFSET24(objnum)); in AppendIndex2() 356 buffer.AppendByte(FX_GETBYTEOFFSET16(objnum)); in AppendIndex2() 357 buffer.AppendByte(FX_GETBYTEOFFSET8(objnum)); in AppendIndex2() 358 buffer.AppendByte(FX_GETBYTEOFFSET0(objnum)); in AppendIndex2() 477 int objnum, 488 int objnum, in CPDF_Encryptor() argument 500 m_dwSize = pHandler->EncryptGetSize(objnum, 0, src_data, src_size); in CPDF_Encryptor() 502 pHandler->EncryptContent(objnum, 0, src_data, src_size, m_pData, m_dwSize); in CPDF_Encryptor() 549 tempBuffer << pair.objnum << " " << pair.offset << " "; in End() [all …]
|
D | cpdf_creator.h | 54 int32_t AppendObjectNumberToXRef(uint32_t objnum); 61 int32_t WriteOldIndirectObject(uint32_t objnum); 65 int32_t WriteDirectObj(uint32_t objnum, 69 int32_t WriteIndirectObj(uint32_t objnum, const CPDF_Object* pObj); 70 int32_t WriteIndirectObjectToStream(uint32_t objnum, 75 uint32_t objnum,
|
D | editint.h | 22 uint32_t objnum; member 45 uint32_t objnum; member 61 void AddObjectNumberToIndexArray(uint32_t objnum);
|
/external/pdfium/core/fpdfdoc/ |
D | cpdf_linklist.cpp | 18 uint32_t objnum = pPage->m_pFormDict->GetObjNum(); in GetPageLinks() local 19 if (objnum == 0) in GetPageLinks() 22 auto it = m_PageMap.find(objnum); in GetPageLinks() 27 std::vector<CPDF_Dictionary*>& page_link_list = m_PageMap[objnum]; in GetPageLinks()
|