# E:/DevIL/src-IL/src/il_utility.c File Reference

`#include "il_internal.h"`

## Functions

ILAPI ILubyte ILAPIENTRY | ilGetBppFormat (ILenum Format)
ILAPI ILenum ILAPIENTRY | ilGetFormatBpp (ILubyte Bpp)
ILAPI ILubyte ILAPIENTRY | ilGetBpcType (ILenum Type)
ILAPI ILenum ILAPIENTRY | ilGetTypeBpc (ILubyte Bpc)
ILAPI ILubyte ILAPIENTRY | ilGetBppPal (ILenum PalType)
ILAPI ILenum ILAPIENTRY | ilGetPalBaseType (ILenum PalType)
ILAPI ILuint ILAPIENTRY | ilNextPower2 (ILuint n)
ILAPI void ILAPIENTRY | iMemSwap (ILubyte *s1, ILubyte *s2, const ILuint size)

## Function Documentation

ILAPI ILubyte ILAPIENTRY ilGetBpcType | ( | ILenum | Type | ) |

Referenced by iConvertImage(), ilConvertBuffer(), ilConvertImage(), ilCopyPixels(), ilGetAlpha(), ilInitImage(), ilSetPixels(), and iSwitchTypes().

ILAPI ILubyte ILAPIENTRY ilGetBppFormat | ( | ILenum | Format | ) |

Referenced by iConvertImage(), iConvertPalette(), ilApplyPal(), ilConvertImage(), ilCopyPixels(), and ilSetPixels().

ILAPI ILubyte ILAPIENTRY ilGetBppPal | ( | ILenum | PalType | ) |

Referenced by iConvertPal(), iConvertPalette(), iGetIntegervImage(), ilApplyPal(), ilSaveJascPal(), ilSwapColours(), iluEqualize(), and iluSwapColours().

ILAPI ILenum ILAPIENTRY ilGetFormatBpp | ( | ILubyte | Bpp | ) |

Referenced by AllocImage(), ilNewImage(), and iLoadPnmInternal().

ILAPI ILenum ILAPIENTRY ilGetPalBaseType | ( | ILenum | PalType | ) |

Referenced by iluBlurAvg(), iluBlurGaussian(), iluConvolution(), iluEdgeDetectE(), iluEdgeDetectP(), iluEdgeDetectS(), iluEmboss(), iluPixelize(), iluRotate(), and iluScale_().

ILAPI ILenum ILAPIENTRY ilGetTypeBpc | ( | ILubyte | Bpc | ) |

Referenced by ilNewImage(), iLoadRawInternal(), and readpng_get_image().

ILAPI ILuint ILAPIENTRY ilNextPower2 | ( | ILuint | n | ) |

Referenced by iCheckVtf(), iLoadTplInternal(), iluBuild2DMipmaps(), and iluBuild3DMipmaps().

ILAPI void ILAPIENTRY iMemSwap | ( | ILubyte * | s1,
|  | ILubyte * | s2,
|  | const ILuint | size |
| ) |  |  |

Referenced by iFlipBuffer().