This commit is contained in:
DarthMooMancer committed 2026-11-05 10:15:01 -05:00
1 parent 342aa2d459
commit 31d2104e90
7 files changed
+260 -13

No files matched your search

+6 -8
View File
@@ -1,5 +1,5 @@
#include <stdio.h>
#include <stdlib.h>
#include <window.h>
#include "image/filters.h"
#include "image/imgio.h"
@@ -10,17 +10,15 @@ int
main()
{
JPEG img;
PPM out;
img.name = "../assets/test.jpeg";
unsigned int* buf = jpeg_load(&img);
// PPM out;
img.name = "../assets/IMG_1649.jpg";
//
unsigned int* buf = read_jpeg(&img);
for (int i = 0; i < img.len; i++)
{
buf[i] = u32_grayscale(buf[i]);
}
out = inherit_from_jpeg(&img, '3');
out.name = "../assets/test.ppm";
ppm_save(buf, out, out.name);
window_run(buf, img.width, img.height);
free(buf);
return 0;
}