7#ifndef CORE_FPDFAPI_PAGE_CPDF_STITCHFUNC_H_
8#define CORE_FPDFAPI_PAGE_CPDF_STITCHFUNC_H_
13#include "core/fpdfapi/page/cpdf_function.h"
22 bool v_Call(pdfium::span<
const float> inputs,
23 pdfium::span<
float> results)
const override;
26 return m_pSubFunctions;
28 float GetBound(size_t i)
const {
return m_bounds[i]; }
29 float GetEncode(size_t i)
const {
return m_encode[i]; }
32 std::vector<std::unique_ptr<CPDF_Function>> m_pSubFunctions;
33 std::vector<
float> m_bounds;
34 std::vector<
float> m_encode;
int GetIntegerFor(const ByteString &key) const
bool Init(const CPDF_Object *pObj, VisitedSet *pVisited)
absl::optional< uint32_t > Call(pdfium::span< const float > inputs, pdfium::span< float > results) const
@ kType2ExponentialInterpolation
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 DoOperator(PDF_PSOP op)
bool Parse(pdfium::span< const uint8_t > input)
uint32_t GetStackSize() 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
void Execute(CPDF_PSEngine *pEngine)
float GetFloatValue() const
bool Parse(CPDF_SimpleParser *parser, int depth)
bool Execute(CPDF_PSEngine *pEngine)
size_t num_operators() const
const std::unique_ptr< CPDF_PSOP > & last_operator()
bool Parse(CPDF_SimpleParser *parser, int depth)
void AddOperatorForTesting(ByteStringView word)
uint32_t GetBitsPerSample() const
const std::vector< SampleEncodeInfo > & GetEncodeInfo() const
bool v_Call(pdfium::span< const float > inputs, pdfium::span< float > results) const override
~CPDF_SampledFunc() override
bool v_Init(const CPDF_Object *pObj, VisitedSet *pVisited) override
float GetBound(size_t i) const
~CPDF_StitchFunc() override
float GetEncode(size_t i) const
bool v_Init(const CPDF_Object *pObj, VisitedSet *pVisited) override
const std::vector< std::unique_ptr< CPDF_Function > > & GetSubFunctions() const
bool v_Call(pdfium::span< const float > inputs, pdfium::span< float > results) const override