Home
last modified time | relevance | path

Searched refs:refImg (Results 1 – 8 of 8) sorted by relevance

/external/deqp/modules/gles2/functional/
Des2fShaderBuiltinVarTests.cpp288 tcu::Surface refImg (width, height); in iterate() local
333 for (int y = 0; y < refImg.getHeight(); y++) in iterate()
335 for (int x = 0; x < refImg.getWidth(); x++) in iterate()
337 const float xf = (float(x)+.5f) / float(refImg.getWidth()); in iterate()
338 const float yf = (float(refImg.getHeight()-y-1)+.5f) / float(refImg.getHeight()); in iterate()
344 refImg.setPixel(x, y, tcu::RGBA(color)); in iterate()
350 …bool isOk = tcu::pixelThresholdCompare(log, "Result", "Image comparison result", refImg, testImg, … in iterate()
381 tcu::Surface refImg (width, height); in iterate() local
425 for (int y = 0; y < refImg.getHeight(); y++) in iterate()
427 for (int x = 0; x < refImg.getWidth(); x++) in iterate()
[all …]
/external/deqp/modules/internal/
DditImageCompareTests.cpp55 …FuzzyComparisonMetricCase (tcu::TestContext& testCtx, const char* name, const char* refImg, const … in FuzzyComparisonMetricCase() argument
57 , m_refImg (refImg) in FuzzyComparisonMetricCase()
66 tcu::TextureLevel refImg; in iterate() local
75 …tcu::ImageIO::loadImage(refImg, m_testCtx.getArchive(), de::FilePath::join(BASE_DIR, m_refImg).get… in iterate()
78 …errorMask.setStorage(refImg.getFormat(), refImg.getWidth(), refImg.getHeight(), refImg.getDepth()); in iterate()
82 result = tcu::fuzzyCompare(params, refImg, cmpImg, errorMask); in iterate()
86 m_testCtx.getLog() << TestLog::Image("RefImage", "Reference Image", refImg) in iterate()
114 …BilinearCompareCase (tcu::TestContext& testCtx, const char* name, const char* refImg, const char* … in BilinearCompareCase() argument
116 , m_refImg (refImg) in BilinearCompareCase()
125 tcu::TextureLevel refImg; in iterate() local
[all …]
/external/deqp/modules/gles3/functional/
Des3fShaderBuiltinVarTests.cpp303 tcu::Surface refImg (width, height); in iterate() local
351 for (int y = 0; y < refImg.getHeight(); y++) in iterate()
353 for (int x = 0; x < refImg.getWidth(); x++) in iterate()
355 const float xf = (float(x)+.5f) / float(refImg.getWidth()); in iterate()
356 const float yf = (float(refImg.getHeight()-y-1)+.5f) / float(refImg.getHeight()); in iterate()
362 refImg.setPixel(x, y, tcu::RGBA(color)); in iterate()
368 …bool isOk = tcu::pixelThresholdCompare(log, "Result", "Image comparison result", refImg, testImg, … in iterate()
399 tcu::Surface refImg (width, height); in iterate() local
446 for (int y = 0; y < refImg.getHeight(); y++) in iterate()
448 for (int x = 0; x < refImg.getWidth(); x++) in iterate()
[all …]
Des3fShaderMetamorphicTests.cpp77 …void checkNondet (const tcu::Surface& refImg, const std::string& vertexSrc, const std::string&…
159 void ShaderMetamorphicVariant::checkNondet (const tcu::Surface& refImg, const std::string& vertexSr… in checkNondet() argument
162 tcu::Surface img = tcu::Surface(refImg.getWidth(), refImg.getHeight()); in checkNondet()
165 …bool same = tcu::pixelThresholdCompare(log, "Result", "Image comparison result", img, refImg, tcu:… in checkNondet()
/external/skia/tests/
DPromiseImageTest.cpp143 sk_sp<SkImage> refImg(SkImage_Gpu::MakePromiseTexture(ctx->threadSafeProxy(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
159 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
169 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
170 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
177 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
181 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
182 refImg.reset(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
373 sk_sp<SkImage> refImg(SkImage_Gpu::MakePromiseTexture(dContext->threadSafeProxy(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
389 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
392 canvas->drawImage(refImg, 0, 0, SkSamplingOptions(), &paint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DImageTest.cpp856 sk_sp<SkImage> refImg = SkImage::MakeFromTexture( in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
867 GrBackendTexture readBackBackendTex = refImg->getBackendTexture(false, &readBackOrigin); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
880 refImg.reset(nullptr); // force a release of the image in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
913 sk_sp<SkImage> refImg(imageMaker(dContext)); in test_cross_context_image() local
914 refImg.reset(nullptr); // force a release of the image in test_cross_context_image()
928 sk_sp<SkImage> refImg(imageMaker(dContext)); in test_cross_context_image() local
930 canvas->drawImage(refImg, 0, 0); in test_cross_context_image()
933 refImg.reset(nullptr); // force a release of the image in test_cross_context_image()
938 sk_sp<SkImage> refImg(imageMaker(dContext)); in test_cross_context_image() local
940 canvas->drawImage(refImg, 0, 0); in test_cross_context_image()
[all …]
/external/skqp/tests/
DPromiseImageTest.cpp153 sk_sp<SkImage> refImg( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
174 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
208 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
209 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
228 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
243 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
246 refImg.reset(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
277 refImg.reset(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
309 sk_sp<SkImage> refImg( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
330 canvas->drawImage(refImg, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DImageTest.cpp839 sk_sp<SkImage> refImg( in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
845 GrBackendTexture readBackBackendTex = refImg->getBackendTexture(false, &readBackOrigin); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
858 refImg.reset(nullptr); // force a release of the image in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
893 sk_sp<SkImage> refImg(imageMaker(ctx)); in test_cross_context_image() local
894 refImg.reset(nullptr); // force a release of the image in test_cross_context_image()
908 sk_sp<SkImage> refImg(imageMaker(ctx)); in test_cross_context_image() local
910 canvas->drawImage(refImg, 0, 0); in test_cross_context_image()
913 refImg.reset(nullptr); // force a release of the image in test_cross_context_image()
918 sk_sp<SkImage> refImg(imageMaker(ctx)); in test_cross_context_image() local
920 canvas->drawImage(refImg, 0, 0); in test_cross_context_image()
[all …]