Murl Engine Lua Addon API  Version 1.0 beta
Murl.IVideoScaler

The video scaler interface.


Table members

Methods


Scale(srcData, dstData, srcPixelSizeX, srcPixelSizeY, srcBytePitch, dstPixelSizeX, dstPixelSizeY, dstBytePitch, pixelFormat, gamma)

Scale a source image to a destination image.

Boolean Scale(Murl.ConstData srcData, Murl.MutableData dstData, Integer srcPixelSizeX, Integer srcPixelSizeY, Integer srcBytePitch, Integer dstPixelSizeX, Integer dstPixelSizeY, Integer dstBytePitch, Murl.IEnums.PixelFormat pixelFormat, Number gamma)

Parameters
srcDataThe source image data.
dstDataThe destination image data.
srcPixelSizeXThe number of horizontal source pixels.
srcPixelSizeYThe number of vertical source pixels.
srcBytePitchThe number of source bytes per line.
dstPixelSizeXThe number of horizontal destination pixels.
dstPixelSizeYThe number of vertical destination pixels.
dstBytePitchThe number of destination bytes per line.
pixelFormatThe pixel format.
gammaThe gamma value. Specify 1.0 to disable gamma correct scaling.
Returns
Boolean true if successful.