Home
last modified time | relevance | path

Searched refs:objnum (Results 1 – 19 of 19) sorted by relevance

/external/pdfium/core/fpdfapi/parser/
Dcpdf_indirect_object_holder.cpp25 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 …]
Dcpdf_parser.cpp73 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 …]
Dcpdf_parser.h65 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 …]
Dcpdf_crypto_handler.h25 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);
Dcpdf_indirect_object_holder.h30 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);
Dcpdf_crypto_handler.cpp17 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 …]
Dcpdf_syntax_parser.cpp370 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 …]
Dcpdf_reference.cpp13 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()
Dcfdf_document.cpp53 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()
Dcpdf_data_avail.cpp94 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 …]
Dcpdf_syntax_parser.h36 uint32_t objnum,
42 uint32_t objnum,
82 uint32_t objnum,
Dcpdf_document.cpp362 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 …]
Dcpdf_document.h59 int GetPageIndex(uint32_t objnum);
110 uint32_t objnum,
113 std::unique_ptr<CPDF_Object> ParseIndirectObject(uint32_t objnum) override;
Dcpdf_reference.h19 CPDF_Reference(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum);
37 void SetRef(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum);
Dcpdf_data_avail.h131 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/
Dfpdf_edit_create.cpp353 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 …]
Dcpdf_creator.h54 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,
Deditint.h22 uint32_t objnum; member
45 uint32_t objnum; member
61 void AddObjectNumberToIndexArray(uint32_t objnum);
/external/pdfium/core/fpdfdoc/
Dcpdf_linklist.cpp18 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()