Look at TImageFormatInfo.GetPixelsSize for details.
TFormatGetPixelsSizeFunc = function (Format: TImageFormat; Width, Height: LongInt): LongInt;
ImagingTypes (at line 360)