SDL
2.0
|
Go to the source code of this file.
Functions | |
int | pixels_allocFreeFormat (void *arg) |
Call to SDL_AllocFormat and SDL_FreeFormat. More... | |
int | pixels_getPixelFormatName (void *arg) |
Call to SDL_GetPixelFormatName. More... | |
int | pixels_allocFreePalette (void *arg) |
Call to SDL_AllocPalette and SDL_FreePalette. More... | |
int | pixels_calcGammaRamp (void *arg) |
Call to SDL_CalculateGammaRamp. More... | |
Variables | |
const int | _numRGBPixelFormats = 30 |
Uint32 | _RGBPixelFormats [] |
char * | _RGBPixelFormatsVerbose [] |
const int | _numNonRGBPixelFormats = 7 |
Uint32 | _nonRGBPixelFormats [] |
char * | _nonRGBPixelFormatsVerbose [] |
const int | _numInvalidPixelFormats = 2 |
Uint32 | _invalidPixelFormats [] |
char * | _invalidPixelFormatsVerbose [] |
static const SDLTest_TestCaseReference | pixelsTest1 |
static const SDLTest_TestCaseReference | pixelsTest2 |
static const SDLTest_TestCaseReference | pixelsTest3 |
static const SDLTest_TestCaseReference | pixelsTest4 |
static const SDLTest_TestCaseReference * | pixelsTests [] |
SDLTest_TestSuiteReference | pixelsTestSuite |
int pixels_allocFreeFormat | ( | void * | arg | ) |
Call to SDL_AllocFormat and SDL_FreeFormat.
Definition at line 126 of file testautomation_pixels.c.
References _invalidPixelFormats, _nonRGBPixelFormats, _nonRGBPixelFormatsVerbose, _numInvalidPixelFormats, _numNonRGBPixelFormats, _numRGBPixelFormats, _RGBPixelFormats, _RGBPixelFormatsVerbose, SDL_PixelFormat::Amask, SDL_PixelFormat::BitsPerPixel, SDL_PixelFormat::Bmask, SDL_PixelFormat::BytesPerPixel, SDL_PixelFormat::format, SDL_PixelFormat::Gmask, i, NULL, SDL_PixelFormat::palette, SDL_PixelFormat::Rmask, SDL_AllocFormat, SDL_ClearError, SDL_FreeFormat, SDL_GetError, SDL_strcmp, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_Log(), and TEST_COMPLETED.
int pixels_allocFreePalette | ( | void * | arg | ) |
Call to SDL_AllocPalette and SDL_FreePalette.
Definition at line 317 of file testautomation_pixels.c.
References SDL_Color::b, SDL_Palette::colors, SDL_Color::g, i, SDL_Palette::ncolors, NULL, SDL_Color::r, SDL_AllocPalette, SDL_ClearError, SDL_FreePalette, SDL_GetError, SDL_strcmp, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomIntegerInRange(), and TEST_COMPLETED.
int pixels_calcGammaRamp | ( | void * | arg | ) |
Call to SDL_CalculateGammaRamp.
Definition at line 406 of file testautomation_pixels.c.
References i, NULL, SDL_CalculateGammaRamp, SDL_ClearError, SDL_free, SDL_GetError, SDL_malloc, SDL_strcmp, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomIntegerInRange(), SDLTest_RandomUnitFloat(), TEST_ABORTED, and TEST_COMPLETED.
int pixels_getPixelFormatName | ( | void * | arg | ) |
Call to SDL_GetPixelFormatName.
Definition at line 232 of file testautomation_pixels.c.
References _invalidPixelFormats, _invalidPixelFormatsVerbose, _nonRGBPixelFormats, _nonRGBPixelFormatsVerbose, _numInvalidPixelFormats, _numNonRGBPixelFormats, _numRGBPixelFormats, _RGBPixelFormats, _RGBPixelFormatsVerbose, i, NULL, SDL_ClearError, SDL_GetError, SDL_GetPixelFormatName, SDL_strcmp, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_Log(), and TEST_COMPLETED.
Uint32 _invalidPixelFormats[] |
Definition at line 106 of file testautomation_pixels.c.
Referenced by pixels_allocFreeFormat(), and pixels_getPixelFormatName().
char* _invalidPixelFormatsVerbose[] |
Definition at line 111 of file testautomation_pixels.c.
Referenced by pixels_getPixelFormatName().
Uint32 _nonRGBPixelFormats[] |
Definition at line 83 of file testautomation_pixels.c.
Referenced by pixels_allocFreeFormat(), and pixels_getPixelFormatName().
char* _nonRGBPixelFormatsVerbose[] |
Definition at line 93 of file testautomation_pixels.c.
Referenced by pixels_allocFreeFormat(), and pixels_getPixelFormatName().
const int _numInvalidPixelFormats = 2 |
Definition at line 105 of file testautomation_pixels.c.
Referenced by pixels_allocFreeFormat(), and pixels_getPixelFormatName().
const int _numNonRGBPixelFormats = 7 |
Definition at line 82 of file testautomation_pixels.c.
Referenced by pixels_allocFreeFormat(), and pixels_getPixelFormatName().
const int _numRGBPixelFormats = 30 |
Pixels test suite
Definition at line 13 of file testautomation_pixels.c.
Referenced by pixels_allocFreeFormat(), and pixels_getPixelFormatName().
Uint32 _RGBPixelFormats[] |
Definition at line 14 of file testautomation_pixels.c.
Referenced by pixels_allocFreeFormat(), and pixels_getPixelFormatName().
char* _RGBPixelFormatsVerbose[] |
Definition at line 47 of file testautomation_pixels.c.
Referenced by pixels_allocFreeFormat(), and pixels_getPixelFormatName().
|
static |
Definition at line 506 of file testautomation_pixels.c.
|
static |
Definition at line 509 of file testautomation_pixels.c.
|
static |
Definition at line 512 of file testautomation_pixels.c.
|
static |
Definition at line 515 of file testautomation_pixels.c.
|
static |
Definition at line 519 of file testautomation_pixels.c.
SDLTest_TestSuiteReference pixelsTestSuite |
Definition at line 524 of file testautomation_pixels.c.