#include "KeosPrerequisites.h"#include "KeosLogger.h"#include "KeosConvertPixel.inl"Go to the source code of this file.
Namespaces | |
| namespace | Keos |
Defines | |
| #define | CONVERSIONS_FOR(Fmt) |
Functions | |
| uint | Keos::GetBytesPerPixel (TPixelFormat Format) |
| Return the number of bytes per pixel / pixel format. | |
| String | Keos::FormatToString (TPixelFormat Format) |
| Return the name of a pixel format. | |
| bool | Keos::FormatCompressed (TPixelFormat Format) |
| Test if a format is compressed. | |
| int | Keos::GetNbMipLevels (int nWidth, int nHeight) |
| Calculate the number of mipmapping levels for a dimension. | |
| template<TPixelFormat SrcFmt, TPixelFormat DestFmt> | |
| void | Keos::ConvertPixel (const uchar *pSrc, uchar *pDest) |
| Convert a pixel from a format to another. | |
| template<> | |
| void | Keos::ConvertPixel< PXF_L8, PXF_L8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_L8, PXF_A8L8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_L8, PXF_A1R5G5B5 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_L8, PXF_A4R4G4B4 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_L8, PXF_R8G8B8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_L8, PXF_A8R8G8B8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A8L8, PXF_L8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A8L8, PXF_A8L8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A8L8, PXF_A1R5G5B5 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A8L8, PXF_A4R4G4B4 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A8L8, PXF_R8G8B8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A8L8, PXF_A8R8G8B8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A1R5G5B5, PXF_L8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A1R5G5B5, PXF_A8L8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A1R5G5B5, PXF_A1R5G5B5 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A1R5G5B5, PXF_A4R4G4B4 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A1R5G5B5, PXF_R8G8B8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A1R5G5B5, PXF_A8R8G8B8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A4R4G4B4, PXF_L8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A4R4G4B4, PXF_A8L8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A4R4G4B4, PXF_A1R5G5B5 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A4R4G4B4, PXF_A4R4G4B4 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A4R4G4B4, PXF_R8G8B8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A4R4G4B4, PXF_A8R8G8B8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_R8G8B8, PXF_L8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_R8G8B8, PXF_A8L8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_R8G8B8, PXF_A1R5G5B5 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_R8G8B8, PXF_A4R4G4B4 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_R8G8B8, PXF_R8G8B8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_R8G8B8, PXF_A8R8G8B8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A8R8G8B8, PXF_L8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A8R8G8B8, PXF_A8L8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A8R8G8B8, PXF_A1R5G5B5 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A8R8G8B8, PXF_A4R4G4B4 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A8R8G8B8, PXF_R8G8B8 > (const uchar *pSrc, uchar *pDest) |
| template<> | |
| void | Keos::ConvertPixel< PXF_A8R8G8B8, PXF_A8R8G8B8 > (const uchar *pSrc, uchar *pDest) |
| void | Keos::ConvertPixel (TPixelFormat SrcFmt, const uchar *pSrc, TPixelFormat DestFmt, uchar *pDest) |
| Convert a pixel from a format to another. | |
| #define CONVERSIONS_FOR | ( | Fmt | ) |
Value:
case Fmt : \ { \ switch (DestFmt) \ { \ case PXF_L8 : ConvertPixel<Fmt, PXF_L8>(pSrc, pDest); break; \ case PXF_A8L8 : ConvertPixel<Fmt, PXF_A8L8>(pSrc, pDest); break; \ case PXF_A1R5G5B5 : ConvertPixel<Fmt, PXF_A1R5G5B5>(pSrc, pDest); break; \ case PXF_A4R4G4B4 : ConvertPixel<Fmt, PXF_A4R4G4B4>(pSrc, pDest); break; \ case PXF_R8G8B8 : ConvertPixel<Fmt, PXF_R8G8B8>(pSrc, pDest); break; \ case PXF_A8R8G8B8 : ConvertPixel<Fmt, PXF_A8R8G8B8>(pSrc, pDest); break; \ case PXF_DXTC1 : ConvertPixel<Fmt, PXF_DXTC1>(pSrc, pDest); break; \ case PXF_DXTC3 : ConvertPixel<Fmt, PXF_DXTC3>(pSrc, pDest); break; \ case PXF_DXTC5 : ConvertPixel<Fmt, PXF_DXTC5>(pSrc, pDest); break; \ } \ break; \ }
1.5.1-p1