Home
last modified time | relevance | path

Searched refs:image1 (Results 1 – 25 of 41) sorted by relevance

12

/external/tensorflow/tensorflow/python/kernel_tests/
Ddecode_image_op_test.py43 image1 = image_ops.decode_bmp(bmp0)
44 bmp0, image0, image1 = self.evaluate([bmp0, image0, image1])
46 self.assertAllEqual(image0, image1)
59 image1 = image_ops.decode_gif(gif0)
60 gif0, image0, image1 = self.evaluate([gif0, image0, image1])
63 self.assertAllEqual(image0, image1)
88 image1 = image_ops.decode_jpeg(jpeg0)
89 jpeg0, image0, image1 = self.evaluate([jpeg0, image0, image1])
92 self.assertAllEqual(image0, image1)
107 image1 = image_ops.decode_png(png0, channels=channels)
[all …]
/external/webrtc/modules/desktop_capture/
Ddiffer_block.cc23 bool VectorDifference_C(const uint8_t* image1, const uint8_t* image2) { in VectorDifference_C() argument
24 return memcmp(image1, image2, kBlockSize * kBytesPerPixel) != 0; in VectorDifference_C()
29 bool VectorDifference(const uint8_t* image1, const uint8_t* image2) { in VectorDifference() argument
50 return diff_proc(image1, image2); in VectorDifference()
53 bool BlockDifference(const uint8_t* image1, in BlockDifference() argument
58 if (VectorDifference(image1, image2)) { in BlockDifference()
61 image1 += stride; in BlockDifference()
67 bool BlockDifference(const uint8_t* image1, const uint8_t* image2, int stride) { in BlockDifference() argument
68 return BlockDifference(image1, image2, kBlockSize, stride); in BlockDifference()
Ddiffer_block.h27 bool VectorDifference(const uint8_t* image1, const uint8_t* image2);
31 bool BlockDifference(const uint8_t* image1,
38 bool BlockDifference(const uint8_t* image1, const uint8_t* image2, int stride);
Ddiffer_vector_sse2.cc22 extern bool VectorDifference_SSE2_W16(const uint8_t* image1, in VectorDifference_SSE2_W16() argument
28 const __m128i* i1 = reinterpret_cast<const __m128i*>(image1); in VectorDifference_SSE2_W16()
54 extern bool VectorDifference_SSE2_W32(const uint8_t* image1, in VectorDifference_SSE2_W32() argument
60 const __m128i* i1 = reinterpret_cast<const __m128i*>(image1); in VectorDifference_SSE2_W32()
Ddiffer_vector_sse2.h22 extern bool VectorDifference_SSE2_W16(const uint8_t* image1,
26 extern bool VectorDifference_SSE2_W32(const uint8_t* image1,
/external/brotli/research/
Ddraw_diff.cc39 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()
/external/tensorflow/tensorflow/tools/android/test/jni/object_tracking/
Dimage_utils.h179 inline float ImageCrossCorrelation(const Image<float>& image1, in ImageCrossCorrelation() argument
182 SCHECK(image1.GetWidth() == image2.GetWidth() && in ImageCrossCorrelation()
183 image1.GetHeight() == image2.GetHeight(), in ImageCrossCorrelation()
185 image1.GetWidth(), image1.GetHeight(), in ImageCrossCorrelation()
188 const int num_pixels = image1.GetWidth() * image1.GetHeight(); in ImageCrossCorrelation()
189 const float* data1 = image1.data(); in ImageCrossCorrelation()
/external/angle/third_party/vulkan-deps/glslang/src/Test/baseResults/
Dspv.paramMemory.420.frag.out26 Name 36 "image1"
44 Decorate 36(image1) DescriptorSet 0
45 Decorate 36(image1) Binding 0
46 Decorate 36(image1) Coherent
47 Decorate 36(image1) NonWritable
73 36(image1): 8(ptr) Variable UniformConstant
99 39: 12(fvec4) FunctionCall 16(image_load(I21;vi2;) 36(image1) 37(param)
/external/deqp-deps/glslang/Test/baseResults/
Dspv.paramMemory.420.frag.out26 Name 36 "image1"
44 Decorate 36(image1) DescriptorSet 0
45 Decorate 36(image1) Binding 0
46 Decorate 36(image1) Coherent
47 Decorate 36(image1) NonWritable
73 36(image1): 8(ptr) Variable UniformConstant
99 39: 12(fvec4) FunctionCall 16(image_load(I21;vi2;) 36(image1) 37(param)
/external/ImageMagick/MagickCore/
Dlayer.c166 static MagickBooleanType IsBoundsCleared(const Image *image1, in IsBoundsCleared() argument
183 p=GetVirtualPixels(image1,bounds->x,bounds->y+y,bounds->width,1,exception); in IsBoundsCleared()
189 if ((GetPixelAlpha(image1,p) >= (Quantum) (QuantumRange/2)) && in IsBoundsCleared()
192 p+=GetPixelChannels(image1); in IsBoundsCleared()
613 static RectangleInfo CompareImagesBounds(const Image *image1, in CompareImagesBounds() argument
636 GetPixelInfo(image1,&pixel1); in CompareImagesBounds()
638 for (x=0; x < (ssize_t) image1->columns; x++) in CompareImagesBounds()
640 p=GetVirtualPixels(image1,x,0,1,image1->rows,exception); in CompareImagesBounds()
644 for (y=0; y < (ssize_t) image1->rows; y++) in CompareImagesBounds()
646 GetPixelInfoPixel(image1,p,&pixel1); in CompareImagesBounds()
[all …]
/external/pdfium/testing/image_diff/
Dimage_diff.cpp256 bool CreateImageDiff(const Image& image1, const Image& image2, Image* out) { in CreateImageDiff() argument
257 int w = std::min(image1.w(), image2.w()); in CreateImageDiff()
258 int h = std::min(image1.h(), image2.h()); in CreateImageDiff()
259 *out = Image(image1); in CreateImageDiff()
260 bool same = (image1.w() == image2.w()) && (image1.h() == image2.h()); in CreateImageDiff()
266 uint32_t base_pixel = image1.pixel_at(x, y); in CreateImageDiff()
/external/skia/docs/examples/
DImage_MakeFromBitmap.cpp16 sk_sp<SkImage> image1 = bitmap.asImage(); in draw() local
21 canvas->drawImage(image1, 0, 0); in draw()
/external/tensorflow/tensorflow/python/ops/
Dimage_ops_test.py4185 def averageError(self, image0, image1): argument
4186 self.assertEqual(image0.shape, image1.shape)
4188 return np.abs(image0 - image1).sum() / np.prod(image0.shape)
4197 image1 = image_ops.decode_jpeg(image_ops.encode_jpeg(image0))
4198 jpeg0, image0, image1 = self.evaluate([jpeg0, image0, image1])
4201 self.assertLess(self.averageError(image0, image1), 1.4)
4232 image1 = image_ops.decode_jpeg(jpeg0)
4234 image1_crop = image_ops.crop_to_bounding_box(image1, y, x, h, w)
4270 image1 = image_ops.decode_jpeg(jpeg0, dct_method="INTEGER_ACCURATE")
4272 image_ops.encode_jpeg(image1), dct_method="INTEGER_ACCURATE")
[all …]
/external/noto-fonts/scripts/
Dcolor_emoji_image_diff.py162 image1 = font1_cbdt[glyph1] if glyph1 and glyph1 in font1_cbdt else None
165 if not similar_img(image1, image2):
167 if image1:
169 image1.save(f)
/external/angle/third_party/vulkan-deps/glslang/src/Test/
Dspv.paramMemory.420.frag6 readonly coherent uniform layout(set = 0, binding = 0) image2D image1;
26 vec4 read1 = image_load(image1, in_coords);
Dspv.paramMemory.frag3 // readonly coherent uniform layout(set = 0, binding = 0) highp image2D image1;
23 highp vec4 read1 = vec4(0.4); // = image_load(image1, in_coords);
/external/deqp-deps/glslang/Test/
Dspv.paramMemory.frag3 // readonly coherent uniform layout(set = 0, binding = 0) highp image2D image1;
23 highp vec4 read1 = vec4(0.4); // = image_load(image1, in_coords);
Dspv.paramMemory.420.frag6 readonly coherent uniform layout(set = 0, binding = 0) image2D image1;
26 vec4 read1 = image_load(image1, in_coords);
/external/skia/tests/
DEGLImageTest.cpp31 GrEGLImage image1) { in cleanup() argument
34 if (GR_EGL_NO_IMAGE != image1) { in cleanup()
35 glctx1->destroyEGLImage(image1); in cleanup()
DSurfaceTest.cpp339 sk_sp<SkImage> image1(surface->makeImageSnapshot()); in test_backend_unique_id() local
341 REPORTER_ASSERT(reporter, image0->uniqueID() == image1->uniqueID()); in test_backend_unique_id()
510 sk_sp<SkImage> image1(surface1->makeImageSnapshot()); in test_crbug263329() local
534 REPORTER_ASSERT(reporter, imageProxy(image4.get()) != imageProxy(image1.get())); in test_crbug263329()
536 REPORTER_ASSERT(reporter, imageProxy(image3.get()) != imageProxy(image1.get())); in test_crbug263329()
537 REPORTER_ASSERT(reporter, imageProxy(image2.get()) != imageProxy(image1.get())); in test_crbug263329()
615 sk_sp<SkImage> image1 = surface->makeImageSnapshot(); in test_no_canvas2() local
616 sk_sp<SkImage> aur_image1(image1); // NOLINT(performance-unnecessary-copy-initialization) in test_no_canvas2()
620 REPORTER_ASSERT(reporter, image1 != image2); in test_no_canvas2()
/external/skqp/tests/
DEGLImageTest.cpp28 GrEGLImage image1) { in cleanup() argument
37 if (GR_EGL_NO_IMAGE != image1) { in cleanup()
38 glctx1->destroyEGLImage(image1); in cleanup()
DSurfaceTest.cpp344 sk_sp<SkImage> image1(surface->makeImageSnapshot()); in test_backend_unique_id() local
346 REPORTER_ASSERT(reporter, image0->uniqueID() == image1->uniqueID()); in test_backend_unique_id()
476 sk_sp<SkImage> image1(surface1->makeImageSnapshot()); in test_crbug263329() local
493 REPORTER_ASSERT(reporter, as_IB(image4)->getTexture() != as_IB(image1)->getTexture()); in test_crbug263329()
495 REPORTER_ASSERT(reporter, as_IB(image3)->getTexture() != as_IB(image1)->getTexture()); in test_crbug263329()
496 REPORTER_ASSERT(reporter, as_IB(image2)->getTexture() != as_IB(image1)->getTexture()); in test_crbug263329()
578 sk_sp<SkImage> image1 = surface->makeImageSnapshot(); in test_no_canvas2() local
579 sk_sp<SkImage> aur_image1(image1); in test_no_canvas2()
583 REPORTER_ASSERT(reporter, image1 != image2); in test_no_canvas2()
/external/deqp/external/vulkancts/modules/vulkan/binding_model/
DvktBindingDescriptorCopyTests.cpp2689 SampledImageDescriptor* image1 (new SampledImageDescriptor()); in addSampledImageCopyTests() local
2691 image1->addSampler(sampler); in addSampledImageCopyTests()
2694 commands->addDescriptor(DescriptorSp(image1), 0u); in addSampledImageCopyTests()
2710 SampledImageDescriptor* image1 (new SampledImageDescriptor(3u, 0u, 3u)); in addSampledImageCopyTests() local
2712 image1->addSampler(sampler, 3u); in addSampledImageCopyTests()
2716 commands->addDescriptor(DescriptorSp(image1), 0u); in addSampledImageCopyTests()
2738 SampledImageDescriptor* image1 (new SampledImageDescriptor()); in addMixedDescriptorCopyTests() local
2743 sampler1->addImage(image1); in addMixedDescriptorCopyTests()
2750 commands->addDescriptor(DescriptorSp(image1), 1u); // Set 1, binding 1 in addMixedDescriptorCopyTests()
/external/deqp-deps/SPIRV-Tools/test/opt/
Dtypes_test.cpp160 auto* image1 = types.back().get(); local
173 types.emplace_back(new SampledImage(image1));
/external/swiftshader/third_party/SPIRV-Tools/test/opt/
Dtypes_test.cpp160 auto* image1 = types.back().get(); local
173 types.emplace_back(new SampledImage(image1));

12