/external/pdfium/core/src/fpdfapi/fpdf_page/ |
fpdf_page_pattern.cpp | 87 CPDF_ColorSpace* pCS = m_pCS;
88 if (pCS && m_pDocument) {
89 m_pDocument->GetPageData()->ReleaseColorSpace(pCS->GetArray());
140 FX_BOOL CPDF_MeshStream::Load(CPDF_Stream* pShadingStream, CPDF_Function** pFuncs, int nFuncs, CPDF_ColorSpace* pCS)
146 m_pCS = pCS;
154 int nComps = pCS->CountComponents();
237 CPDF_Function** pFuncs, int nFuncs, CPDF_ColorSpace* pCS)
239 if (pStream == NULL || pStream->GetType() != PDFOBJ_STREAM || pFuncs == NULL || pCS == NULL) {
243 if (!stream.Load(pStream, pFuncs, nFuncs, pCS)) {
|
fpdf_page_colors.cpp | 752 CPDF_ColorSpace* pCS = m_pBaseCS;
753 if (pCS && m_pDocument) {
754 m_pDocument->GetPageData()->ReleaseColorSpace(pCS->GetArray());
838 CPDF_ColorSpace* pCS = m_pBaseCS;
839 if (pCS && m_pDocument) {
840 m_pDocument->GetPageData()->ReleaseColorSpace(pCS->GetArray());
[all...] |
fpdf_page_doc.cpp | 366 CPDF_ColorSpace* pCS = _CSFromName(name);
367 if (!pCS && pResources) {
374 if (pCS == NULL || pResources == NULL) {
375 return pCS;
379 return pCS;
382 switch (pCS->GetFamily()) {
394 return pCS;
423 CPDF_ColorSpace* pCS = CPDF_ColorSpace::Load(m_pPDFDoc, pArray);
424 if (!pCS) {
431 csData->m_Obj = pCS;
[all...] |
fpdf_page_graph_state.cpp | 238 void CPDF_ColorState::SetFillColor(CPDF_ColorSpace* pCS, FX_FLOAT* pValue, int nValues)
241 SetColor(pData->m_FillColor, pData->m_FillRGB, pCS, pValue, nValues);
243 void CPDF_ColorState::SetStrokeColor(CPDF_ColorSpace* pCS, FX_FLOAT* pValue, int nValues)
246 SetColor(pData->m_StrokeColor, pData->m_StrokeRGB, pCS, pValue, nValues);
248 void CPDF_ColorState::SetColor(CPDF_Color& color, FX_DWORD& rgb, CPDF_ColorSpace* pCS, FX_FLOAT* pValue, int nValues)
250 if (pCS) {
251 color.SetColorSpace(pCS);
|
fpdf_page_parser_new.cpp | 516 CPDF_ColorSpace* pCS = m_pDocument->LoadColorSpace(pCSObj);
517 if (pCS == NULL) {
520 nComponents = pCS->CountComponents();
|
fpdf_page_parser_old.cpp | 329 CPDF_ColorSpace* pCS = pDoc->LoadColorSpace(pCSObj);
330 if (pCS == NULL) {
333 nComponents = pCS->CountComponents();
[all...] |
/external/pdfium/core/src/fpdfapi/fpdf_edit/ |
fpdf_edit_image.cpp | 134 CPDF_Array* pCS = FX_NEW CPDF_Array;
135 pCS->AddName(FX_BSTRC("Indexed"));
136 pCS->AddName(FX_BSTRC("DeviceRGB"));
137 pCS->AddInteger(1);
147 pCS->Add(CPDF_String::Create(ct, TRUE));
148 pDict->SetAt(FX_BSTRC("ColorSpace"), pCS);
160 CPDF_Array* pCS = FX_NEW CPDF_Array;
161 m_pDocument->AddIndirectObject(pCS);
162 pCS->AddName(FX_BSTRC("Indexed"));
163 pCS->AddName(FX_BSTRC("DeviceRGB")); [all...] |
/external/pdfium/core/src/fpdfapi/fpdf_render/ |
fpdf_render_pattern.cpp | 15 CPDF_ColorSpace* pCS, int alpha)
51 if (pCS->CountComponents() > total_results) {
52 total_results = pCS->CountComponents();
70 pCS->GetRGB(pResults, R, G, B);
99 CPDF_ColorSpace* pCS, int alpha)
132 if (pCS->CountComponents() > total_results) {
133 total_results = pCS->CountComponents();
151 pCS->GetRGB(pResults, R, G, B);
229 CPDF_ColorSpace* pCS, int alpha)
255 if (pCS->CountComponents() > total_results) { [all...] |
fpdf_render_image.cpp | 312 static FX_BOOL _IsSupported(CPDF_ColorSpace* pCS)
314 if (pCS->GetFamily() == PDFCS_DEVICERGB || pCS->GetFamily() == PDFCS_DEVICEGRAY ||
315 pCS->GetFamily() == PDFCS_DEVICECMYK || pCS->GetFamily() == PDFCS_CALGRAY ||
316 pCS->GetFamily() == PDFCS_CALRGB) {
319 if (pCS->GetFamily() == PDFCS_INDEXED && _IsSupported(pCS->GetBaseCS())) {
[all...] |
fpdf_render_loadimage.cpp | 132 CPDF_ColorSpace* pCS = m_pColorSpace;
133 if (pCS && m_pDocument) {
134 m_pDocument->GetPageData()->ReleaseColorSpace(pCS->GetArray());
[all...] |
/external/pdfium/core/include/fpdfapi/ |
fpdf_pageobj.h | 196 void SetFillColor(CPDF_ColorSpace* pCS, FX_FLOAT* pValue, int nValues);
198 void SetStrokeColor(CPDF_ColorSpace* pCS, FX_FLOAT* pValue, int nValues);
204 void SetColor(CPDF_Color& color, FX_DWORD& rgb, CPDF_ColorSpace* pCS, FX_FLOAT* pValue, int nValues);
|
fpdf_resource.h | 707 void SetColorSpace(CPDF_ColorSpace* pCS);
813 FX_BOOL Load(CPDF_Stream* pShadingStream, CPDF_Function** pFuncs, int nFuncs, CPDF_ColorSpace* pCS);
|