• Paul Kocialkowski's avatar
    lib/igt_frame: Add a checkerboard frame comparison method · c7f27710
    Paul Kocialkowski authored
    This introduces a new frame comparison method that was designed for
    patterns that follow a checkerboard style. These patterns are made of
    consecutive rectangular shapes with alternating solid colors. They are
    currently used for some Chamelium-based tests.
    
    The method is particularly adapted for cases where the edges of the
    shapes might be blurred (e.g. due to scaling), which makes it impossible
    to use pixel-perfect or CRC-based comparisons to decide whether the
    captured frame matches the reference.
    
    Overall, this test will first detect the edges of the pattern and later
    exclude them from comparison. Colors are compared between the reference
    and capture with a low threshold for error. A percentage of the faulty
    pixels is calculated and the captured frame is considered invalid if
    more than one percent of the pixels are erroneous.
    Signed-off-by: Paul Kocialkowski's avatarPaul Kocialkowski <paul.kocialkowski@bootlin.com>
    Reviewed-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>
    Reviewed-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
    c7f27710
Name
Last commit
Last update
assembler Loading commit data...
benchmarks Loading commit data...
debugger Loading commit data...
docs Loading commit data...
include/drm-uapi Loading commit data...
lib Loading commit data...
m4 Loading commit data...
man Loading commit data...
overlay Loading commit data...
runner Loading commit data...
scripts Loading commit data...
tests Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
Dockerfile.debian Loading commit data...
Dockerfile.debian-arm64 Loading commit data...
Dockerfile.debian-armhf Loading commit data...
Dockerfile.fedora Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
TODO.rst Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
meson-cross-arm64.txt Loading commit data...
meson-cross-armhf.txt Loading commit data...
meson.build Loading commit data...
meson.sh Loading commit data...
meson_options.txt Loading commit data...