Home
last modified time | relevance | path

Searched refs:src_img (Results 1 – 25 of 28) sorted by relevance

12

/third_party/libdrm/tests/exynos/
Dexynos_fimg2d_test.c246 struct g2d_image src_img = {0}, dst_img = {0}; in g2d_copy_test() local
266 src_img.bo[0] = src->handle; in g2d_copy_test()
278 src_img.user_ptr[0].userptr = userptr; in g2d_copy_test()
279 src_img.user_ptr[0].size = size; in g2d_copy_test()
290 src_img.width = img_w; in g2d_copy_test()
291 src_img.height = img_h; in g2d_copy_test()
292 src_img.stride = src_img.width * 4; in g2d_copy_test()
293 src_img.buf_type = type; in g2d_copy_test()
294 src_img.color_mode = G2D_COLOR_FMT_ARGB8888 | G2D_ORDER_AXRGB; in g2d_copy_test()
295 src_img.color = 0xffff0000; in g2d_copy_test()
[all …]
/third_party/pixman/demos/
Dclip-test.c28 pixman_image_t *src_img, *dst_img; in main() local
51 src_img = create_solid_bits (0xff0000ff); in main()
70 pixman_image_composite (PIXMAN_OP_OVER, gradient_img, NULL, src_img, in main()
74 pixman_image_set_clip_region32 (src_img, &clip_region); in main()
75 pixman_image_set_source_clipping (src_img, TRUE); in main()
76 pixman_image_set_has_client_clip (src_img, TRUE); in main()
77 pixman_image_set_transform (src_img, &trans); in main()
78 pixman_image_set_repeat (src_img, PIXMAN_REPEAT_NORMAL); in main()
81 pixman_image_composite (PIXMAN_OP_OVER, src_img, NULL, dst_img, in main()
94 pixman_image_unref (src_img); in main()
Dgradient-test.c13 pixman_image_t *src_img; in main() local
61 src_img = pixman_image_create_conical_gradient (&c_inner, r_inner, in main()
65 src_img = pixman_image_create_conical_gradient (&c_inner, r_inner, in main()
67 src_img = pixman_image_create_linear_gradient (&c_inner, &c_outer, in main()
72 src_img = pixman_image_create_linear_gradient (&p1, &p2, in main()
75 pixman_image_set_transform (src_img, &trans); in main()
76 pixman_image_set_repeat (src_img, PIXMAN_REPEAT_NONE); in main()
78 pixman_image_composite (PIXMAN_OP_OVER, src_img, NULL, dest_img, in main()
87 pixman_image_unref (src_img); in main()
Dconical-test.c53 pixman_image_t *src_img, *dest_img; in main() local
82 src_img = create_conical (i); in main()
83 pixman_image_set_repeat (src_img, PIXMAN_REPEAT_NORMAL); in main()
85 pixman_image_set_transform (src_img, &transform); in main()
88 PIXMAN_OP_OVER, src_img, NULL,dest_img, in main()
92 pixman_image_unref (src_img); in main()
Dclip-in.c27 …pixman_image_t *src_img = pixman_image_create_bits (PIXMAN_a8r8g8b8, SMALL, SMALL, sbits, 4 * SMAL… in main() local
34 src_img, NULL, dest_img, in main()
37 pixman_image_set_transform (src_img, &trans); in main()
40 src_img, NULL, dest_img, in main()
45 pixman_image_unref (src_img); in main()
Dradial-test.c141 pixman_image_t *src_img, *dest_img; in main() local
182 src_img = create_radial (i); in main()
183 pixman_image_set_transform (src_img, &transform); in main()
187 pixman_image_set_repeat (src_img, repeat[j]); in main()
190 src_img, in main()
200 pixman_image_unref (src_img); in main()
Dtri-test.c16 pixman_image_t *src_img, *dest_img; in main() local
31 src_img = pixman_image_create_solid_fill (&color); in main()
35 src_img, in main()
43 pixman_image_unref (src_img); in main()
Dtrap-test.c13 pixman_image_t *src_img; in main() local
33 src_img = pixman_image_create_solid_fill (&white); in main()
39 src_img, mask_img, dest_img, in main()
44 pixman_image_unref (src_img); in main()
Dalpha-test.c18 pixman_image_t *src_img; in main() local
69 src_img = pixman_image_create_bits (PIXMAN_a8r8g8b8, in main()
102 pixman_image_set_alpha_map (src_img, alpha_img, 10, 10); in main()
104 pixman_image_composite (PIXMAN_OP_OVER, src_img, NULL, dest_img, in main()
113 pixman_image_unref (src_img); in main()
Dlinear-gradient.c10 pixman_image_t *src_img, *dest_img; in main() local
34 src_img = pixman_image_create_linear_gradient (&p1, &p2, stops, ARRAY_LENGTH (stops)); in main()
37 src_img, in main()
/third_party/pixman/test/
Dgradient-crash-test.c12 pixman_image_t *src_img; in main() local
129 src_img = pixman_image_create_conical_gradient (&(pair->p0), r_inner, in main()
132 src_img = pixman_image_create_radial_gradient (&(pair->p0), &(pair->p1), in main()
136 src_img = pixman_image_create_linear_gradient (&(pair->p0), &(pair->p1), in main()
141 pixman_image_set_transform (src_img, &transformations[k]); in main()
143 pixman_image_set_repeat (src_img, PIXMAN_REPEAT_NONE); in main()
144 pixman_image_composite (PIXMAN_OP_OVER, src_img, NULL, dest_img, in main()
148 pixman_image_unref (src_img); in main()
Dscaling-crash-test.c30 pixman_image_t * src_img; in run_test() local
61 src_img = pixman_image_create_bits ( in run_test()
66 pixman_image_composite32 (PIXMAN_OP_SRC, solid, NULL, src_img, in run_test()
74 pixman_image_set_transform (src_img, &transform); in run_test()
75 pixman_image_set_repeat (src_img, repeat); in run_test()
77 pixman_image_set_filter (src_img, filter, kernel, 27); in run_test()
79 pixman_image_set_filter (src_img, filter, NULL, 0); in run_test()
81 pixman_image_composite (PIXMAN_OP_SRC, src_img, NULL, dst_img, in run_test()
84 pixman_image_unref (src_img); in run_test()
Dcover-test.c219 pixman_image_t *src_img, in check_transform() argument
241 assert (v2.vector[0] <= pixman_int_to_fixed (src_img->bits.width) - in check_transform()
243 assert (v2.vector[1] <= pixman_int_to_fixed (src_img->bits.height) - in check_transform()
250 assert (v2.vector[0] <= pixman_int_to_fixed (src_img->bits.width)); in check_transform()
251 assert (v2.vector[1] <= pixman_int_to_fixed (src_img->bits.height)); in check_transform()
265 pixman_image_t *src_img, *dst_img, *mask_img; in test_cover() local
319 src_img = src_imgs[src_fmt_index]; in test_cover()
320 pixman_image_set_filter (src_img, filter, NULL, 0); in test_cover()
323 src_img->bits.width, in test_cover()
326 src_img->bits.height, in test_cover()
[all …]
Daffine-test.c29 pixman_image_t * src_img; in test_composite() local
101 src_img = pixman_image_create_bits ( in test_composite()
107 image_endian_swap (src_img); in test_composite()
180 pixman_image_set_transform (src_img, &transform); in test_composite()
203 pixman_image_set_repeat (src_img, repeat); in test_composite()
206 pixman_image_set_filter (src_img, PIXMAN_FILTER_NEAREST, NULL, 0); in test_composite()
208 pixman_image_set_filter (src_img, PIXMAN_FILTER_BILINEAR, NULL, 0); in test_composite()
255 pixman_image_set_clip_region (src_img, &clip); in test_composite()
256 pixman_image_set_source_clipping (src_img, 1); in test_composite()
285 pixman_image_composite (op, src_img, NULL, dst_img, in test_composite()
[all …]
Dfetch-test.c151 pixman_image_t *src_img; in main() local
160 src_img = pixman_image_create_bits (testcases[i].format, in main()
165 pixman_image_set_indexed(src_img, testcases[i].indexed); in main()
175 pixman_image_set_accessors (src_img, reader, writer); in main()
179 pixman_image_composite (PIXMAN_OP_SRC, src_img, NULL, dst_img, in main()
182 pixman_image_unref (src_img); in main()
Dscaling-test.c53 pixman_image_t * src_img; in test_composite() local
169 src_img = pixman_image_create_bits ( in test_composite()
178 image_endian_swap (src_img); in test_composite()
189 pixman_image_set_transform (src_img, &transform); in test_composite()
247 pixman_image_set_repeat (src_img, repeat); in test_composite()
250 pixman_image_set_filter (src_img, PIXMAN_FILTER_NEAREST, NULL, 0); in test_composite()
252 pixman_image_set_filter (src_img, PIXMAN_FILTER_BILINEAR, NULL, 0); in test_composite()
282 pixman_image_set_clip_region (src_img, &clip); in test_composite()
283 pixman_image_set_source_clipping (src_img, 1); in test_composite()
355 scale_x, scale_y, repeat, src_img->common.filter); in test_composite()
[all …]
Dblitters-test.c235 pixman_image_t *src_img = NULL; in test_composite() local
271 src_img = create_random_image (img_fmt_list, max_width, max_height, in test_composite()
277 src_img = create_random_image (img_fmt_list, 1, 1, in test_composite()
280 pixman_image_set_repeat (src_img, PIXMAN_REPEAT_NORMAL); in test_composite()
286 src_width = pixman_image_get_width (src_img); in test_composite()
287 src_height = pixman_image_get_height (src_img); in test_composite()
288 src_stride = pixman_image_get_stride (src_img); in test_composite()
294 srcbuf = pixman_image_get_data (src_img); in test_composite()
362 pixman_image_composite (op, src_img, mask_img, dst_img, in test_composite()
368 free_random_image (0, src_img, PIXMAN_null); in test_composite()
Dlowlevel-blt-bench.c172 pixman_image_t * src_img, in bench_L() argument
204 call_func (func, op, src_img, mask_img, dst_img, x, 0, x, 0, 63 - x, 0, width, lines_count); in bench_L()
213 pixman_image_t * src_img, in bench_M() argument
226 call_func (func, op, src_img, mask_img, dst_img, x, 0, x, 0, 1, 0, WIDTH - 64, HEIGHT); in bench_M()
235 pixman_image_t * src_img, in bench_HT() argument
260 call_func (func, op, src_img, mask_img, dst_img, x, y, x, y, x, y, w, h); in bench_HT()
270 pixman_image_t * src_img, in bench_VT() argument
295 call_func (func, op, src_img, mask_img, dst_img, x, y, x, y, x, y, w, h); in bench_VT()
305 pixman_image_t * src_img, in bench_R() argument
331 call_func (func, op, src_img, mask_img, dst_img, sx, sy, sx, sy, dx, dy, w, h); in bench_R()
[all …]
Dcomposite-traps-test.c51 pixman_image_t * src_img; in test_composite() local
87 src_img = pixman_image_create_solid_fill ( in test_composite()
115 src_img = pixman_image_create_bits ( in test_composite()
118 pixman_image_set_destroy_function (src_img, destroy_bits, orig); in test_composite()
143 pixman_image_set_clip_region (src_img, &clip); in test_composite()
144 pixman_image_set_source_clipping (src_img, 1); in test_composite()
148 image_endian_swap (src_img); in test_composite()
226 pixman_composite_trapezoids (op, src_img, dst_img, mask_format, in test_composite()
239 pixman_image_unref (src_img); in test_composite()
Dsolid-test.c275 pixman_image_t *src_img; in test_solid() local
290 src_img = create_solid_image (img_fmt_list, src_buf, &src_fmt); in test_solid()
293 src_img = create_solid_image (img_fmt_list, src_buf, &src_fmt); in test_solid()
297 src_img = create_multi_pixel_image (img_fmt_list, src_buf, &src_fmt); in test_solid()
317 src_fmt == PIXMAN_solid ? 1 : src_img->bits.width, in test_solid()
322 pixman_image_composite (op, src_img, mask_img, dst_img, in test_solid()
330 pixman_image_unref (src_img); in test_solid()
Dthread-test.c92 pixman_image_t *dst_img, *src_img; in thread() local
107 src_img = pixman_image_create_bits ( in thread()
113 image_endian_swap (src_img); in thread()
122 src_img, NULL, dst_img, in thread()
127 pixman_image_unref (src_img); in thread()
Da1-trap-test.c13 pixman_image_t *src_img; in main() local
34 src_img = pixman_image_create_solid_fill (&red); in main()
41 src_img, mask_img, dest_img, in main()
/third_party/flutter/skia/tests/
DSerialProcsTest.cpp30 auto src_img = GetResourceAsImage("images/mandrill_128.png"); in DEF_TEST() local
58 canvas->drawImage(src_img, 0, 0, nullptr); in DEF_TEST()
62 State state = { magic_str, src_img.get() }; in DEF_TEST()
79 REPORTER_ASSERT(reporter, ToolUtils::equal_pixels(src_img.get(), dst_img.get())); in DEF_TEST()
/third_party/skia/tests/
DSerialProcsTest.cpp30 auto src_img = GetResourceAsImage("images/mandrill_128.png"); in DEF_TEST() local
58 canvas->drawImage(src_img, 0, 0); in DEF_TEST()
62 State state = { magic_str, src_img.get() }; in DEF_TEST()
79 REPORTER_ASSERT(reporter, ToolUtils::equal_pixels(src_img.get(), dst_img.get())); in DEF_TEST()
/third_party/mesa3d/src/gallium/frontends/clover/api/
Dtransfer.cpp187 image &src_img, const vector_t &src_orig, in validate_copy() argument
189 if (dst_img.format() != src_img.format()) in validate_copy()
192 if (dst_img == src_img) { in validate_copy()
717 auto &src_img = obj<image>(d_src_mem); in clEnqueueCopyImage() local
726 validate_object(q, src_img, src_origin, region); in clEnqueueCopyImage()
727 validate_copy(q, dst_img, dst_origin, src_img, src_origin, region); in clEnqueueCopyImage()
732 &src_img, src_origin, in clEnqueueCopyImage()
750 auto &src_img = obj<image>(d_src_mem); in clEnqueueCopyImageToBuffer() local
755 auto dst_pitch = pitch(region, {{ src_img.pixel_size() }}); in clEnqueueCopyImageToBuffer()
757 auto src_pitch = pitch(region, {{ src_img.pixel_size(), in clEnqueueCopyImageToBuffer()
[all …]

12