diff options
| author | Dylan <boss@tehbox.org> | 2026-03-18 16:32:29 +1300 |
|---|---|---|
| committer | Dylan <boss@tehbox.org> | 2026-03-18 16:32:29 +1300 |
| commit | e2e9be992b948595086db6ac62cfb5b822c622d6 (patch) | |
| tree | 83246401b9bbb4a6a9f302cf58f3ef6bd39b9c63 /test | |
| parent | 93a78ac64327b53f53952b625c7ce8a11bcc8651 (diff) | |
| download | tehimage-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')
| -rw-r--r-- | test/main.cpp | 7 |
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); } |
