Home
last modified time | relevance | path

Searched refs:img1 (Results 1 – 25 of 27) sorted by relevance

12

/third_party/boost/libs/gil/test/extension/io/
Dtiff_subimage_test.cpp45 bit_aligned_image1_type< n, gray_layout_t >::type img1, img2, img3; \
49 read_image( filename_strip, img1, settings ); \
52 BOOST_CHECK( equal_pixels( const_view( img1 ), const_view( img2 ))); \
53 … BOOST_CHECK( equal_pixels( const_view( img1 ), subimage_view( view( img3 ), top_left, dim ))); \
68 gray8_image_t img1, img2, img3; in BOOST_AUTO_TEST_CASE() local
75 read_image( tiff_in_GM + "tiger-minisblack-strip-08.tif", img1, settings ); in BOOST_AUTO_TEST_CASE()
79 BOOST_CHECK( equal_pixels( const_view( img1 ), const_view( img2 ))); in BOOST_AUTO_TEST_CASE()
80 BOOST_CHECK( equal_pixels( const_view( img1 ), subimage_view( view( img3 ), top_left, dim ))); in BOOST_AUTO_TEST_CASE()
85 gray16_image_t img1, img2, img3; in BOOST_AUTO_TEST_CASE() local
92 read_image( tiff_in_GM + "tiger-minisblack-strip-16.tif", img1, settings ); in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/boost/libs/gil/test/extension/io/tiff/
Dtiff_subimage_test.cpp43 gil::bit_aligned_image1_type<n, gil::gray_layout_t>::type img1, img2, img3; \
47 gil::read_image(filename_strip, img1, settings); \
50 BOOST_TEST(gil::equal_pixels(gil::const_view(img1), gil::const_view(img2))); \
52 gil::const_view(img1), gil::subimage_view(gil::view(img3), top_left, dim))); \
65 gil::gray8_image_t img1, img2, img3; in test_subimage_test_8() local
71 gil::read_image(tiff_in_GM + "tiger-minisblack-strip-08.tif", img1, settings); in test_subimage_test_8()
75 BOOST_TEST(gil::equal_pixels(gil::const_view(img1), gil::const_view(img2))); in test_subimage_test_8()
76 …BOOST_TEST(gil::equal_pixels(gil::const_view(img1), gil::subimage_view(gil::view(img3), top_left, … in test_subimage_test_8()
81 gil::gray16_image_t img1, img2, img3; in test_subimage_test_16() local
87 gil::read_image(tiff_in_GM + "tiger-minisblack-strip-16.tif", img1, settings); in test_subimage_test_16()
[all …]
/third_party/flutter/skia/third_party/externals/libwebp/examples/
Danim_diff.c131 static int CompareAnimatedImagePair(const AnimatedImage* const img1, in CompareAnimatedImagePair() argument
136 const int is_multi_frame_image = (img1->num_frames > 1); in CompareAnimatedImagePair()
139 ok = CompareValues(img1->canvas_width, img2->canvas_width, in CompareAnimatedImagePair()
141 ok = CompareValues(img1->canvas_height, img2->canvas_height, in CompareAnimatedImagePair()
143 ok = CompareValues(img1->num_frames, img2->num_frames, in CompareAnimatedImagePair()
151 if ((img1->format == ANIM_GIF && img1->loop_count == 65536 && in CompareAnimatedImagePair()
153 (img1->format == ANIM_WEBP && img1->loop_count == 65535 && in CompareAnimatedImagePair()
158 CompareValues(img1->loop_count, img2->loop_count, in CompareAnimatedImagePair()
160 ok = CompareBackgroundColor(img1->bgcolor, img2->bgcolor, in CompareAnimatedImagePair()
164 for (i = 0; i < img1->num_frames; ++i) { in CompareAnimatedImagePair()
[all …]
/third_party/skia/third_party/externals/libwebp/examples/
Danim_diff.c131 static int CompareAnimatedImagePair(const AnimatedImage* const img1, in CompareAnimatedImagePair() argument
136 const int is_multi_frame_image = (img1->num_frames > 1); in CompareAnimatedImagePair()
139 ok = CompareValues(img1->canvas_width, img2->canvas_width, in CompareAnimatedImagePair()
141 ok = CompareValues(img1->canvas_height, img2->canvas_height, in CompareAnimatedImagePair()
143 ok = CompareValues(img1->num_frames, img2->num_frames, in CompareAnimatedImagePair()
151 if ((img1->format == ANIM_GIF && img1->loop_count == 65536 && in CompareAnimatedImagePair()
153 (img1->format == ANIM_WEBP && img1->loop_count == 65535 && in CompareAnimatedImagePair()
158 CompareValues(img1->loop_count, img2->loop_count, in CompareAnimatedImagePair()
160 ok = CompareBackgroundColor(img1->bgcolor, img2->bgcolor, in CompareAnimatedImagePair()
164 for (i = 0; i < img1->num_frames; ++i) { in CompareAnimatedImagePair()
[all …]
/third_party/flutter/skia/gm/
Dencode_alpha_jpeg.cpp71 auto img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw() local
73 canvas->drawImage(img1, 0.0f, 100.0f); in onDraw()
79 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw()
81 canvas->drawImage(img1, 100.0f, 100.0f); in onDraw()
88 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw()
90 canvas->drawImage(img1, 200.0f, 100.0f); in onDraw()
96 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw()
98 canvas->drawImage(img1, 300.0f, 100.0f); in onDraw()
Dcgm.c73 sk_image_t* img1 = sk_image_new_from_encoded(data, NULL); in sk_test_c_api() local
76 if (img1) { in sk_test_c_api()
77 sk_canvas_draw_image(canvas, img1, W/2, H/2, NULL); in sk_test_c_api()
78 sk_image_unref(img1); in sk_test_c_api()
/third_party/skia/gm/
Dencode_alpha_jpeg.cpp71 auto img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw() local
73 canvas->drawImage(img1, 0.0f, 100.0f); in onDraw()
79 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw()
81 canvas->drawImage(img1, 100.0f, 100.0f); in onDraw()
88 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw()
90 canvas->drawImage(img1, 200.0f, 100.0f); in onDraw()
96 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw()
98 canvas->drawImage(img1, 300.0f, 100.0f); in onDraw()
Dcgm.c73 sk_image_t* img1 = sk_image_new_from_encoded(data); in sk_test_c_api() local
76 if (img1) { in sk_test_c_api()
77 sk_canvas_draw_image(canvas, img1, W/2, H/2, NULL, NULL); in sk_test_c_api()
78 sk_image_unref(img1); in sk_test_c_api()
/third_party/ffmpeg/libavcodec/tests/
Dmotion.c42 static uint8_t img1[WIDTH * HEIGHT]; variable
77 fill_random(img1, WIDTH * HEIGHT); in test_motion()
83 d1 = test_func(NULL, img1, ptr, WIDTH, 8); in test_motion()
84 d2 = ref_func(NULL, img1, ptr, WIDTH, 8); in test_motion()
100 d1 += test_func(NULL, img1, ptr, WIDTH, 8); in test_motion()
/third_party/skia/docs/examples/
Dskbug_5648.cpp10 auto img1 = bitmap.asImage(); in draw() local
11 SkDebugf("%u\n%u\n", img0->uniqueID(), img1->uniqueID()); in draw()
/third_party/skia/tests/
DMipMapTest.cpp233 auto img1 = img->withDefaultMipmaps(); in DEF_TEST() local
234 REPORTER_ASSERT(reporter, img.get() != img1.get()); in DEF_TEST()
235 REPORTER_ASSERT(reporter, img1->hasMipmaps()); in DEF_TEST()
242 REPORTER_ASSERT(reporter, img1.get() != img2.get()); in DEF_TEST()
DCanvasStateTest.cpp88 static void compare(skiatest::Reporter* reporter, SkImage* img0, SkImage* img1) { in compare() argument
97 write_image(img1, name.c_str()); in compare()
103 REPORTER_ASSERT(reporter, img1->peekPixels(&pm[1])); in compare()
DTextBlobTest.cpp426 sk_sp<SkImage> img1 = render(blob1.get()); in DEF_TEST() local
427 if (img0 && img1) { in DEF_TEST()
428 REPORTER_ASSERT(reporter, ToolUtils::equal_pixels(img0.get(), img1.get())); in DEF_TEST()
DSerializationTest.cpp713 sk_sp<SkImage> img1 = render(*readPict); in DEF_TEST() local
714 if (img0 && img1) { in DEF_TEST()
715 REPORTER_ASSERT(reporter, ToolUtils::equal_pixels(img0.get(), img1.get())); in DEF_TEST()
DImageTest.cpp1286 auto img1 = SkImage::MakeFromEncoded(data); in DEF_TEST() local
1290 img1->readPixels(nullptr, bm1.info(), bm1.getPixels(), bm1.rowBytes(), 0, 0); in DEF_TEST()
/third_party/ffmpeg/libavfilter/
Dvf_vmafmotion.c61 static uint64_t image_sad(const uint16_t *img1, const uint16_t *img2, int w, in image_sad() argument
64 ptrdiff_t img1_stride = _img1_stride / sizeof(*img1); in image_sad()
71 sum += abs(img1[j] - img2[j]); in image_sad()
73 img1 += img1_stride; in image_sad()
Dvmaf_motion.h30 uint64_t (*sad)(const uint16_t *img1, const uint16_t *img2, int w, int h,
/third_party/flutter/skia/tests/
DTextBlobTest.cpp433 sk_sp<SkImage> img1 = render(blob1.get()); in DEF_TEST() local
434 if (img0 && img1) { in DEF_TEST()
435 REPORTER_ASSERT(reporter, ToolUtils::equal_pixels(img0.get(), img1.get())); in DEF_TEST()
DSerializationTest.cpp586 sk_sp<SkImage> img1 = render(*readPict); in DEF_TEST() local
587 if (img0 && img1) { in DEF_TEST()
588 REPORTER_ASSERT(reporter, ToolUtils::equal_pixels(img0.get(), img1.get())); in DEF_TEST()
DGrSurfaceTest.cpp777 auto img1 = surf->makeImageSnapshot(); in DEF_GPUTEST_FOR_ALL_CONTEXTS() local
789 surf->getCanvas()->drawImage(std::move(img1), 0, 0); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
DImageTest.cpp1240 auto img1 = SkImage::MakeFromEncoded(data); in DEF_TEST() local
1244 img1->readPixels(bm1.info(), bm1.getPixels(), bm1.rowBytes(), 0, 0); in DEF_TEST()
/third_party/uboot/u-boot-2020.01/board/hisilicon/hikey/
DREADME98 > sudo python ~/hikey/src/hisi-idt.py -d /dev/ttyUSB0 --img1 ~/hikey/bin/recovery.bin
/third_party/ffmpeg/doc/
Dfaq.texi155 For example, img1.jpg, img2.jpg, img3.jpg,...
/third_party/openGLES/extensions/ARB/
DARB_shader_image_load_store.txt1486 layout(rgba32f) uniform image2D img1;
1489 funcA(img1); // OK, adding "restrict" is allowed
/third_party/skia/third_party/externals/opengl-registry/extensions/ARB/
DARB_shader_image_load_store.txt1476 layout(rgba32f) uniform image2D img1;
1479 funcA(img1); // OK, adding "restrict" is allowed

12