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

`#include "il_internal.h"`
`#include "il_manip.h"`
`#include <limits.h>`

## Defines

#define | CHECK_ALLOC()

## Functions

void *ILAPIENTRY | iSwitchTypes (ILuint SizeOfData, ILenum SrcType, ILenum DestType, void *Buffer)
ILushort ILAPIENTRY | ilFloatToHalf (ILuint i)
ILuint ILAPIENTRY | ilHalfToFloat (ILushort y)
ILfloat | ilFloatToHalfOverflow ()
ILAPI void *ILAPIENTRY | ilConvertBuffer (ILuint SizeOfData, ILenum SrcFormat, ILenum DestFormat, ILenum SrcType, ILenum DestType, void *Buffer)

## Define Documentation

#define CHECK_ALLOC | ( |  | ) |

Value:

    if (NewData == NULL) { \
                                                            if (Data != Buffer) \
                                                                    ifree(Data); \
                                                            return IL_FALSE; \
                                                    }

Referenced by ilConvertBuffer().

## Function Documentation

ILAPI void* ILAPIENTRY ilConvertBuffer | ( | ILuint | SizeOfData,
|  | ILenum | SrcFormat,
|  | ILenum | DestFormat,
|  | ILenum | SrcType,
|  | ILenum | DestType,
|  | void * | Buffer |
| ) |  |  |

Referenced by Compress(), iConvertImage(), ilBlit(), ilCopyPixels(), and ilSetPixels().

ILushort ILAPIENTRY ilFloatToHalf | ( | ILuint | i | ) |

Referenced by iSwitchTypes().

ILfloat ilFloatToHalfOverflow | ( |  | ) |

Referenced by ilFloatToHalf().

ILuint ILAPIENTRY ilHalfToFloat | ( | ILushort | y | ) |

Referenced by iSwitchTypes().

void *ILAPIENTRY iSwitchTypes | ( | ILuint | SizeOfData,
|  | ILenum | SrcType,
|  | ILenum | DestType,
|  | void * | Buffer |
| ) |  |  |

Referenced by ilConvertBuffer().