Write simple farbfeld-writing module
This commit is contained in:
8
include/ff.h
Normal file
8
include/ff.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef FF_H
|
||||
#define FF_H
|
||||
|
||||
#include "img.h"
|
||||
|
||||
void ff_write(int fd, img_t img);
|
||||
|
||||
#endif
|
||||
15
include/img.h
Normal file
15
include/img.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef IMG_H
|
||||
#define IMG_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
uint16_t r, g, b, a;
|
||||
} pix_t;
|
||||
|
||||
typedef struct {
|
||||
uint32_t w, h;
|
||||
pix_t *pix;
|
||||
} img_t;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user