mirror of
https://salsa.debian.org/xorg-team/lib/pixman
synced 2025-09-01 02:10:49 +00:00

Given an operator and two formats, this program will composite and check all pixels where the red and blue channels are 0. That is, if the two formats are a8r8g8b8 and a4r4g4b4, all source pixels matching the mask 0xff00ff00 are composited with the given operator against all destination pixels matching the mask 0xf0f0 and the result is then verified against the do_composite() function that was moved to utils.c earlier. This program reveals that a number of operators and format combinations are not computed to within the precision currently accepted by pixel_checker_t. For example: check-formats over a8r8g8b8 r5g6b5 | grep failed | wc -l 30 reveals that there are 30 pixel combinations where OVER produces insufficiently precise results for the a8r8g8b8 and r5g6b5 formats.
14 lines
455 B
Makefile
14 lines
455 B
Makefile
include $(top_srcdir)/test/Makefile.sources
|
|
|
|
AM_CFLAGS = $(OPENMP_CFLAGS)
|
|
AM_LDFLAGS = $(OPENMP_CFLAGS) $(TESTPROGS_EXTRA_LDFLAGS)
|
|
LDADD = libutils.la $(top_builddir)/pixman/libpixman-1.la -lm $(PNG_LIBS)
|
|
AM_CPPFLAGS = -I$(top_srcdir)/pixman -I$(top_builddir)/pixman $(PNG_CFLAGS)
|
|
|
|
libutils_la_SOURCES = $(libutils_sources) $(libutils_headers)
|
|
|
|
noinst_LTLIBRARIES = libutils.la
|
|
noinst_PROGRAMS = $(TESTPROGRAMS) $(OTHERPROGRAMS)
|
|
|
|
TESTS = $(TESTPROGRAMS)
|