7#ifndef CORE_FXCODEC_BASIC_BASICMODULE_H_
8#define CORE_FXCODEC_BASIC_BASICMODULE_H_
14#include "core/fxcrt/data_vector.h"
15#include "third_party/base/containers/span.h"
24 pdfium::span<
const uint8_t> src_buf,
31 pdfium::span<
const uint8_t> src_span);
void SetPaletteArgb(int index, uint32_t color)
static uint32_t ComponentsForFamily(Family family)
static RetainPtr< CPDF_ColorSpace > GetStockCS(Family family)
RetainPtr< CPDF_DIB > DetachMask()
size_t GetEstimatedImageMemoryBurden() const override
uint32_t GetMatteColor() const
bool SkipToScanline(int line, PauseIndicatorIface *pPause) const override
RetainPtr< CPDF_ColorSpace > GetColorSpace() const
LoadState ContinueLoadDIBBase(PauseIndicatorIface *pPause)
pdfium::span< const uint8_t > GetScanline(int line) const override
LoadState StartLoadDIBBase(bool bHasMask, const CPDF_Dictionary *pFormResources, const CPDF_Dictionary *pPageResources, bool bStdCS, CPDF_ColorSpace::Family GroupFamily, bool bLoadMask, const CFX_Size &max_size_required)
static bool IsValidJpegBitsPerComponent(int32_t bpc)
static bool IsValidJpegComponent(int32_t comps)
static DataVector< uint8_t > RunLengthEncode(pdfium::span< const uint8_t > src_span)
static std::unique_ptr< ScanlineDecoder > CreateRunLengthDecoder(pdfium::span< const uint8_t > src_buf, int width, int height, int nComps, int bpc)
BasicModule & operator=(const BasicModule &)=delete
BasicModule(const BasicModule &)=delete
static DataVector< uint8_t > A85Encode(pdfium::span< const uint8_t > src_span)
bool operator==(const char *ptr) const
bool operator!=(const char *ptr) const
constexpr size_t kHugeImageSize
FXDIB_Format MakeRGBFormat(int bpp)
constexpr FX_ARGB ArgbEncode(uint32_t a, uint32_t r, uint32_t g, uint32_t b)
int FXSYS_roundf(float f)
#define CONSTRUCT_VIA_MAKE_RETAIN