Home
last modified time | relevance | path

Searched refs:m_pBuffer (Results 1 – 17 of 17) sorted by relevance

/external/pdfium/core/fpdfapi/page/
Dcpdf_color.cpp15 CPDF_Color::CPDF_Color() : m_pCS(nullptr), m_pBuffer(nullptr) {} in CPDF_Color()
27 if (!m_pBuffer) in ReleaseBuffer()
31 PatternValue* pvalue = (PatternValue*)m_pBuffer; in ReleaseBuffer()
40 FX_Free(m_pBuffer); in ReleaseBuffer()
41 m_pBuffer = nullptr; in ReleaseBuffer()
53 if (!m_pBuffer) in SetColorSpace()
54 m_pBuffer = pCS->CreateBuf(); in SetColorSpace()
65 m_pBuffer = pCS->CreateBuf(); in SetColorSpace()
66 pCS->GetDefaultColor(m_pBuffer); in SetColorSpace()
71 if (!m_pBuffer) in SetValue()
[all …]
Dcpdf_color.h20 bool IsNull() const { return !m_pBuffer; } in IsNull()
38 FX_FLOAT* m_pBuffer; variable
/external/pdfium/core/fxcrt/
Dfx_basic_buffer.cpp21 m_pBuffer.reset(FX_Alloc(uint8_t, size)); in CFX_BinaryBuf()
27 if (!m_pBuffer || start_index < 0 || count < 0 || count > m_DataSize || in Delete()
31 FXSYS_memmove(m_pBuffer.get() + start_index, in Delete()
32 m_pBuffer.get() + start_index + count, in Delete()
44 return std::move(m_pBuffer); in DetachBuffer()
64 m_pBuffer.reset(m_pBuffer in ExpandBuf()
65 ? FX_Realloc(uint8_t, m_pBuffer.release(), m_AllocSize) in ExpandBuf()
75 FXSYS_memcpy(m_pBuffer.get() + m_DataSize, pBuf, size); in AppendBlock()
77 FXSYS_memset(m_pBuffer.get() + m_DataSize, 0, size); in AppendBlock()
89 FXSYS_memmove(m_pBuffer.get() + pos + size, m_pBuffer.get() + pos, in InsertBlock()
[all …]
Dfx_xml_parser.cpp89 const uint8_t* m_pBuffer; member in __anone56f78be0111::CXML_DataBufAcc
95 : m_pBuffer(pBuffer), m_dwSize(size), m_dwCurPos(0) {} in CXML_DataBufAcc()
123 return m_pBuffer; in GetBlockBuffer()
154 uint8_t* m_pBuffer; member in __anone56f78be0111::CXML_DataStmAcc
161 : m_pFileRead(pFileRead), m_pBuffer(nullptr), m_nStart(0), m_dwSize(0) { in CXML_DataStmAcc()
166 FX_Free(m_pBuffer); in ~CXML_DataStmAcc()
194 if (!m_pBuffer) in ReadNextBlock()
195 m_pBuffer = FX_Alloc(uint8_t, m_dwSize); in ReadNextBlock()
197 return m_pFileRead->ReadBlock(m_pBuffer, m_nStart, m_dwSize); in ReadNextBlock()
201 return (const uint8_t*)m_pBuffer; in GetBlockBuffer()
[all …]
Dfx_basic.h29 uint8_t* GetBuffer() const { return m_pBuffer.get(); } in GetBuffer()
41 m_pBuffer.get()[m_DataSize++] = byte; in AppendByte()
56 std::unique_ptr<uint8_t, FxFreeDeleter> m_pBuffer; variable
63 return CFX_ByteString(m_pBuffer.get(), m_DataSize); in MakeString()
66 return CFX_ByteStringC(m_pBuffer.get(), m_DataSize); in AsStringC()
88 return reinterpret_cast<FX_WCHAR*>(m_pBuffer.get()); in GetBuffer()
92 return CFX_WideStringC(reinterpret_cast<const FX_WCHAR*>(m_pBuffer.get()), in AsStringC()
96 return CFX_WideString(reinterpret_cast<const FX_WCHAR*>(m_pBuffer.get()), in MakeString()
130 std::unique_ptr<uint8_t, FxFreeDeleter> m_pBuffer; variable
Dxml_int.h45 const uint8_t* m_pBuffer; variable
/external/pdfium/xfa/fde/css/
Dcfde_csstextbuf.cpp13 m_pBuffer(nullptr), in CFDE_CSSTextBuf()
24 FX_Free(m_pBuffer); in Reset()
25 m_pBuffer = nullptr; in Reset()
32 m_pBuffer = const_cast<FX_WCHAR*>(pBuffer); in AttachBuffer()
58 m_iDatLen = pTxtStream->ReadString(m_pBuffer, iMaxChars, bEOS); in LoadFromStream()
65 if (!m_pBuffer) in ExpandBuf()
66 m_pBuffer = FX_Alloc(FX_WCHAR, iDesiredSize); in ExpandBuf()
68 m_pBuffer = FX_Realloc(FX_WCHAR, m_pBuffer, iDesiredSize); in ExpandBuf()
72 if (!m_pBuffer) { in ExpandBuf()
84 FXSYS_memmove(m_pBuffer, m_pBuffer + iStart, iLength * sizeof(FX_WCHAR)); in Subtract()
Dcfde_csstextbuf.h29 m_pBuffer[m_iDatLen++] = wch; in AppendChar()
37 while (m_iDatLen > 0 && m_pBuffer[m_iDatLen - 1] <= ' ') in TrimEnd()
46 FX_WCHAR GetAt(int32_t index) const { return m_pBuffer[index]; } in GetAt()
47 FX_WCHAR GetChar() const { return m_pBuffer[m_iDatPos]; } in GetChar()
49 return (m_iDatPos + 1 >= m_iDatLen) ? 0 : m_pBuffer[m_iDatPos + 1]; in GetNextChar()
55 const FX_WCHAR* GetBuffer() const { return m_pBuffer; } in GetBuffer()
60 FX_WCHAR* m_pBuffer; variable
/external/pdfium/core/fxge/dib/
Dfx_dib_main.cpp68 m_pBuffer = nullptr; in CFX_DIBitmap()
81 m_pBuffer = nullptr; in Create()
98 m_pBuffer = pBuffer; in Create()
104 m_pBuffer = FX_TryAlloc(uint8_t, size); in Create()
105 if (!m_pBuffer) { in Create()
109 m_pBuffer = FX_Alloc(uint8_t, size); in Create()
120 FX_Free(m_pBuffer); in Create()
121 m_pBuffer = nullptr; in Create()
131 if (m_pBuffer) in Copy()
140 FXSYS_memcpy(m_pBuffer + row * m_Pitch, pSrc->GetScanline(row), m_Pitch); in Copy()
[all …]
Dfx_dib_convert.cpp842 uint8_t* scanline = m_pBuffer + row * m_Pitch + 3; in ConvertFormat()
904 FX_Free(m_pBuffer); in ConvertFormat()
906 m_pBuffer = dest_buf; in ConvertFormat()
Dfx_dib_composite.cpp4496 if (!m_pBuffer) { in CompositeBitmap()
4528 m_pBuffer + (dest_top + row) * m_Pitch + dest_left * dest_Bpp; in CompositeBitmap()
4540 clip_scan = pClipMask->m_pBuffer + in CompositeBitmap()
4570 if (!m_pBuffer) { in CompositeMask()
4605 m_pBuffer + (dest_top + row) * m_Pitch + dest_left * Bpp; in CompositeMask()
4613 clip_scan = pClipMask->m_pBuffer + in CompositeMask()
4635 if (!m_pBuffer) { in CompositeRect()
4678 uint8_t* dest_scan = m_pBuffer + row * m_Pitch + rect.left; in CompositeRect()
4754 uint8_t* dest_scan = m_pBuffer + row * m_Pitch + rect.left * Bpp; in CompositeRect()
4777 uint8_t* dest_scan = m_pBuffer + row * m_Pitch + rect.left * Bpp; in CompositeRect()
/external/pdfium/core/fxge/android/
Dcfpf_skiabufferfont.h16 CFPF_SkiaBufferFont() : m_pBuffer(nullptr), m_szBuffer(0) {} in CFPF_SkiaBufferFont()
21 void* m_pBuffer; variable
Dcfpf_skiafont.cpp203 m_Face = pFontMgr->GetFontFace((const uint8_t*)pFont->m_pBuffer, in InitFont()
/external/pdfium/xfa/fde/xml/
Dfde_xml_imp.cpp1250 m_pBuffer(nullptr), in CFDE_XMLSyntaxParser()
1273 ASSERT(!m_pStream && !m_pBuffer); in Init()
1281 ASSERT(!m_pBuffer); in Init()
1290 m_pBuffer = FX_Alloc( in Init()
1292 m_pStart = m_pEnd = m_pBuffer; in Init()
1305 ASSERT(m_pStream && m_pBuffer && m_BlockBuffer.IsInitialized()); in DoSyntaxParse()
1316 m_iParsedChars += (m_pEnd - m_pBuffer); in DoSyntaxParse()
1322 m_pStream->ReadString(m_pBuffer, m_iXMLPlaneSize, m_bEOS); in DoSyntaxParse()
1330 m_pStart = m_pBuffer; in DoSyntaxParse()
1331 m_pEnd = m_pBuffer + m_iBufferChars; in DoSyntaxParse()
[all …]
Dfde_xml_imp.h265 return m_iParsedChars + (m_pStart - m_pBuffer); in GetCurrentPos()
323 FX_WCHAR* m_pBuffer; variable
/external/pdfium/core/fxge/win32/
Dfx_win32_dib.cpp201 (LPVOID*)&m_pBuffer, nullptr, 0); in CFX_WindowsDIB()
/external/pdfium/core/fxge/
Dfx_dib.h391 uint8_t* m_pBuffer; variable