• Home
  • Raw
  • Download

Lines Matching +full:cairo +full:- +full:tests

31 #include <cairo.h>
40 * @short_description: Library for frame-related tests
44 * This library contains helpers for frame-related tests. This includes common
73 snprintf(path, PATH_MAX, "%s/frame-%s-%s-%s-%s.png", in igt_write_frame_to_png()
77 snprintf(path, PATH_MAX, "%s/frame-%s-%s-%s.png", in igt_write_frame_to_png()
88 if (fd >= 0 && index < (PATH_MAX - 1)) { in igt_write_frame_to_png()
98 * @reference: The reference cairo surface
99 * @capture: The captured cairo surface
114 int fd = -1; in igt_write_compared_frames_to_png()
125 snprintf(path, PATH_MAX, "%s/frame-%s-%s-%s.txt", in igt_write_compared_frames_to_png()
128 snprintf(path, PATH_MAX, "%s/frame-%s-%s.txt", in igt_write_compared_frames_to_png()
144 * @reference: The reference cairo surface
145 * @capture: The captured cairo surface
156 * calculated, as a DAC-ADC chain is expected to have a linear error curve.
162 * reliably detected this way, with a minimized number of false-positives.
209 diff = (int) p[i] - q[i]; in igt_check_analog_frame_match()
211 diff = -diff; in igt_check_analog_frame_match()
224 error_average[j][i] = (double) error_count[j-1][i][0] / in igt_check_analog_frame_match()
225 error_count[j-1][i][1]; in igt_check_analog_frame_match()
239 * A DAC-ADC chain is expected to have a linear absolute error on in igt_check_analog_frame_match()
276 * @reference: The reference cairo surface
277 * @capture: The captured cairo surface
284 * not pixel-perfect due to features such as scaling or YUV conversion and
294 * compared per-component, excluding positions that were marked as edges or
295 * that are at a transition between an edge and a non-edge. An error threshold
334 if (y < span || y > (height - span - 1)) in igt_check_checkerboard_frame_match()
340 if (x < span || x > (width - span - 1)) in igt_check_checkerboard_frame_match()
344 xdiff += abs(XR24_COLOR_VALUE(ref_data, ref_stride, x + span, y, c) - in igt_check_checkerboard_frame_match()
345 XR24_COLOR_VALUE(ref_data, ref_stride, x - span, y, c)); in igt_check_checkerboard_frame_match()
346 ydiff += abs(XR24_COLOR_VALUE(ref_data, ref_stride, x, y + span, c) - in igt_check_checkerboard_frame_match()
347 XR24_COLOR_VALUE(ref_data, ref_stride, x, y - span, c)); in igt_check_checkerboard_frame_match()
367 diff = abs(XR24_COLOR_VALUE(ref_data, ref_stride, x, y, c) - in igt_check_checkerboard_frame_match()
375 if (error && x >= span && x <= (width - span - 1) && in igt_check_checkerboard_frame_match()
376 edges_map[y * width + (x - span)] != in igt_check_checkerboard_frame_match()
381 if (error && y >= span && y <= (height - span - 1) && in igt_check_checkerboard_frame_match()
382 edges_map[(y - span) * width + x] != in igt_check_checkerboard_frame_match()