diff options
author | Bo Xu <bo_xu@foxitsoftware.com> | 2014-07-24 17:50:59 -0700 |
---|---|---|
committer | Bo Xu <bo_xu@foxitsoftware.com> | 2014-07-24 17:50:59 -0700 |
commit | e7e6ca4355209af3a3a8142519f12cebe36889b1 (patch) | |
tree | 44444dcba68a0d22f6711ce0392b7c1ca7bdb77e /core/include | |
parent | 3414a6447fcd7a8338beb8d641c8f50c2e60a2b0 (diff) | |
download | pdfium-e7e6ca4355209af3a3a8142519f12cebe36889b1.tar.xz |
CalRGB color correction
BUG=pdfium:19
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/403163002
Diffstat (limited to 'core/include')
-rw-r--r-- | core/include/fxcrt/fx_basic.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/core/include/fxcrt/fx_basic.h b/core/include/fxcrt/fx_basic.h index ece2b43a2e..22ba611a77 100644 --- a/core/include/fxcrt/fx_basic.h +++ b/core/include/fxcrt/fx_basic.h @@ -1578,4 +1578,50 @@ typedef enum { } FX_ProgressiveStatus; #define ProgressiveStatus FX_ProgressiveStatus #define FX_NAMESPACE_DECLARE(namespace, type) namespace::type + +class CFX_Vector_3by1 : public CFX_Object +{ +public: + + CFX_Vector_3by1() : + a(0.0f), b(0.0f), c(0.0f) + {} + + CFX_Vector_3by1(FX_FLOAT a1, FX_FLOAT b1, FX_FLOAT c1): + a(a1), b(b1), c(c1) + {} + + FX_FLOAT a; + FX_FLOAT b; + FX_FLOAT c; +}; +class CFX_Matrix_3by3 : public CFX_Object +{ +public: + + CFX_Matrix_3by3(): + a(0.0f), b(0.0f), c(0.0f), d(0.0f), e(0.0f), f(0.0f), g(0.0f), h(0.0f), i(0.0f) + {} + + CFX_Matrix_3by3(FX_FLOAT a1, FX_FLOAT b1, FX_FLOAT c1, FX_FLOAT d1, FX_FLOAT e1, FX_FLOAT f1, FX_FLOAT g1, FX_FLOAT h1, FX_FLOAT i1) : + a(a1), b(b1), c(c1), d(d1), e(e1), f(f1), g(g1), h(h1), i(i1) + {} + + CFX_Matrix_3by3 Inverse(); + + CFX_Matrix_3by3 Multiply(const CFX_Matrix_3by3 &m); + + CFX_Vector_3by1 TransformVector(const CFX_Vector_3by1 &v); + + FX_FLOAT a; + FX_FLOAT b; + FX_FLOAT c; + FX_FLOAT d; + FX_FLOAT e; + FX_FLOAT f; + FX_FLOAT g; + FX_FLOAT h; + FX_FLOAT i; +}; + #endif |