/third_party/skia/third_party/externals/brotli/research/ |
H A D | draw_diff.cc | 39 void CalculateDiff(int** diff, Image image1, Image image2, in CalculateDiff() argument 43 diff[i][j] = static_cast<int>(image1[i][j]) - image2[i][j]; in CalculateDiff() 48 void DrawDiff(int** diff, Image image1, Image image2, in DrawDiff() argument 56 int img_min = std::min(255 - image1[i][j], 255 - image2[i][j]); in DrawDiff() 69 int min_val = std::min(255 - image1[i][j], 255 - image2[i][j]); in DrawDiff() 92 Image image1, image2; in main() local 96 ReadPGM(fimage1, &image1, &h1, &w1); in main() 110 CalculateDiff(diff, image1, image2, h1, w1); in main() 113 DrawDiff(diff, image1, image2, h1, w1, fdiff); in main()
|
/third_party/skia/docs/examples/ |
H A D | Image_MakeFromBitmap.cpp | 16 sk_sp<SkImage> image1 = bitmap.asImage(); in REG_FIDDLE() local 21 canvas->drawImage(image1, 0, 0); in REG_FIDDLE()
|
/third_party/skia/tests/ |
H A D | EGLImageTest.cpp | 31 GrEGLImage image1) { in cleanup() 34 if (GR_EGL_NO_IMAGE != image1) { in cleanup() 35 glctx1->destroyEGLImage(image1); in cleanup() 27 cleanup(GLTestContext* glctx0, GrGLuint texID0, GLTestContext* glctx1, sk_sp<GrDirectContext> dContext, GrEGLImage image1) cleanup() argument
|
H A D | SurfaceTest.cpp | 337 sk_sp<SkImage> image1(surface->makeImageSnapshot()); in test_backend_unique_id() 339 REPORTER_ASSERT(reporter, image0->uniqueID() == image1->uniqueID()); in test_backend_unique_id() 508 sk_sp<SkImage> image1(surface1->makeImageSnapshot()); in test_crbug263329() 532 REPORTER_ASSERT(reporter, imageProxy(image4.get()) != imageProxy(image1.get())); in test_crbug263329() 534 REPORTER_ASSERT(reporter, imageProxy(image3.get()) != imageProxy(image1.get())); in test_crbug263329() 535 REPORTER_ASSERT(reporter, imageProxy(image2.get()) != imageProxy(image1.get())); in test_crbug263329() 613 sk_sp<SkImage> image1 = surface->makeImageSnapshot(); in test_no_canvas2() local 614 sk_sp<SkImage> aur_image1(image1); // NOLINT(performance-unnecessary-copy-initialization) in test_no_canvas2() 618 REPORTER_ASSERT(reporter, image1 != image2); in test_no_canvas2()
|
H A D | ImageTest.cpp | 272 sk_sp<SkImage> image1(surface->makeImageSnapshot()); in DEF_TEST() 273 REPORTER_ASSERT(reporter, image1->readPixels(nullptr, dstInfo, pixels, dstRowBytes, 0, 0)); in DEF_TEST()
|
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
H A D | glcCompressedFormatTests.cpp | 1354 const auto image1 = loadImage(context.archive, format1, 1); 1356 DE_ASSERT(image0.width == 2 * image1.width && image0.height == 2 * image1.height); 1364 gl.compressedTexImage2D(GL_TEXTURE_2D, 0, format1, image1.width, image1.height, 0, image1.data.size(), image1.data.data()); 1370 gl.copyImageSubData(context.texIds[1], GL_TEXTURE_2D, 0, 0, 0, 0, context.texIds[0], GL_TEXTURE_2D, 0, 0, 0, 0, image1.width, image1.height, 1); 1535 const auto image1 in iterate() local [all...] |
/foundation/arkui/ui_lite/test/uitest/test_ui_analog_clock/ |
H A D | ui_test_analog_clock.cpp | 284 UIImageView* image1 = new UIImageView(); in UIKitTestImageHandAnalogClock002() local 285 image1->SetSrc(B024_010_IMAGE_PATH); in UIKitTestImageHandAnalogClock002() 303 clock2->SetHandImage(UIAnalogClock::HandType::SECOND_HAND, *image1, {214, 3}, {14, 223}); in UIKitTestImageHandAnalogClock002()
|
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/test/fuzztest/udmfclient_fuzzer/ |
H A D | udmf_client_fuzzer.cpp | 276 Image image1;
in SetDataImageFuzz() local 277 image1.SetUri(svalue + "uri");
in SetDataImageFuzz() 278 image1.SetRemoteUri(svalue + "remoteUri");
in SetDataImageFuzz() 279 std::shared_ptr<UnifiedRecord> record1 = std::make_shared<Image>(image1);
in SetDataImageFuzz()
|
/foundation/graphic/graphic_2d/frameworks/bootanimation/src/ |
H A D | util.cpp | 257 sort(imgVec.begin(), imgVec.end(), [](std::shared_ptr<ImageStruct> image1, in SortZipFile() 259 -> bool {return image1->fileName < image2->fileName;}); in SortZipFile()
|
/third_party/skia/third_party/externals/spirv-tools/test/opt/ |
H A D | types_test.cpp | 160 auto* image1 = types.back().get(); in GenerateAllTypes() local 173 types.emplace_back(new SampledImage(image1)); in GenerateAllTypes()
|
H A D | type_manager_test.cpp | 103 auto* image1 = types.back().get(); in GenerateAllTypes() local 116 types.emplace_back(new SampledImage(image1)); in GenerateAllTypes() 1030 ; CHECK: [[image1:%\w+]] = OpTypeImage [[s32]] 2D 0 0 0 0 Rg8 ReadOnly in TEST() 1035 ; CHECK: OpTypeSampledImage [[image1]] in TEST()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/ |
H A D | types_test.cpp | 160 auto* image1 = types.back().get(); in GenerateAllTypes() local 173 types.emplace_back(new SampledImage(image1)); in GenerateAllTypes()
|
H A D | type_manager_test.cpp | 103 auto* image1 = types.back().get(); in GenerateAllTypes() local 116 types.emplace_back(new SampledImage(image1)); in GenerateAllTypes() 1030 ; CHECK: [[image1:%\w+]] = OpTypeImage [[s32]] 2D 0 0 0 0 Rg8 ReadOnly in TEST() 1035 ; CHECK: OpTypeSampledImage [[image1]] in TEST()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/ |
H A D | vktTessellationGeometryPassthroughTests.cpp | 606 tcu::ConstPixelBufferAccess image1 = getPixelBufferAccess(vk, device, *colorBuffer[1], colorFormat, renderSize); in iterate() local 620 log, "ImageCompare", "Image comparison", image0, image1, colorThreshold, positionDeviation, ignoreOutOfBounds, tcu::COMPARE_LOG_RESULT); in iterate()
|
/third_party/spirv-tools/test/opt/ |
H A D | types_test.cpp | 161 auto* image1 = types.back().get(); in GenerateAllTypes() local 177 types.emplace_back(new SampledImage(image1)); in GenerateAllTypes()
|
H A D | type_manager_test.cpp | 104 auto* image1 = types.back().get(); in GenerateAllTypes() local 120 types.emplace_back(new SampledImage(image1)); in GenerateAllTypes() 1059 ; CHECK: [[image1:%\w+]] = OpTypeImage [[s32]] 2D 0 0 0 0 Rg8 ReadOnly in TEST() 1064 ; CHECK: OpTypeSampledImage [[image1]] in TEST()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/tessellation/ |
H A D | vktTessellationGeometryPassthroughTests.cpp | 606 tcu::ConstPixelBufferAccess image1 = getPixelBufferAccess(vk, device, *colorBuffer[1], colorFormat, renderSize); in iterate() local 620 log, "ImageCompare", "Image comparison", image0, image1, colorThreshold, positionDeviation, ignoreOutOfBounds, tcu::COMPARE_LOG_RESULT); in iterate()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/binding_model/ |
H A D | vktBindingDescriptorCopyTests.cpp | 2821 SampledImageDescriptor* image1 (new SampledImageDescriptor()); in addSampledImageCopyTests() 2823 image1->addSampler(sampler); in addSampledImageCopyTests() 2826 commands->addDescriptor(DescriptorSp(image1), 0u); in addSampledImageCopyTests() 2842 SampledImageDescriptor* image1 (new SampledImageDescriptor(3u, 0u, 3u)); in addSampledImageCopyTests() 2844 image1->addSampler(sampler, 3u); in addSampledImageCopyTests() 2848 commands->addDescriptor(DescriptorSp(image1), 0u); in addSampledImageCopyTests() 2870 SampledImageDescriptor* image1 (new SampledImageDescriptor()); in addMixedDescriptorCopyTests() 2875 sampler1->addImage(image1); in addMixedDescriptorCopyTests() 2882 commands->addDescriptor(DescriptorSp(image1), 1u); // Set 1, binding 1 in addMixedDescriptorCopyTests() 2885 // image1 t in addMixedDescriptorCopyTests() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/binding_model/ |
H A D | vktBindingDescriptorCopyTests.cpp | 2822 SampledImageDescriptor* image1 (new SampledImageDescriptor()); in addSampledImageCopyTests() 2824 image1->addSampler(sampler); in addSampledImageCopyTests() 2827 commands->addDescriptor(DescriptorSp(image1), 0u); in addSampledImageCopyTests() 2843 SampledImageDescriptor* image1 (new SampledImageDescriptor(3u, 0u, 3u)); in addSampledImageCopyTests() 2845 image1->addSampler(sampler, 3u); in addSampledImageCopyTests() 2849 commands->addDescriptor(DescriptorSp(image1), 0u); in addSampledImageCopyTests() 2871 SampledImageDescriptor* image1 (new SampledImageDescriptor()); in addMixedDescriptorCopyTests() 2876 sampler1->addImage(image1); in addMixedDescriptorCopyTests() 2883 commands->addDescriptor(DescriptorSp(image1), 1u); // Set 1, binding 1 in addMixedDescriptorCopyTests() 2886 // image1 t in addMixedDescriptorCopyTests() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/ |
H A D | rs_render_particle_animation_test.cpp | 79 std::shared_ptr<RSImage> image1; in SetUp() local 82 emitRate1, emitShape1, position1, emitSize1, particleCount1, lifeTime1, type1, radius1, image1, imageSize1); in SetUp()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/recording/ |
H A D | cmd_list_helper_test.cpp | 621 Image image1; in HWTEST_F() local 622 image1.BuildFromBitmap(bmp); in HWTEST_F()
|
/third_party/astc-encoder/Test/ |
H A D | astc_test_functional.py | 241 def compare(self, image1, image2): 249 image1 (str): Path to the first image. 255 img1 = Image.open(image1) 288 def get_channel_rmse(self, image1, image2): 293 image1 (str): Path to the first image. 300 img1 = Image.open(image1)
|
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/test/unittest/ |
H A D | udmf_client_test.cpp | 504 Image image1; in HWTEST_F() local 507 image1.SetDetails(details1); in HWTEST_F() 508 image1.SetRemoteUri("remoteUri"); in HWTEST_F() 509 std::shared_ptr<UnifiedRecord> record1 = std::make_shared<Image>(image1); in HWTEST_F() 532 EXPECT_EQ(image1.GetRemoteUri(), image2->GetRemoteUri()); in HWTEST_F()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
H A D | ImageTest.cpp | 1807 EGLImageKHR image1; in TEST_P() local 1809 static_cast<void *>(&kLinearColor), source1, &image1); in TEST_P() 1813 createEGLImageTargetTexture2D(image1, target); in TEST_P() 1817 eglDestroyImageKHR(window->getDisplay(), image1); in TEST_P()
|