Home
last modified time | relevance | path

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

12

/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/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/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/vk-gl-cts/external/vulkan-docs/src/scripts/
DcompImages.sh21 img1=$compare/$branch1
23 mkdir -p $img1
24 cp images/*.svg $img1
25 (cd $img1 ; ls) > $files1
67 if diff -q $img1/$file $img2/$file > /dev/null ; then
78 compare $img1/$file $img2/$file $compfile
/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/mesa3d/src/gallium/drivers/svga/
Dsvga_state_uav.c66 image_view_desc_identical(struct pipe_image_view *img1, in image_view_desc_identical() argument
69 if ((img1->resource != img2->resource) || in image_view_desc_identical()
70 (img1->format != img2->format) || in image_view_desc_identical()
71 (img1->access != img2->access) || in image_view_desc_identical()
72 (img1->shader_access != img2->shader_access)) in image_view_desc_identical()
75 if (img1->resource->target == PIPE_BUFFER) { in image_view_desc_identical()
76 if ((img1->u.buf.offset != img2->u.buf.offset) || in image_view_desc_identical()
77 (img1->u.buf.size != img2->u.buf.size)) in image_view_desc_identical()
/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.cpp718 sk_sp<SkImage> img1 = render(*readPict); in DEF_TEST() local
719 if (img0 && img1) { in DEF_TEST()
720 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/glslang/Test/
DspecExamples.vert137 layout(rgba32f) uniform image2D img1;
169 funcA(img1); // OK, adding "restrict" is allowed, ERROR, changing formats
/third_party/glslang/Test/baseResults/
DspecExamples.vert.out218 0:169 'img1' (layout( rgba32f) uniform image2D)
314 0:? 'img1' (layout( rgba32f) uniform image2D)
501 0:169 'img1' (layout( rgba32f) uniform image2D)
597 0:? 'img1' (layout( rgba32f) uniform image2D)
DspecExamplesConf.vert.out219 0:169 'img1' (layout( rgba32f) uniform image2D)
315 0:? 'img1' (layout( rgba32f) uniform image2D)
502 0:169 'img1' (layout( rgba32f) uniform image2D)
598 0:? 'img1' (layout( rgba32f) uniform image2D)
/third_party/ffmpeg/doc/
Dfaq.texi155 For example, img1.jpg, img2.jpg, img3.jpg,...

12