Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CStretchEngine::WeightTable Class Reference

#include <cstretchengine.h>

+ Collaboration diagram for CStretchEngine::WeightTable:

Public Member Functions

 WeightTable ()
 
 ~WeightTable ()
 
bool CalculateWeights (int dest_len, int dest_min, int dest_max, int src_len, int src_min, int src_max, const FXDIB_ResampleOptions &options)
 
const PixelWeightGetPixelWeight (int pixel) const
 
PixelWeightGetPixelWeight (int pixel)
 

Detailed Description

Definition at line 85 of file cstretchengine.h.

Constructor & Destructor Documentation

◆ WeightTable()

CStretchEngine::WeightTable::WeightTable ( )
default

◆ ~WeightTable()

CStretchEngine::WeightTable::~WeightTable ( )
default

Member Function Documentation

◆ CalculateWeights()

bool CStretchEngine::WeightTable::CalculateWeights ( int dest_len,
int dest_min,
int dest_max,
int src_len,
int src_min,
int src_max,
const FXDIB_ResampleOptions & options )

Definition at line 59 of file cstretchengine.cpp.

References FXDIB_ResampleOptions::bInterpolateBilinear, FXDIB_ResampleOptions::bNoSmoothing, CStretchEngine::FixedFromDouble(), GetPixelWeight(), CStretchEngine::kFixedPointOne, CStretchEngine::PixelWeight::m_SrcEnd, CStretchEngine::PixelWeight::m_SrcStart, CStretchEngine::PixelWeight::m_Weights, CStretchEngine::PixelWeight::RemoveLastWeightAndAdjust(), and CStretchEngine::PixelWeight::SetWeightForPosition().

Referenced by CStretchEngine::StretchVert(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetPixelWeight() [1/2]

CStretchEngine::PixelWeight * CStretchEngine::WeightTable::GetPixelWeight ( int pixel)

Definition at line 175 of file cstretchengine.cpp.

Referenced by CalculateWeights(), and CStretchEngine::StretchVert().

+ Here is the caller graph for this function:

◆ GetPixelWeight() [2/2]

const CStretchEngine::PixelWeight * CStretchEngine::WeightTable::GetPixelWeight ( int pixel) const

Definition at line 168 of file cstretchengine.cpp.


The documentation for this class was generated from the following files: