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_page.h" | 7 #include "../../../include/fpdfapi/fpdf_page.h" |
8 #include "../../../include/fpdfapi/fpdf_module.h" | 8 #include "../../../include/fpdfapi/fpdf_module.h" |
9 #include "../../../include/fxcodec/fx_codec.h" | 9 #include "../../../include/fxcodec/fx_codec.h" |
10 #include "pageint.h" | 10 #include "pageint.h" |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 FX_FLOAT& B) const override; | 505 FX_FLOAT& B) const override; |
506 FX_BOOL SetRGB(FX_FLOAT* pBuf, | 506 FX_BOOL SetRGB(FX_FLOAT* pBuf, |
507 FX_FLOAT R, | 507 FX_FLOAT R, |
508 FX_FLOAT G, | 508 FX_FLOAT G, |
509 FX_FLOAT B) const override; | 509 FX_FLOAT B) const override; |
510 void TranslateImageLine(uint8_t* pDestBuf, | 510 void TranslateImageLine(uint8_t* pDestBuf, |
511 const uint8_t* pSrcBuf, | 511 const uint8_t* pSrcBuf, |
512 int pixels, | 512 int pixels, |
513 int image_width, | 513 int image_width, |
514 int image_height, | 514 int image_height, |
515 FX_BOOL bTransMask = FALSE) const; | 515 FX_BOOL bTransMask = FALSE) const override; |
516 | 516 |
517 FX_FLOAT m_WhitePoint[3]; | 517 FX_FLOAT m_WhitePoint[3]; |
518 FX_FLOAT m_BlackPoint[3]; | 518 FX_FLOAT m_BlackPoint[3]; |
519 FX_FLOAT m_Ranges[4]; | 519 FX_FLOAT m_Ranges[4]; |
520 }; | 520 }; |
521 FX_BOOL CPDF_LabCS::v_Load(CPDF_Document* pDoc, CPDF_Array* pArray) { | 521 FX_BOOL CPDF_LabCS::v_Load(CPDF_Document* pDoc, CPDF_Array* pArray) { |
522 CPDF_Dictionary* pDict = pArray->GetDict(1); | 522 CPDF_Dictionary* pDict = pArray->GetDict(1); |
523 if (!pDict) { | 523 if (!pDict) { |
524 return FALSE; | 524 return FALSE; |
525 } | 525 } |
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1545 } | 1545 } |
1546 PatternValue* pvalue = (PatternValue*)m_pBuffer; | 1546 PatternValue* pvalue = (PatternValue*)m_pBuffer; |
1547 return pvalue->m_nComps ? pvalue->m_Comps : NULL; | 1547 return pvalue->m_nComps ? pvalue->m_Comps : NULL; |
1548 } | 1548 } |
1549 FX_BOOL CPDF_Color::IsEqual(const CPDF_Color& other) const { | 1549 FX_BOOL CPDF_Color::IsEqual(const CPDF_Color& other) const { |
1550 if (m_pCS != other.m_pCS || m_pCS == NULL) { | 1550 if (m_pCS != other.m_pCS || m_pCS == NULL) { |
1551 return FALSE; | 1551 return FALSE; |
1552 } | 1552 } |
1553 return FXSYS_memcmp(m_pBuffer, other.m_pBuffer, m_pCS->GetBufSize()) == 0; | 1553 return FXSYS_memcmp(m_pBuffer, other.m_pBuffer, m_pCS->GetBufSize()) == 0; |
1554 } | 1554 } |
OLD | NEW |