int hw_RawScale(APTR src, APTR dst, struct hwRawScaleCtrl *ctrl, ULONG
flags, struct hwTagList *tags);
hw_RawScale() in lots of
different contexts. If you want to use hw_RawScale() on Hollywood bitmaps, you need
to lock those bitmaps first using hw_LockBitMap() and then
pass the raw pixel buffer pointer obtained by hw_LockBitMap()
to hw_RawScale().
You have to pass source and destination pixel buffer pointers as well as a pointer
to a struct hwRawScaleCtrl to this function. struct hwRawScaleCtrl
looks like this:
struct hwRawScaleCtrl
{
int SrcX; // [in]
int SrcY; // [in]
int DstX; // [in]
int DstY; // [in]
int SrcWidth; // [in]
int SrcHeight; // [in]
int DstWidth; // [in]
int DstHeight; // [in]
int PixFmt; // [in]
int SrcModulo; // [in]
int DstModulo; // [in]
};
|
Here's an explanation of the individual structure members:
SrcX:
SrcY:
DstX:
DstY:
SrcWidth:
SrcHeight:
DstWidth:
DstHeight:
PixFmt:
SrcModulo:
DstModulo:
The flags parameter can be used to specify further parameters for the scaling
operation. The following flags are currently supported:
HWRSCFLAGS_INTERPOLATE:Note that this function does not do any clipping. You must make sure that the destination raw pixel buffer is large enough.
struct hwRawScaleCtrl containing the scale parametersNULL