|
| EdgeScaler (const Graphics::PixelFormat &format) |
|
uint | increaseFactor () override |
|
uint | decreaseFactor () override |
|
| SourceScaler (const Graphics::PixelFormat &format) |
|
virtual void | setSource (const byte *src, uint pitch, int width, int height, int padding) final |
|
virtual void | enableSource (bool enable) final |
|
virtual uint | setFactor (uint factor) final |
|
| Scaler (const Graphics::PixelFormat &format) |
|
void | scale (const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height, int x, int y) |
|
virtual uint | getFactor () const |
|
|
virtual void | internScale (const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, const uint8 *oldSrcPtr, uint32 oldSrcPitch, int width, int height, const uint8 *buffer, uint32 bufferPitch) override |
|
virtual void | scaleIntern (const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height, int x, int y) final |
|
◆ increaseFactor()
uint EdgeScaler::increaseFactor |
( |
| ) |
|
|
overridevirtual |
Increase the factor of scaling.
- Returns
- The new factor
Implements Scaler.
◆ decreaseFactor()
uint EdgeScaler::decreaseFactor |
( |
| ) |
|
|
overridevirtual |
Decrease the factor of scaling.
- Returns
- The new factor
Implements Scaler.
◆ internScale()
virtual void EdgeScaler::internScale |
( |
const uint8 * |
srcPtr, |
|
|
uint32 |
srcPitch, |
|
|
uint8 * |
dstPtr, |
|
|
uint32 |
dstPitch, |
|
|
const uint8 * |
oldSrcPtr, |
|
|
uint32 |
oldSrcPitch, |
|
|
int |
width, |
|
|
int |
height, |
|
|
const uint8 * |
buffer, |
|
|
uint32 |
bufferPitch |
|
) |
| |
|
overrideprotectedvirtual |
Scalers must implement this function. It will be called by oldSrcScale. If by comparing the src and oldsrc images it is discovered that no change is necessary, do not write a pixel.
If oldSrcPtr is NULL, do not read from it. Scale every pixel.
Implements SourceScaler.
The documentation for this class was generated from the following file: