//------------------------------------------------------------------------------
// Sample of using:
//
// ConvertFromA8R8G8B8(sourceInA8R8G8B8, 256, 256,
// UlFormatData("X1R5G5B5"), destinationBuffer, destinationPitch);
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// There is one basic type of format: A8R8G8B8.
// UlFormatData is a description how basic format must be
// converted into desired format.
//
// During conversion on each color will be done & operation with its bitmask,
// and then right shift.
// After all there will binary 'or' along each color.
typedefunsignedlong ulong;
typedefunsignedshort ushort;
typedefunsignedchar uchar;