Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cstretchengine.h>
Classes | |
struct | PixelWeight |
class | WeightTable |
Public Member Functions | |
CStretchEngine (ScanlineComposerIface *pDestBitmap, FXDIB_Format dest_format, int dest_width, int dest_height, const FX_RECT &clip_rect, const RetainPtr< const CFX_DIBBase > &pSrcBitmap, const FXDIB_ResampleOptions &options) | |
~CStretchEngine () | |
bool | Continue (PauseIndicatorIface *pPause) |
bool | StartStretchHorz () |
bool | ContinueStretchHorz (PauseIndicatorIface *pPause) |
void | StretchVert () |
const FXDIB_ResampleOptions & | GetResampleOptionsForTest () const |
Static Public Member Functions | |
static uint32_t | FixedFromDouble (double d) |
static uint32_t | FixedFromFloat (float f) |
static uint8_t | PixelFromFixed (uint32_t fixed) |
static bool | UseInterpolateBilinear (const FXDIB_ResampleOptions &options, int dest_width, int dest_height, int src_width, int src_height) |
Static Public Attributes | |
static constexpr uint32_t | kFixedPointBits = 16 |
static constexpr uint32_t | kFixedPointOne = 1 << kFixedPointBits |
Definition at line 26 of file cstretchengine.h.
CStretchEngine::CStretchEngine | ( | ScanlineComposerIface * | pDestBitmap, |
FXDIB_Format | dest_format, | ||
int | dest_width, | ||
int | dest_height, | ||
const FX_RECT & | clip_rect, | ||
const RetainPtr< const CFX_DIBBase > & | pSrcBitmap, | ||
const FXDIB_ResampleOptions & | options ) |
Definition at line 180 of file cstretchengine.cpp.
References CStretchEngine(), FX_RECT::FX_RECT(), FX_RECT::FX_RECT(), FXDIB_ResampleOptions::bInterpolateBilinear, FXDIB_ResampleOptions::bNoSmoothing, FX_RECT::bottom, fxge::CalculatePitch32OrDie(), GetBppFromFormat(), FX_RECT::Intersect(), kArgb, FX_RECT::left, FX_RECT::right, FX_RECT::top, UseInterpolateBilinear(), and FX_RECT::Width().
Referenced by CStretchEngine().
|
default |
bool CStretchEngine::Continue | ( | PauseIndicatorIface * | pPause | ) |
Definition at line 263 of file cstretchengine.cpp.
References ContinueStretchHorz(), and StretchVert().
bool CStretchEngine::ContinueStretchHorz | ( | PauseIndicatorIface * | pPause | ) |
Definition at line 298 of file cstretchengine.cpp.
References FX_RECT::bottom, CStretchEngine::PixelWeight::GetWeightForPosition(), kRgb, FX_RECT::left, CStretchEngine::PixelWeight::m_SrcEnd, CStretchEngine::PixelWeight::m_SrcStart, PauseIndicatorIface::NeedToPauseNow(), PixelFromFixed(), and FX_RECT::right.
Referenced by Continue().
|
inlinestatic |
Definition at line 31 of file cstretchengine.h.
References FXSYS_round(), and kFixedPointOne.
Referenced by CStretchEngine::WeightTable::CalculateWeights().
|
inlinestatic |
Definition at line 35 of file cstretchengine.h.
References FXSYS_roundf(), and kFixedPointOne.
|
inline |
Definition at line 124 of file cstretchengine.h.
Referenced by TEST().
|
inlinestatic |
Definition at line 39 of file cstretchengine.h.
References kFixedPointBits.
Referenced by ContinueStretchHorz(), and StretchVert().
bool CStretchEngine::StartStretchHorz | ( | ) |
Definition at line 274 of file cstretchengine.cpp.
References FX_RECT::top.
void CStretchEngine::StretchVert | ( | ) |
Definition at line 423 of file cstretchengine.cpp.
References FX_RECT::bottom, CStretchEngine::WeightTable::CalculateWeights(), CStretchEngine::WeightTable::GetPixelWeight(), CStretchEngine::PixelWeight::GetWeightForPosition(), FX_RECT::left, CStretchEngine::PixelWeight::m_SrcEnd, CStretchEngine::PixelWeight::m_SrcStart, PixelFromFixed(), FX_RECT::right, and FX_RECT::top.
Referenced by Continue().
|
static |
Definition at line 30 of file cstretchengine.cpp.
References FXDIB_ResampleOptions::bInterpolateBilinear, and FXDIB_ResampleOptions::bNoSmoothing.
Referenced by CStretchEngine().
|
staticconstexpr |
Definition at line 28 of file cstretchengine.h.
Referenced by PixelFromFixed().
|
staticconstexpr |
Definition at line 29 of file cstretchengine.h.
Referenced by CStretchEngine::WeightTable::CalculateWeights(), FixedFromDouble(), and FixedFromFloat().