diff options
author | Lei Zhang <thestig@chromium.org> | 2017-03-15 13:26:37 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-15 21:10:29 +0000 |
commit | a12159b17085796e2b72d2b49e850092e0b4e8b7 (patch) | |
tree | df7a5d149c9bbfe5c2d2ec16631c3dcb6ae9a901 /core/fpdfapi/page/cpdf_colorspace.h | |
parent | 59d9416553b293f6df923c2f3ef33def2d51d7b7 (diff) | |
download | pdfium-a12159b17085796e2b72d2b49e850092e0b4e8b7.tar.xz |
Refactor some CPDF_ColorSpace code.
Change-Id: I1e30d68dae3bf70cf3c426f6126d593b7f1c3ba4
Reviewed-on: https://pdfium-review.googlesource.com/2991
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_colorspace.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_colorspace.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/fpdfapi/page/cpdf_colorspace.h b/core/fpdfapi/page/cpdf_colorspace.h index e3c369e5ce..76072d1260 100644 --- a/core/fpdfapi/page/cpdf_colorspace.h +++ b/core/fpdfapi/page/cpdf_colorspace.h @@ -43,15 +43,15 @@ class CPDF_ColorSpace { uint32_t CountComponents() const; int GetFamily() const { return m_Family; } virtual void GetDefaultValue(int iComponent, - float& value, - float& min, - float& max) const; + float* value, + float* min, + float* max) const; bool sRGB() const; - virtual bool GetRGB(float* pBuf, float& R, float& G, float& B) const = 0; + virtual bool GetRGB(float* pBuf, float* R, float* G, float* B) const = 0; virtual bool SetRGB(float* pBuf, float R, float G, float B) const; - bool GetCMYK(float* pBuf, float& c, float& m, float& y, float& k) const; + bool GetCMYK(float* pBuf, float* c, float* m, float* y, float* k) const; bool SetCMYK(float* pBuf, float c, float m, float y, float k) const; virtual void TranslateImageLine(uint8_t* dest_buf, @@ -59,7 +59,7 @@ class CPDF_ColorSpace { int pixels, int image_width, int image_height, - bool bTransMask = false) const; + bool bTransMask) const; CPDF_Array*& GetArray() { return m_pArray; } virtual CPDF_ColorSpace* GetBaseCS() const; @@ -74,10 +74,10 @@ class CPDF_ColorSpace { virtual bool v_Load(CPDF_Document* pDoc, CPDF_Array* pArray); virtual bool v_GetCMYK(float* pBuf, - float& c, - float& m, - float& y, - float& k) const; + float* c, + float* m, + float* y, + float* k) const; virtual bool v_SetCMYK(float* pBuf, float c, float m, float y, float k) const; int m_Family; |