Graphics blitting operations.
Classes | |
class | Graphics::BlendBlit |
Functions | |
void | Graphics::copyBlit (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const uint bytesPerPixel) |
bool | Graphics::keyBlit (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const uint bytesPerPixel, const uint32 key) |
bool | Graphics::maskBlit (byte *dst, const byte *src, const byte *mask, const uint dstPitch, const uint srcPitch, const uint maskPitch, const uint w, const uint h, const uint bytesPerPixel) |
bool | Graphics::crossBlit (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const Graphics::PixelFormat &dstFmt, const Graphics::PixelFormat &srcFmt) |
bool | Graphics::crossKeyBlit (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const Graphics::PixelFormat &dstFmt, const Graphics::PixelFormat &srcFmt, const uint32 key) |
bool | Graphics::crossMaskBlit (byte *dst, const byte *src, const byte *mask, const uint dstPitch, const uint srcPitch, const uint maskPitch, const uint w, const uint h, const Graphics::PixelFormat &dstFmt, const Graphics::PixelFormat &srcFmt) |
bool | Graphics::crossBlitMap (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const uint bytesPerPixel, const uint32 *map) |
bool | Graphics::crossKeyBlitMap (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const uint bytesPerPixel, const uint32 *map, const uint32 key) |
bool | Graphics::crossMaskBlitMap (byte *dst, const byte *src, const byte *mask, const uint dstPitch, const uint srcPitch, const uint maskPitch, const uint w, const uint h, const uint bytesPerPixel, const uint32 *map) |
bool | Graphics::scaleBlit (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint dstW, const uint dstH, const uint srcW, const uint srcH, const Graphics::PixelFormat &fmt, const byte flip=0) |
bool | Graphics::scaleBlitBilinear (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint dstW, const uint dstH, const uint srcW, const uint srcH, const Graphics::PixelFormat &fmt, const byte flip=0) |
bool | Graphics::rotoscaleBlit (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint dstW, const uint dstH, const uint srcW, const uint srcH, const Graphics::PixelFormat &fmt, const TransformStruct &transform, const Common::Point &newHotspot) |
bool | Graphics::rotoscaleBlitBilinear (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint dstW, const uint dstH, const uint srcW, const uint srcH, const Graphics::PixelFormat &fmt, const TransformStruct &transform, const Common::Point &newHotspot) |
bool | Graphics::applyColorKey (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const Graphics::PixelFormat &format, const bool overwriteAlpha, const uint8 rKey, const uint8 gKey, const uint8 bKey, const uint8 rNew, const uint8 gNew, const uint8 bNew) |
bool | Graphics::setAlpha (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const Graphics::PixelFormat &format, const bool skipTransparent, const uint8 alpha) |
void Graphics::copyBlit | ( | byte * | dst, |
const byte * | src, | ||
const uint | dstPitch, | ||
const uint | srcPitch, | ||
const uint | w, | ||
const uint | h, | ||
const uint | bytesPerPixel | ||
) |
Blits a rectangle.
dst | the buffer which will receive the converted graphics data |
src | the buffer containing the original graphics data |
dstPitch | width in bytes of one full line of the dest buffer |
srcPitch | width in bytes of one full line of the source buffer |
w | the width of the graphics data |
h | the height of the graphics data |
bytesPerPixel | the number of bytes per pixel |
bool Graphics::keyBlit | ( | byte * | dst, |
const byte * | src, | ||
const uint | dstPitch, | ||
const uint | srcPitch, | ||
const uint | w, | ||
const uint | h, | ||
const uint | bytesPerPixel, | ||
const uint32 | key | ||
) |
Blits a rectangle with a transparent color key.
dst | the buffer which will receive the converted graphics data |
src | the buffer containing the original graphics data |
dstPitch | width in bytes of one full line of the dest buffer |
srcPitch | width in bytes of one full line of the source buffer |
w | the width of the graphics data |
h | the height of the graphics data |
bytesPerPixel | the number of bytes per pixel |
key | the transparent color key |
bool Graphics::maskBlit | ( | byte * | dst, |
const byte * | src, | ||
const byte * | mask, | ||
const uint | dstPitch, | ||
const uint | srcPitch, | ||
const uint | maskPitch, | ||
const uint | w, | ||
const uint | h, | ||
const uint | bytesPerPixel | ||
) |
Blits a rectangle with a transparent color mask.
A mask is a separate CLUT8 surface where for each pixel in the mask, 0 means the corresponding pixel in the source is transparent, while a non-zero value means that the corresponding pixel is opaque.
dst | the buffer which will receive the converted graphics data |
src | the buffer containing the original graphics data |
mask | the buffer containing the mask |
dstPitch | width in bytes of one full line of the dest buffer |
srcPitch | width in bytes of one full line of the source buffer |
maskPitch | width in bytes of one full line of the mask buffer |
w | the width of the graphics data |
h | the height of the graphics data |
bytesPerPixel | the number of bytes per pixel |
bool Graphics::crossBlit | ( | byte * | dst, |
const byte * | src, | ||
const uint | dstPitch, | ||
const uint | srcPitch, | ||
const uint | w, | ||
const uint | h, | ||
const Graphics::PixelFormat & | dstFmt, | ||
const Graphics::PixelFormat & | srcFmt | ||
) |
Blits a rectangle from one graphical format to another.
dst | the buffer which will receive the converted graphics data |
src | the buffer containing the original graphics data |
dstPitch | width in bytes of one full line of the dest buffer |
srcPitch | width in bytes of one full line of the source buffer |
w | the width of the graphics data |
h | the height of the graphics data |
dstFmt | the desired pixel format |
srcFmt | the original pixel format |
bool Graphics::crossKeyBlit | ( | byte * | dst, |
const byte * | src, | ||
const uint | dstPitch, | ||
const uint | srcPitch, | ||
const uint | w, | ||
const uint | h, | ||
const Graphics::PixelFormat & | dstFmt, | ||
const Graphics::PixelFormat & | srcFmt, | ||
const uint32 | key | ||
) |
Blits a rectangle from one graphical format to another with a transparent color key.
dst | the buffer which will receive the converted graphics data |
src | the buffer containing the original graphics data |
dstPitch | width in bytes of one full line of the dest buffer |
srcPitch | width in bytes of one full line of the source buffer |
w | the width of the graphics data |
h | the height of the graphics data |
dstFmt | the desired pixel format |
srcFmt | the original pixel format |
key | the transparent color key in the original pixel format |
bool Graphics::crossMaskBlit | ( | byte * | dst, |
const byte * | src, | ||
const byte * | mask, | ||
const uint | dstPitch, | ||
const uint | srcPitch, | ||
const uint | maskPitch, | ||
const uint | w, | ||
const uint | h, | ||
const Graphics::PixelFormat & | dstFmt, | ||
const Graphics::PixelFormat & | srcFmt | ||
) |
Blits a rectangle from one graphical format to another with a transparent color mask.
A mask is a separate CLUT8 surface where for each pixel in the mask, 0 means the corresponding pixel in the source is transparent, while a non-zero value means that the corresponding pixel is opaque.
dst | the buffer which will receive the converted graphics data |
src | the buffer containing the original graphics data |
mask | the buffer containing the mask |
dstPitch | width in bytes of one full line of the dest buffer |
srcPitch | width in bytes of one full line of the source buffer |
maskPitch | width in bytes of one full line of the mask buffer |
w | the width of the graphics data |
h | the height of the graphics data |
dstFmt | the desired pixel format |
srcFmt | the original pixel format |