Lines Matching refs:pixels
938 * @brief Compares screen pixels with image pixels. Helper function.
952 Uint8 *pixels;
955 /* Read pixels. */
956 pixels = (Uint8 *)SDL_malloc(4*TESTRENDER_SCREEN_W*TESTRENDER_SCREEN_H);
957 SDLTest_AssertCheck(pixels != NULL, "Validate allocated temp pixel buffer");
958 if (pixels == NULL) return;
965 result = SDL_RenderReadPixels(renderer, &rect, RENDER_COMPARE_FORMAT, pixels, 80*4 );
969 testSurface = SDL_CreateRGBSurfaceFrom(pixels, TESTRENDER_SCREEN_W, TESTRENDER_SCREEN_H, 32, TESTRENDER_SCREEN_W*4,
978 SDL_free(pixels);