1
0
mirror of https://frontier.innolan.net/github/AmigaExamples.git synced 2025-12-07 17:43:51 +00:00

Added tests for resize

This commit is contained in:
alpine9000
2016-03-12 13:19:12 +11:00
parent bb87233242
commit 34a592840b
3 changed files with 23 additions and 1 deletions

View File

@ -5,6 +5,12 @@ HOST_WARNINGS=$(WARN_ERROR) -pedantic-errors -Wfatal-errors -Wall -Wextra -Wno-
HOST_CFLAGS=$(HOST_WARNINGS) -O3 `GraphicsMagick-config --cppflags`
LIBS=`GraphicsMagick-config --ldflags --libs`
TEST_IMAGE=../../assets/gigi_full.png
RESIZED_IMAGE=out/gigi.png
RESIZED_LACED=out/gigi_laced.png
REFERENCE_IMAGE=reference/gigi.png
REFERENCE_LACED=reference/gigi_laced.png
$(PROGRAM): out bin $(OBJS)
gcc $(OBJS) -o $(PROGRAM) $(LIBS)
@ -24,4 +30,20 @@ bin:
mkdir bin
clean:
rm -rf out bin *~
rm -rf out bin *~
$(RESIZED_IMAGE): $(TEST_IMAGE) $(PROGRAM) Makefile
$(PROGRAM) --width=320 --height=256 --blur=0.75 --input=$(TEST_IMAGE) --output=$(RESIZED_IMAGE)
$(RESIZED_LACED): $(TEST_IMAGE) $(PROGRAM) Makefile
$(PROGRAM) --width=320 --height=512 --interlaced --blur=0.75 --input=$(TEST_IMAGE) --output=$(RESIZED_LACED)
test: $(RESIZED_IMAGE) $(RESIZED_LACED)
diff $(RESIZED_IMAGE) $(REFERENCE_IMAGE);
diff $(RESIZED_LACED) $(REFERENCE_LACED);
@echo "______ ___ _____ _____ ___________ "
@echo "| ___ \/ _ \ / ___/ ___| ___| _ \ "
@echo "| |_/ / /_\ \\\\\ \`--.\ \`--.| |__ | | | | "
@echo "| __/| _ | \`--. \\\`--. \ __|| | | | "
@echo "| | | | | |/\__/ /\__/ / |___| |/ / "
@echo "\_| \_| |_/\____/\____/\____/|___/ "

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 KiB