consolidate all repos to one for archive

This commit is contained in:
2025-01-28 13:46:42 +01:00
commit a6610fbc7a
5350 changed files with 2705721 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#include "decompressor.h"
#include "stb.h"
void decompress(const char *filepath, const char *savepath)
{
Decompressor dec;
dec.reader.buffer.load_from_file(filepath);
int width, hight;
std::vector<unsigned char> ret = dec.decompress(width, hight);
stb_w(savepath, hight, width, 1, ret.data());
}
int main(int argc, char **argv)
{
if (argc != 2)
{
printf("Usage: %s <filepath>\n", argv[0]);
return 1;
}
decompress(argv[1], "out.bmp");
return 0;
}