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_psfunc.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_PSFUNC_H_
8#define CORE_FPDFAPI_PAGE_CPDF_PSFUNC_H_
9
10#include "core/fpdfapi/page/cpdf_function.h"
11#include "core/fpdfapi/page/cpdf_psengine.h"
12
13class CPDF_Object;
14
15class CPDF_PSFunc final : public CPDF_Function {
16 public:
18 ~CPDF_PSFunc() override;
19
20 // CPDF_Function:
21 bool v_Init(const CPDF_Object* pObj, VisitedSet* pVisited) override;
22 bool v_Call(pdfium::span<const float> inputs,
23 pdfium::span<float> results) const override;
24
25 private:
26 mutable CPDF_PSEngine m_PS; // Pre-initialized scratch space for v_Call().
27};
28
29#endif // CORE_FPDFAPI_PAGE_CPDF_PSFUNC_H_
int GetIntegerFor(const ByteString &key) const
uint32_t m_nOutputs
uint32_t m_nInputs
virtual ~CPDF_Function()
bool Init(const CPDF_Object *pObj, VisitedSet *pVisited)
CPDF_Function(Type type)
const Type m_Type
absl::optional< uint32_t > Call(pdfium::span< const float > inputs, pdfium::span< float > results) const
float Interpolate(float x, float xmin, float xmax, float ymin, float ymax) const
RetainPtr< const CPDF_Dictionary > GetDict() const
const CPDF_Stream * AsStream() const
bool v_Init(const CPDF_Object *pObj, VisitedSet *pVisited) override
~CPDF_PSFunc() override
bool v_Call(pdfium::span< const float > inputs, pdfium::span< float > results) const override