ScummVM API documentation
EdgeScaler Class Reference
Inheritance diagram for EdgeScaler:
SourceScaler Scaler

Public Member Functions

 EdgeScaler (const Graphics::PixelFormat &format)
 
uint increaseFactor () override
 
uint decreaseFactor () override
 
- Public Member Functions inherited from SourceScaler
 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
 
- Public Member Functions inherited from Scaler
 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
 

Protected Member Functions

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
 
- Protected Member Functions inherited from SourceScaler
virtual void scaleIntern (const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height, int x, int y) final
 

Additional Inherited Members

- Protected Attributes inherited from Scaler
uint _factor
 
Graphics::PixelFormat _format
 

Member Function Documentation

◆ 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: