Lines Matching refs:refImg

303 		tcu::Surface			refImg		(width, height);
351 for (int y = 0; y < refImg.getHeight(); y++)
353 for (int x = 0; x < refImg.getWidth(); x++)
355 const float xf = (float(x)+.5f) / float(refImg.getWidth());
356 const float yf = (float(refImg.getHeight()-y-1)+.5f) / float(refImg.getHeight());
362 refImg.setPixel(x, y, tcu::RGBA(color));
368 bool isOk = tcu::pixelThresholdCompare(log, "Result", "Image comparison result", refImg, testImg, threshold, tcu::COMPARE_LOG_RESULT);
399 tcu::Surface refImg (width, height);
446 for (int y = 0; y < refImg.getHeight(); y++)
448 for (int x = 0; x < refImg.getWidth(); x++)
450 const float xf = (float(x)+.5f) / float(refImg.getWidth());
451 const float yf = (float(refImg.getHeight()-y-1)+.5f) / float(refImg.getHeight());
457 refImg.setPixel(x, y, tcu::RGBA(color));
463 bool isOk = tcu::pixelThresholdCompare(log, "Result", "Image comparison result", refImg, testImg, threshold, tcu::COMPARE_LOG_RESULT);
495 tcu::Surface refImg (width, height);
555 tcu::clear(refImg.getAccess(), tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f));
575 if (de::inBounds(dx, 0, refImg.getWidth()) && de::inBounds(dy, 0, refImg.getHeight()))
576 refImg.setPixel(dx, dy, tcu::RGBA(color));
583 bool isOk = tcu::fuzzyCompare(log, "Result", "Image comparison result", refImg, testImg, threshold, tcu::COMPARE_LOG_RESULT);
616 tcu::Surface refImg (width, height);
683 for(int y = 0; y < refImg.getHeight() / 2; y++)
684 for(int x = 0; x < refImg.getWidth() / 2; x++)
685 refImg.setPixel(x, y, tcu::RGBA::green());
687 for(int y = 0; y < refImg.getHeight() / 2; y++)
688 for(int x = refImg.getWidth() / 2; x < refImg.getWidth(); x++)
689 refImg.setPixel(x, y, tcu::RGBA::blue());
691 for(int y = refImg.getHeight() / 2; y < refImg.getHeight(); y++)
692 for(int x = 0; x < refImg.getWidth() / 2; x++)
693 refImg.setPixel(x, y, tcu::RGBA::blue());
695 for(int y = refImg.getHeight() / 2; y < refImg.getHeight(); y++)
696 for(int x = refImg.getWidth() / 2; x < refImg.getWidth(); x++)
697 refImg.setPixel(x, y, tcu::RGBA::green());
702 bool isOk = tcu::pixelThresholdCompare(log, "Result", "Image comparison result", refImg, testImg, threshold, tcu::COMPARE_LOG_RESULT);
994 tcu::Surface refImg (viewportW, viewportH);
1016 tcu::clear(refImg.getAccess(), clearColor);
1036 renderReference(refImg.getAccess(), (int)m_positions.size(), &indices[0], &m_positions[0], &m_colors[0], subpixelBits);
1059 renderReference(refImg.getAccess(), (int)indices.size(), &indices[0], &mappedPos[0], &m_colors[0], subpixelBits);
1085 tcu::clear(refImg.getAccess(), clearColor);
1086 renderReference(refImg.getAccess(), (int)indices.size(), &indices[0], &mappedPos[0], &m_colors[0], subpixelBits);
1091 if (!tcu::fuzzyCompare(m_testCtx.getLog(), "Result", "Image comparison result", refImg, testImg, threshold, tcu::COMPARE_LOG_RESULT))