Home
last modified time | relevance | path

Searched refs:referenceSurface (Results 1 – 4 of 4) sorted by relevance

/AliOS-Things-master/components/SDL2/src/test/
A DSDL_test_compare.c39 int SDLTest_CompareSurfaces(SDL_Surface *surface, SDL_Surface *referenceSurface, int allowable_erro… in SDLTest_CompareSurfaces() argument
53 if (surface == NULL || referenceSurface == NULL) { in SDLTest_CompareSurfaces()
58 if ((surface->w != referenceSurface->w) || (surface->h != referenceSurface->h)) { in SDLTest_CompareSurfaces()
68 SDL_LockSurface( referenceSurface ); in SDLTest_CompareSurfaces()
72 bpp_reference = referenceSurface->format->BytesPerPixel; in SDLTest_CompareSurfaces()
77 … p_reference = (Uint8 *)referenceSurface->pixels + j * referenceSurface->pitch + i * bpp_reference; in SDLTest_CompareSurfaces()
80 SDL_GetRGBA(*(Uint32*)p_reference, referenceSurface->format, &Rd, &Gd, &Bd, &Ad); in SDLTest_CompareSurfaces()
100 SDL_UnlockSurface( referenceSurface ); in SDLTest_CompareSurfaces()
110 SDL_SaveBMP(referenceSurface, referenceFilename); in SDLTest_CompareSurfaces()
/AliOS-Things-master/components/SDL2/test/
A Dtestautomation_render.c199 SDL_FreeSurface(referenceSurface); in render_testPrimitives()
200 referenceSurface = NULL; in render_testPrimitives()
347 referenceSurface = NULL; in render_testPrimitivesBlend()
417 referenceSurface = NULL; in render_testBlit()
491 referenceSurface = NULL; in render_testBlitColor()
568 referenceSurface = NULL; in render_testBlitAlpha()
681 referenceSurface = NULL; in render_testBlitBlend()
691 referenceSurface = NULL; in render_testBlitBlend()
701 referenceSurface = NULL; in render_testBlitBlend()
711 referenceSurface = NULL; in render_testBlitBlend()
[all …]
A Dtestautomation_surface.c27 static SDL_Surface *referenceSurface = NULL; variable
57 referenceSurface = SDLTest_ImageBlit(); /* For size info */ in _surfaceSetUp()
58 …testSurface = SDL_CreateRGBSurface(SDL_SWSURFACE, referenceSurface->w, referenceSurface->h, 32, rm… in _surfaceSetUp()
73 SDL_FreeSurface(referenceSurface); in _surfaceTearDown()
74 referenceSurface = NULL; in _surfaceTearDown()
/AliOS-Things-master/components/SDL2/include/
A DSDL_test_compare.h58 int SDLTest_CompareSurfaces(SDL_Surface *surface, SDL_Surface *referenceSurface, int allowable_erro…

Completed in 22 milliseconds