#include "core/fpdfapi/page/cpdf_iccprofile.h"
#include <utility>
#include "core/fpdfapi/parser/cpdf_stream_acc.h"
#include "core/fxcodec/icc/icc_transform.h"
namespace {
bool DetectSRGB(pdfium::span<const uint8_t> span) { … }
}
CPDF_IccProfile::CPDF_IccProfile(RetainPtr<const CPDF_StreamAcc> stream_acc,
uint32_t expected_components)
: … { … }
CPDF_IccProfile::~CPDF_IccProfile() = default;
bool CPDF_IccProfile::IsNormal() const { … }
void CPDF_IccProfile::Translate(pdfium::span<const float> pSrcValues,
pdfium::span<float> pDestValues) { … }
void CPDF_IccProfile::TranslateScanline(pdfium::span<uint8_t> pDest,
pdfium::span<const uint8_t> pSrc,
int pixels) { … }