/third_party/astc-encoder/Source/ |
H A D | astcenccli_error_metrics.cpp | 114 const astcenc_image* img1, in compute_error_metrics() 129 unsigned int dim_x = astc::min(img1->dim_x, img2->dim_x); in compute_error_metrics() 130 unsigned int dim_y = astc::min(img1->dim_y, img2->dim_y); in compute_error_metrics() 131 unsigned int dim_z = astc::min(img1->dim_z, img2->dim_z); in compute_error_metrics() 133 if (img1->dim_x != img2->dim_x || in compute_error_metrics() 134 img1->dim_y != img2->dim_y || in compute_error_metrics() 135 img1->dim_z != img2->dim_z) in compute_error_metrics() 140 img1->dim_x, img1->dim_y, img1 in compute_error_metrics() 110 compute_error_metrics( bool compute_hdr_metrics, bool compute_normal_metrics, int input_components, const astcenc_image* img1, const astcenc_image* img2, int fstop_lo, int fstop_hi ) compute_error_metrics() argument [all...] |
H A D | astcenccli_internal.h | 354 * @param img1 The original image. 363 const astcenc_image* img1,
|
/third_party/skia/third_party/externals/libwebp/examples/ |
H A D | anim_diff.c | 131 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 in CompareAnimatedImagePair() [all...] |
/third_party/skia/gm/ |
H A D | encode_alpha_jpeg.cpp | 71 auto img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); variable 73 canvas->drawImage(img1, 0.0f, 100.0f); 79 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); 81 canvas->drawImage(img1, 100.0f, 100.0f); 88 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); 90 canvas->drawImage(img1, 200.0f, 100.0f); 96 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); 98 canvas->drawImage(img1, 300.0f, 100.0f);
|
H A D | cgm.c | 73 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/ |
H A D | motion.c | 43 static uint8_t img1[WIDTH * HEIGHT]; variable 78 fill_random(img1, WIDTH * HEIGHT); in test_motion() 84 d1 = test_func(NULL, img1, ptr, WIDTH, 8); in test_motion() 85 d2 = ref_func(NULL, img1, ptr, WIDTH, 8); in test_motion() 101 d1 += test_func(NULL, img1, ptr, WIDTH, 8); in test_motion()
|
/third_party/ffmpeg/tests/checkasm/ |
H A D | motion.c | 51 LOCAL_ALIGNED_16(uint8_t, img1, [WIDTH * HEIGHT]); in test_motion() 64 fill_random(img1, WIDTH * HEIGHT); in test_motion() 73 d2 = call_ref(NULL, img1, ptr, WIDTH, 8); in test_motion() 74 d1 = call_new(NULL, img1, ptr, WIDTH, 8); in test_motion() 83 bench_new(NULL, img1, ptr, WIDTH, 8); in test_motion()
|
/third_party/skia/docs/examples/ |
H A D | skbug_5648.cpp | 10 auto img1 = bitmap.asImage(); in REG_FIDDLE() local 11 SkDebugf("%u\n%u\n", img0->uniqueID(), img1->uniqueID()); in REG_FIDDLE()
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_state_uav.c | 66 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/ |
H A D | MipMapTest.cpp | 233 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()
|
H A D | CanvasStateTest.cpp | 88 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()
|
H A D | TextBlobTest.cpp | 426 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()
|
H A D | SerializationTest.cpp | 718 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()
|
H A D | ImageTest.cpp | 1286 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/ |
H A D | vf_vmafmotion.c | 61 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()
|
H A D | vmaf_motion.h | 30 uint64_t (*sad)(const uint16_t *img1, const uint16_t *img2, int w, int h,
|
/third_party/astc-encoder/Test/ |
H A D | astc_test_functional.py | 255 img1 = Image.open(image1) 259 if img1.size != img2.size: 264 if img1.getbands() != img2.getbands(): 266 self.assertEqual(img1.getbands(), ("R", "G", "B")) 278 dat1 = numpy.array(img1) 283 print(img1.load()[0, 0]) 300 img1 = Image.open(image1) 304 if img1.size != img2.size: 308 if img1.getbands() != img2.getbands(): 310 self.assertEqual(img1 [all...] |