aboutsummaryrefslogtreecommitdiff
path: root/test/main.cpp
diff options
context:
space:
mode:
authorDylan <boss@tehbox.org>2026-03-18 16:32:29 +1300
committerDylan <boss@tehbox.org>2026-03-18 16:32:29 +1300
commite2e9be992b948595086db6ac62cfb5b822c622d6 (patch)
tree83246401b9bbb4a6a9f302cf58f3ef6bd39b9c63 /test/main.cpp
parent93a78ac64327b53f53952b625c7ce8a11bcc8651 (diff)
downloadtehimage-webp.tar.gz
tehimage-webp.zip
feat: Started on webp implementationwebp
Currently very basic, can only read simple things such as width and height
Diffstat (limited to 'test/main.cpp')
-rw-r--r--test/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/main.cpp b/test/main.cpp
index d4c2e64..d1633b8 100644
--- a/test/main.cpp
+++ b/test/main.cpp
@@ -2,6 +2,7 @@
#include <debug.h>
#include <PNGImage.h>
#include <BMPImage.h>
+#include <WEBPImage.h>
#include <zlib.h>
#include <cstdint>
#include <cstring>
@@ -21,9 +22,9 @@ int main(int argc, char* argv[])
std::string outfile = argv[2];
- TehImage::PNGImage png;
- png.readFromFile(infile);
+ TehImage::WEBPImage webp;
+ webp.readFromFile(infile);
- TehImage::BMPImage bmp(png);
+ TehImage::BMPImage bmp(webp);
bmp.writeToFile(outfile);
}