lily_png/lily_png.h

25 lines
392 B
C
Raw Normal View History

2025-07-05 05:31:16 +02:00
#pragma once
#include "file_reader/src/file_read.h"
#include <string>
#include <zlib.h>
2025-07-05 05:31:16 +02:00
struct metadata
{
unsigned int width;
unsigned int height;
char bit_depth;
char color_type;
char compression;
char filter;
char interface;
};
2025-07-15 16:42:16 +02:00
struct color
{
unsigned char r = 0;
unsigned char g = 0;
unsigned char b = 0;
};
2025-07-08 09:00:45 +02:00
void read_png(const std::string &file_path, buffer_unsigned &data);