• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef CORE_FPDFAPI_PAGE_CPDF_EXPINTFUNC_H_
8 #define CORE_FPDFAPI_PAGE_CPDF_EXPINTFUNC_H_
9 
10 #include <set>
11 #include <vector>
12 
13 #include "core/fpdfapi/page/cpdf_function.h"
14 
15 class CPDF_ExpIntFunc final : public CPDF_Function {
16  public:
17   CPDF_ExpIntFunc();
18   ~CPDF_ExpIntFunc() override;
19 
20   // CPDF_Function
21   bool v_Init(const CPDF_Object* pObj,
22               std::set<const CPDF_Object*>* pVisited) override;
23   bool v_Call(const float* inputs, float* results) const override;
24 
25   uint32_t m_nOrigOutputs = 0;
26   float m_Exponent = 0.0f;
27   std::vector<float> m_BeginValues;
28   std::vector<float> m_EndValues;
29 };
30 
31 #endif  // CORE_FPDFAPI_PAGE_CPDF_EXPINTFUNC_H_
32