Core and the app · crate

kinogaki-capture-diff

Corebin

Compares two sets of UI reference captures (tools/ui_captures.py compare BEFORE AFTER).

Repository
Core and the app (kinogaki/studio-core)
Folder
studio/core/capture-diff
Source
2 files, 357 lines
Tests
0 files, 0 lines
depends onused by tests alonedependencies for tests alone are listed below, not drawn

What it is

Compares two sets of UI reference captures (tools/ui_captures.py compare BEFORE AFTER).

Every *.png in BEFORE is compared with the file of the same name in AFTER by pixel, not by file bytes: lib-ui's captures are 8-bit RGBA. A pixel changed when one of its channels moved by more than the Tolerance's channel, and a capture differs when more than its pixels changed; the default tolerance is none, so any differing pixel fails. A capture that differs reports how many pixels changed and the box around them, so a reviewer tells a few edge pixels from a real change. Captures decode in parallel, one file per item (kinogaki-parallel).

Depends on

CrateRepositoryAsWhat it is
kinogaki-parallellib-parallelnormalScoped parallel work over disjoint output slices, sized by cost.
kinogaki-pnglib-imagenormalPNG images (ISO/IEC 15948, W3C PNG Third Edition) over kinogaki_deflate.

Third-party

None.

Used by

None.

Modules

One file: the crate root.

Public types and traits

At the crate root

Structs ReportTolerance

Enums Change

Besides these, 1 public function at module level.