Home
last modified time | relevance | path

Searched refs:image2 (Results 1 – 25 of 29) sorted by relevance

12

/external/python/cpython3/Lib/tkinter/test/test_tkinter/
Dtest_images.py240 image2 = image.copy()
241 self.assertEqual(image2.width(), 16)
242 self.assertEqual(image2.height(), 16)
247 image2 = image.subsample(2, 3)
248 self.assertEqual(image2.width(), 8)
249 self.assertEqual(image2.height(), 6)
250 self.assertEqual(image2.get(2, 2), image.get(4, 6))
252 image2 = image.subsample(2)
253 self.assertEqual(image2.width(), 8)
254 self.assertEqual(image2.height(), 8)
[all …]
/external/python/cpython2/Lib/lib-tk/test/test_tkinter/
Dtest_images.py241 image2 = image.copy()
242 self.assertEqual(image2.width(), 16)
243 self.assertEqual(image2.height(), 16)
248 image2 = image.subsample(2, 3)
249 self.assertEqual(image2.width(), 8)
250 self.assertEqual(image2.height(), 6)
251 self.assertEqual(image2.get(2, 2), image.get(4, 6))
253 image2 = image.subsample(2)
254 self.assertEqual(image2.width(), 8)
255 self.assertEqual(image2.height(), 8)
[all …]
/external/ImageMagick/coders/
Dmat.c478 Image *image2; in DecompressBlock() local
567 if( (image2 = AcquireImage(clone_info,exception))==NULL ) goto EraseFile; in DecompressBlock()
568 status = OpenBlob(clone_info,image2,ReadBinaryBlobMode,exception); in DecompressBlock()
571 DeleteImageFromList(&image2); in DecompressBlock()
580 return image2; in DecompressBlock()
802 Image *image, *image2=NULL, in ReadMATImage() local
855 image2=ReadMATImageV4(image_info,image,exception); in ReadMATImage()
856 if (image2 == NULL) in ReadMATImage()
858 image=image2; in ReadMATImage()
907 image2 = image; in ReadMATImage()
[all …]
Dwpg.c754 *image2; in ExtractPostscript() local
794 image2=ReadImage(clone_info,exception); in ExtractPostscript()
796 if (!image2) in ExtractPostscript()
803 (void) CopyMagickString(image2->filename,image->filename,MagickPathExtent); in ExtractPostscript()
804 (void) CopyMagickString(image2->magick_filename,image->magick_filename,MagickPathExtent); in ExtractPostscript()
805 (void) CopyMagickString(image2->magick,image->magick,MagickPathExtent); in ExtractPostscript()
806 image2->depth=image->depth; in ExtractPostscript()
807 DestroyBlob(image2); in ExtractPostscript()
808 image2->blob=ReferenceBlob(image->blob); in ExtractPostscript()
813 AppendImageToList(&image,image2); in ExtractPostscript()
/external/brotli/research/
Ddraw_diff.cc34 void CalculateDiff(int** diff, uint8_t** image1, uint8_t** image2, in CalculateDiff() argument
38 diff[i][j] = static_cast<int>(image1[i][j]) - image2[i][j]; in CalculateDiff()
43 void DrawDiff(int** diff, uint8_t** image1, uint8_t** image2, in DrawDiff() argument
51 int img_min = std::min(255 - image1[i][j], 255 - image2[i][j]); in DrawDiff()
64 int min_val = std::min(255 - image1[i][j], 255 - image2[i][j]); in DrawDiff()
87 uint8_t **image1, **image2; in main() local
95 ReadPGM(fimage2, &image2, &h2, &w2); in main()
105 CalculateDiff(diff, image1, image2, h1, w1); in main()
108 DrawDiff(diff, image1, image2, h1, w1, fdiff); in main()
DREADME.md33 draw_diff image1.pgm image2.pgm diff.ppm
/external/webrtc/webrtc/modules/desktop_capture/
Ddiffer_block.cc22 const uint8_t* image2, in BlockDifference_C() argument
27 if (memcmp(image1, image2, width_bytes) != 0) in BlockDifference_C()
30 image2 += stride; in BlockDifference_C()
36 const uint8_t* image2, in BlockDifference() argument
58 return diff_proc(image1, image2, stride); in BlockDifference()
Ddiffer_block_sse2.cc25 const uint8_t* image2, in BlockDifference_SSE2_W16() argument
33 const __m128i* i2 = reinterpret_cast<const __m128i*>(image2); in BlockDifference_SSE2_W16()
59 image2 += stride; in BlockDifference_SSE2_W16()
65 const uint8_t* image2, in BlockDifference_SSE2_W32() argument
73 const __m128i* i2 = reinterpret_cast<const __m128i*>(image2); in BlockDifference_SSE2_W32()
115 image2 += stride; in BlockDifference_SSE2_W32()
Ddiffer_block_sse2.h23 const uint8_t* image2,
28 const uint8_t* image2,
Ddiffer_block.h28 const uint8_t* image2,
/external/tensorflow/tensorflow/examples/android/jni/object_tracking/
Dimage_utils.h181 const Image<float>& image2, in ImageCrossCorrelation() argument
183 SCHECK(image1.GetWidth() == image2.GetWidth() && in ImageCrossCorrelation()
184 image1.GetHeight() == image2.GetHeight(), in ImageCrossCorrelation()
187 image2.GetWidth(), image2.GetHeight()); in ImageCrossCorrelation()
191 const float* data2 = image2.data(); in ImageCrossCorrelation()
/external/pdfium/testing/image_diff/
Dimage_diff.cpp235 bool CreateImageDiff(const Image& image1, const Image& image2, Image* out) { in CreateImageDiff() argument
236 int w = std::min(image1.w(), image2.w()); in CreateImageDiff()
237 int h = std::min(image1.h(), image2.h()); in CreateImageDiff()
239 bool same = (image1.w() == image2.w()) && (image1.h() == image2.h()); in CreateImageDiff()
246 if (base_pixel != image2.pixel_at(x, y)) { in CreateImageDiff()
/external/ImageMagick/MagickCore/
Dlayer.c166 const Image *image2,RectangleInfo *bounds,ExceptionInfo *exception) in IsBoundsCleared() argument
183 q=GetVirtualPixels(image2,bounds->x,bounds->y+y,bounds->width,1,exception); in IsBoundsCleared()
189 (GetPixelAlpha(image2,q) < (Quantum) (QuantumRange/2))) in IsBoundsCleared()
192 q+=GetPixelChannels(image2); in IsBoundsCleared()
591 const Image *image2,const LayerMethod method,ExceptionInfo *exception) in CompareImagesBounds() argument
614 GetPixelInfo(image2,&pixel2); in CompareImagesBounds()
618 q=GetVirtualPixels(image2,x,0,1,image2->rows,exception); in CompareImagesBounds()
625 GetPixelInfoPixel(image2,q,&pixel2); in CompareImagesBounds()
629 q+=GetPixelChannels(image2); in CompareImagesBounds()
649 q=GetVirtualPixels(image2,x,0,1,image2->rows,exception); in CompareImagesBounds()
[all …]
/external/skqp/tests/
DSurfaceTest.cpp240 sk_sp<SkImage> image2(surface->makeImageSnapshot()); in test_backend_handle_unique_id() local
242 REPORTER_ASSERT(reporter, image0->uniqueID() != image2->uniqueID()); in test_backend_handle_unique_id()
249 REPORTER_ASSERT(reporter, image2->uniqueID() != image3->uniqueID()); in test_backend_handle_unique_id()
388 sk_sp<SkImage> image2(surface1->makeImageSnapshot()); in test_crbug263329() local
401 REPORTER_ASSERT(reporter, as_IB(image4)->getTexture() != as_IB(image2)->getTexture()); in test_crbug263329()
403 REPORTER_ASSERT(reporter, as_IB(image3)->getTexture() != as_IB(image2)->getTexture()); in test_crbug263329()
405 REPORTER_ASSERT(reporter, as_IB(image2)->getTexture() != as_IB(image1)->getTexture()); in test_crbug263329()
504 sk_sp<SkImage> image2 = surface->makeImageSnapshot(); in test_no_canvas2()
505 sk_sp<SkImage> aur_image2(image2); in test_no_canvas2()
506 SkDEBUGCODE(image2->validate();) in test_no_canvas2()
[all …]
DImageTest.cpp284 sk_sp<SkImage> image2(surface->makeImageSnapshot()); in DEF_TEST() local
285 REPORTER_ASSERT(reporter, image2->readPixels(dstInfo, pixels, dstRowBytes, 0, 0)); in DEF_TEST()
/external/skia/tests/
DSurfaceTest.cpp361 sk_sp<SkImage> image2(surface->makeImageSnapshot()); in test_backend_handle_unique_id() local
363 REPORTER_ASSERT(reporter, image0->uniqueID() != image2->uniqueID()); in test_backend_handle_unique_id()
370 REPORTER_ASSERT(reporter, image2->uniqueID() != image3->uniqueID()); in test_backend_handle_unique_id()
509 sk_sp<SkImage> image2(surface1->makeImageSnapshot()); in test_crbug263329() local
522 REPORTER_ASSERT(reporter, as_IB(image4)->getTexture() != as_IB(image2)->getTexture()); in test_crbug263329()
524 REPORTER_ASSERT(reporter, as_IB(image3)->getTexture() != as_IB(image2)->getTexture()); in test_crbug263329()
526 REPORTER_ASSERT(reporter, as_IB(image2)->getTexture() != as_IB(image1)->getTexture()); in test_crbug263329()
621 sk_sp<SkImage> image2 = surface->makeImageSnapshot(); in test_no_canvas2()
622 sk_sp<SkImage> aur_image2(image2); in test_no_canvas2()
623 SkDEBUGCODE(image2->validate();) in test_no_canvas2()
[all …]
DImageTest.cpp285 sk_sp<SkImage> image2(surface->makeImageSnapshot()); in DEF_TEST() local
286 REPORTER_ASSERT(reporter, image2->readPixels(dstInfo, pixels, dstRowBytes, 0, 0)); in DEF_TEST()
/external/spirv-llvm/test/SPIRV/
Dimage.ll15 …opy(%opencl.image2d_t addrspace(1)* readnone %image1, %opencl.image2d_t addrspace(1)* %image2) #0 {
24 …_Z12write_imagef11ocl_image2dDv2_iDv4_f(%opencl.image2d_t addrspace(1)* %image2, <2 x i32> %vecini…
/external/skia/gm/
Dsurface.cpp139 sk_sp<SkImage> image2(surf2->makeImageSnapshot()); in onDraw() local
140 canvas->drawImage(image2.get(), 10 + SkIntToScalar(image->width()) + 10, 10, nullptr); in onDraw()
/external/skqp/gm/
Dsurface.cpp139 sk_sp<SkImage> image2(surf2->makeImageSnapshot()); in onDraw() local
140 canvas->drawImage(image2.get(), 10 + SkIntToScalar(image->width()) + 10, 10, nullptr); in onDraw()
/external/tensorflow/tensorflow/python/ops/
Dimage_ops_test.py2756 image2 = image_ops.decode_and_crop_jpeg(jpeg0, crop_window)
2760 image2.get_shape().as_list())
2763 image1_crop, image2 = sess.run([image1_crop, image2])
2764 self.assertAllEqual(image1_crop, image2)
2790 image2 = image_ops.decode_jpeg(
2792 jpeg0, image0, image1, image2 = sess.run([jpeg0, image0, image1, image2])
2798 self.assertLess(self.averageError(image1, image2), 0.02)
2810 image2 = image_ops.decode_jpeg(
2812 jpeg0, image0, image1, image2 = sess.run([jpeg0, image0, image1, image2])
2821 self.assertLess(self.averageError(image1, image2), 1.05)
[all …]
/external/toolchain-utils/
Dchromiumos_image_diff.py312 for i, image_path in enumerate([options.image1, options.image2], start=1):
/external/vulkan-validation-layers/tests/
Dlayer_validation_tests.cpp1941 VkImage image2; in TEST_F() local
1983 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image2); in TEST_F()
1999 vkDestroyImage(m_device->device(), image2, NULL); in TEST_F()
2007 vkGetImageMemoryRequirements(m_device->device(), image2, &img_mem_reqs2); in TEST_F()
2020 err = vkBindImageMemory(m_device->device(), image2, mem_img, 0); in TEST_F()
2030 vkDestroyImage(m_device->device(), image2, NULL); in TEST_F()
4483 VkImageObj image2(m_device); in TEST_F() local
4484image2.Init(32, 32, 1, VK_FORMAT_R8G8B8A8_UNORM, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT, VK_IMAGE_TIL… in TEST_F()
4528 img_barrier.image = image2.handle(); // Image mis-matches with FB image in TEST_F()
4583 VkImageObj image2(m_device); in TEST_F() local
[all …]
/external/tensorflow/tensorflow/docs_src/programmers_guide/
Ddatasets.md519 filenames = tf.constant(["/var/data/image1.jpg", "/var/data/image2.jpg", ...])
550 filenames = ["/var/data/image1.jpg", "/var/data/image2.jpg", ...]
/external/python/cpython3/Lib/tkinter/test/test_ttk/
Dtest_widgets.py161 image2 = tkinter.PhotoImage(master=self.root, name='image2')
165 self.checkParam(widget, name, (image, 'active', image2),

12