Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cpdf_expintfunc.h
Go to the documentation of this file.
1// Copyright 2017 The PDFium Authors
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 "core/fpdfapi/page/cpdf_function.h"
11#include "core/fxcrt/data_vector.h"
12
13#if defined(PDF_USE_SKIA)
14#include "third_party/base/containers/span.h"
15#endif
16
17class CPDF_ExpIntFunc final : public CPDF_Function {
18 public:
20 ~CPDF_ExpIntFunc() override;
21
22 // CPDF_Function:
23 bool v_Init(const CPDF_Object* pObj, VisitedSet* pVisited) override;
24 bool v_Call(pdfium::span<const float> inputs,
25 pdfium::span<float> results) const override;
26
27 uint32_t GetOrigOutputs() const { return m_nOrigOutputs; }
28 float GetExponent() const { return m_Exponent; }
29
30#if defined(PDF_USE_SKIA)
31 pdfium::span<const float> GetBeginValues() const { return m_BeginValues; }
32 pdfium::span<const float> GetEndValues() const { return m_EndValues; }
33#endif
34
35 private:
36 uint32_t m_nOrigOutputs = 0;
37 float m_Exponent = 0.0f;
38 DataVector<float> m_BeginValues;
39 DataVector<float> m_EndValues;
40};
41
42#endif // CORE_FPDFAPI_PAGE_CPDF_EXPINTFUNC_H_
float GetExponent() const
~CPDF_ExpIntFunc() override
uint32_t GetOrigOutputs() const
bool v_Init(const CPDF_Object *pObj, VisitedSet *pVisited) override
bool v_Call(pdfium::span< const float > inputs, pdfium::span< float > results) const override
uint32_t m_nOutputs
uint32_t m_nInputs
CPDF_Function(Type type)