Write simple farbfeld-writing module

This commit is contained in:
2025-09-23 15:36:08 +01:00
commit 9d153c4e57
3 changed files with 107 additions and 0 deletions

8
include/ff.h Normal file
View 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
View 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