SDL
2.0
|
Go to the source code of this file.
Macros | |
#define | SDL_BYTEORDER SDL_LIL_ENDIAN |
The two types of endianness | |
#define | SDL_LIL_ENDIAN 1234 |
#define | SDL_BIG_ENDIAN 4321 |
Swap to native | |
Byteswap item from the specified endianness to the native endianness. | |
#define | SDL_SwapLE16(X) (X) |
#define | SDL_SwapLE32(X) (X) |
#define | SDL_SwapLE64(X) (X) |
#define | SDL_SwapFloatLE(X) (X) |
#define | SDL_SwapBE16(X) SDL_Swap16(X) |
#define | SDL_SwapBE32(X) SDL_Swap32(X) |
#define | SDL_SwapBE64(X) SDL_Swap64(X) |
#define | SDL_SwapFloatBE(X) SDL_SwapFloat(X) |
Functions | |
SDL_FORCE_INLINE Uint16 | SDL_Swap16 (Uint16 x) |
SDL_FORCE_INLINE Uint32 | SDL_Swap32 (Uint32 x) |
SDL_FORCE_INLINE Uint64 | SDL_Swap64 (Uint64 x) |
SDL_FORCE_INLINE float | SDL_SwapFloat (float x) |
Functions for reading and writing endian-specific values
Definition in file SDL_endian.h.
#define SDL_BIG_ENDIAN 4321 |
Definition at line 38 of file SDL_endian.h.
Referenced by platform_testEndianessAndSwap(), SDLTest_ImageBlit(), SDLTest_ImageBlitAlpha(), SDLTest_ImageBlitBlend(), SDLTest_ImageBlitBlendAdd(), SDLTest_ImageBlitBlendAll(), SDLTest_ImageBlitBlendMod(), SDLTest_ImageBlitBlendNone(), SDLTest_ImageBlitColor(), SDLTest_ImageFace(), SDLTest_ImagePrimitives(), SDLTest_ImagePrimitivesBlend(), and TestEndian().
#define SDL_BYTEORDER SDL_LIL_ENDIAN |
Definition at line 53 of file SDL_endian.h.
#define SDL_LIL_ENDIAN 1234 |
Definition at line 37 of file SDL_endian.h.
Referenced by platform_testEndianessAndSwap(), SDL_BuildAudioTypeCVTFromFloat(), SDL_BuildAudioTypeCVTToFloat(), SDL_SaveBMP_RW(), SDLTest_ScreenShot(), and TestEndian().
#define SDL_SwapBE16 | ( | X | ) | SDL_Swap16(X) |
Definition at line 236 of file SDL_endian.h.
Referenced by SDL_ReadBE16(), and SDL_WriteBE16().
#define SDL_SwapBE32 | ( | X | ) | SDL_Swap32(X) |
Definition at line 237 of file SDL_endian.h.
Referenced by SDL_MixAudioFormat(), SDL_ReadBE32(), and SDL_WriteBE32().
#define SDL_SwapBE64 | ( | X | ) | SDL_Swap64(X) |
Definition at line 238 of file SDL_endian.h.
Referenced by SDL_ReadBE64(), and SDL_WriteBE64().
#define SDL_SwapFloatBE | ( | X | ) | SDL_SwapFloat(X) |
Definition at line 239 of file SDL_endian.h.
Referenced by SDL_MixAudioFormat().
#define SDL_SwapFloatLE | ( | X | ) | (X) |
Definition at line 235 of file SDL_endian.h.
Referenced by SaveTemplate(), SDL_LoadDollarTemplates(), and SDL_MixAudioFormat().
#define SDL_SwapLE16 | ( | X | ) | (X) |
Definition at line 232 of file SDL_endian.h.
Referenced by InitIMA_ADPCM(), InitMS_ADPCM(), SDL_LoadWAV_RW(), SDL_ReadLE16(), and SDL_WriteLE16().
#define SDL_SwapLE32 | ( | X | ) | (X) |
Definition at line 233 of file SDL_endian.h.
Referenced by InitIMA_ADPCM(), InitMS_ADPCM(), SDL_LoadWAV_RW(), SDL_MixAudioFormat(), SDL_ReadLE32(), and SDL_WriteLE32().
#define SDL_SwapLE64 | ( | X | ) | (X) |
Definition at line 234 of file SDL_endian.h.
Referenced by SDL_ReadLE64(), and SDL_WriteLE64().
SDL_FORCE_INLINE Uint16 SDL_Swap16 | ( | Uint16 | x | ) |
Definition at line 107 of file SDL_endian.h.
References SDL_FORCE_INLINE, SDL_static_cast, and SDL_Swap32().
Referenced by platform_testEndianessAndSwap(), SDL_ConvertPixels_SwapNV(), SDL_LoadBMP_RW(), and TestEndian().
SDL_FORCE_INLINE Uint32 SDL_Swap32 | ( | Uint32 | x | ) |
Definition at line 162 of file SDL_endian.h.
References SDL_FORCE_INLINE, SDL_static_cast, and SDL_Swap64().
Referenced by platform_testEndianessAndSwap(), SDL_LoadBMP_RW(), SDL_Swap16(), SDL_Swap64(), SDL_SwapFloat(), and TestEndian().
SDL_FORCE_INLINE Uint64 SDL_Swap64 | ( | Uint64 | x | ) |
Definition at line 196 of file SDL_endian.h.
References SDL_FORCE_INLINE, SDL_static_cast, and SDL_Swap32().
Referenced by platform_testEndianessAndSwap(), SDL_Swap32(), and TestEndian().
SDL_FORCE_INLINE float SDL_SwapFloat | ( | float | x | ) |