7#ifndef CORE_FXGE_DIB_CFX_BITMAPCOMPOSER_H_
8#define CORE_FXGE_DIB_CFX_BITMAPCOMPOSER_H_
12#include "core/fxcrt/data_vector.h"
13#include "core/fxcrt/retain_ptr.h"
14#include "core/fxcrt/unowned_ptr.h"
15#include "core/fxge/dib/cfx_scanlinecompositor.h"
16#include "core/fxge/dib/fx_dib.h"
17#include "core/fxge/dib/scanlinecomposer_iface.h"
43 DataVector<uint32_t> src_palette)
override;
44 void ComposeScanline(
int line, pdfium::span<
const uint8_t> scanline)
override;
47 void DoCompose(pdfium::span<uint8_t> dest_scan,
48 pdfium::span<
const uint8_t> src_scan,
50 pdfium::span<
const uint8_t> clip_scan);
51 void ComposeScanlineV(
int line, pdfium::span<
const uint8_t> scanline);
67 bool m_bRgbByteOrder =
false;
69 DataVector<uint8_t> m_pScanlineV;
70 DataVector<uint8_t> m_pClipScanV;
71 DataVector<uint8_t> m_pAddClipScan;
~CFX_BitmapComposer() override
void Compose(const RetainPtr< CFX_DIBitmap > &pDest, const CFX_ClipRgn *pClipRgn, float alpha, uint32_t mask_color, const FX_RECT &dest_rect, bool bVertical, bool bFlipX, bool bFlipY, bool bRgbByteOrder, BlendMode blend_mode)
void ComposeScanline(int line, pdfium::span< const uint8_t > scanline) override
bool SetInfo(int width, int height, FXDIB_Format src_format, DataVector< uint32_t > src_palette) override
bool Create(int width, int height, FXDIB_Format format, RetainPtr< CFX_DIBitmap > pBackdropBitmap)
void Clear(uint32_t color)
FX_RECT GetOuterRect() const
bool Continue(PauseIndicatorIface *pPause)
CFX_ImageRenderer(const RetainPtr< CFX_DIBitmap > &pDevice, const CFX_ClipRgn *pClipRgn, RetainPtr< const CFX_DIBBase > source, float alpha, uint32_t mask_color, const CFX_Matrix &matrix, const FXDIB_ResampleOptions &options, bool bRgbByteOrder)
CFX_Matrix & operator=(const CFX_Matrix &other)=default
void Translate(int32_t x, int32_t y)
CFX_FloatRect GetUnitRect() const
void Translate(float x, float y)
void Transform(const CFX_Matrix &matrix)
void AppendRect(float left, float bottom, float right, float top)
static CPDF_DocPageData * FromDocument(const CPDF_Document *pDoc)
float GetStrokeAlpha() const
float GetFillAlpha() const
BlendMode GetBlendType() const
CPDF_ImageRenderer(CPDF_RenderStatus *pStatus)
bool Start(RetainPtr< CFX_DIBBase > pDIBBase, FX_ARGB bitmap_argb, const CFX_Matrix &mtImage2Device, const FXDIB_ResampleOptions &options, bool bStdCS)
bool Continue(PauseIndicatorIface *pPause)
bool Start(CPDF_ImageObject *pImageObject, const CFX_Matrix &mtObj2Device, bool bStdCS, BlendMode blendType)
CPDF_Document * GetDocument() const override
const Options & GetOptions() const
bool CheckOCGDictVisible(const CPDF_Dictionary *pOC) const
bool ColorModeIs(Type mode) const
void SetOptions(const CPDF_RenderOptions &options)
void SetStdCS(bool bStdCS)
void Initialize(const CPDF_RenderStatus *pParentStatus, const CPDF_GraphicStates *pInitialStates)
#define FXARGB_MUL_ALPHA(argb, alpha)
constexpr FX_ARGB ArgbEncode(uint32_t a, uint32_t r, uint32_t g, uint32_t b)
int FXSYS_roundf(float f)
bool bInterpolateBilinear