diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-07-03 20:46:36 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-03 20:46:36 +0000 |
commit | 82dafa4f1dd607561f6852c50c15b03977389dc2 (patch) | |
tree | 841cb1f4d8e74879084089c481e53d834af86218 /core/fpdfapi/page/cpdf_sampledfunc.cpp | |
parent | a0aef45d9181aee30198fdb87557d61f62ad2a7c (diff) | |
download | pdfium-82dafa4f1dd607561f6852c50c15b03977389dc2.tar.xz |
Use std::vector<float> in CPDF_Function.
Change-Id: Ia994118f93f34b5c0c2f2f5ddfd70fe11e9ec549
Reviewed-on: https://pdfium-review.googlesource.com/37010
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_sampledfunc.cpp')
-rw-r--r-- | core/fpdfapi/page/cpdf_sampledfunc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfapi/page/cpdf_sampledfunc.cpp b/core/fpdfapi/page/cpdf_sampledfunc.cpp index 8ac4bb5be4..143aeb4f8a 100644 --- a/core/fpdfapi/page/cpdf_sampledfunc.cpp +++ b/core/fpdfapi/page/cpdf_sampledfunc.cpp @@ -88,8 +88,8 @@ bool CPDF_SampledFunc::v_Init(const CPDF_Object* pObj, m_DecodeInfo[i].decode_min = pDecode->GetFloatAt(2 * i); m_DecodeInfo[i].decode_max = pDecode->GetFloatAt(2 * i + 1); } else { - m_DecodeInfo[i].decode_min = m_pRanges[i * 2]; - m_DecodeInfo[i].decode_max = m_pRanges[i * 2 + 1]; + m_DecodeInfo[i].decode_min = m_Ranges[i * 2]; + m_DecodeInfo[i].decode_max = m_Ranges[i * 2 + 1]; } } return true; @@ -108,7 +108,7 @@ bool CPDF_SampledFunc::v_Call(const float* inputs, float* results) const { else blocksize[i] = blocksize[i - 1] * m_EncodeInfo[i - 1].sizes; encoded_input[i] = - Interpolate(inputs[i], m_pDomains[i * 2], m_pDomains[i * 2 + 1], + Interpolate(inputs[i], m_Domains[i * 2], m_Domains[i * 2 + 1], m_EncodeInfo[i].encode_min, m_EncodeInfo[i].encode_max); index[i] = pdfium::clamp(static_cast<uint32_t>(encoded_input[i]), 0U, m_EncodeInfo[i].sizes - 1); |