1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2025-04-21 12:27:27 +03:00

ubb-vga2: added support for showing a PPM image

- Makefile (OBJS): added ppm.o and ppmimg.o
- ppm.h (load_ppm), ppm.c: PPM file loader, adapted from
  eda-tools/schhist/ppmdiff/ppmdiff.c
- ubb-vga.h (img_name, ppmimg), ppmimg.c: PPM image to frame buffer
  converter
- ubb-vga2.c (usage, main): the threshold is now set with the option -l
- ubb-vga2.c (usage, main): if a second argument is given, treat it as
  a PPM file
- ubb-vga2.c (usage): also documented option -t
This commit is contained in:
Werner Almesberger
2011-04-28 00:38:13 -03:00
parent 19f43a77c9
commit 080978ade0
6 changed files with 205 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ CC=mipsel-linux-gcc
CFLAGS=-Wall -g -O9 -march=mips32
LDFLAGS=-lm
OBJS=ubb-vga2.o grabfb.o tstimg.o
OBJS=ubb-vga2.o grabfb.o tstimg.o ppm.o ppmimg.o
.PHONY: all asm sch clean spotless