mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2025-04-21 12:27:27 +03:00
ubb-vga2: non-contiguous allocation of frame buffer memory
- ubb-vga.h (calloc_phys_vec), physmem.c: non-contiguous memory allocator (for now, without really considering any mapping to physical memory) - Makefile (OBJS): added physmem.o - ubb-vga.h (grabfb), grabfb.c (grabfb): API change for non-contiguous frame buffer - ubb-vga.h (ppmimg), ppmimg.c (convert, ppmimg): API change for non-contiguous frame buffer - ubb-vga.h (tstimg), tstimg.c (pixel, color_bars, grill, grid, sides, dot, line45, arc, printc, text, ctext, tstimg): API change for non-contiguous frame buffer - tstimg.c (tstimg): we no longer need to clear the frame buffer - ubb-vga.c (frame, session, main): use a vector of line buffers instead of a contiguous frame buffer
This commit is contained in:
@@ -31,18 +31,22 @@ void *map(off_t addr, size_t size);
|
||||
uint8_t ccube_map(uint8_t r, uint8_t g, uint8_t b);
|
||||
void ccube_init(void);
|
||||
|
||||
/* physmem.c */
|
||||
|
||||
void **calloc_phys_vec(size_t n, size_t size);
|
||||
|
||||
/* grabfb.c */
|
||||
|
||||
void grabfb(void *f, int xres, int yres);
|
||||
void grabfb(void **f, int xres, int yres);
|
||||
|
||||
/* tstimg.c */
|
||||
|
||||
void tstimg(void *f, int xres, int yres);
|
||||
void tstimg(void **f, int xres, int yres);
|
||||
|
||||
/* ppmimg.c */
|
||||
|
||||
extern char *img_name;
|
||||
|
||||
void ppmimg(void *f, int xres, int yres);
|
||||
void ppmimg(void **f, int xres, int yres);
|
||||
|
||||
#endif /* !UBB_VGA_H */
|
||||
|
||||
Reference in New Issue
Block a user