Move SLA import to libslic3r with png reading using libpng

Also fix flipped object issue
This commit is contained in:
tamasmeszaros 2020-04-28 20:21:29 +02:00
parent 2bcd36d155
commit 769ee15475
9 changed files with 359 additions and 375 deletions

View file

@ -19,12 +19,14 @@ struct RGB { uint8_t r, g, b; };
using ImageRGB = Image<RGB>;
using ImageGreyscale = Image<uint8_t>;
bool is_png(const ReadBuf &pngbuf);
// Only decodes true 8 bit grayscale png images. Returns false for other formats
// TODO: implement transformation of rgb images into grayscale...
bool decode_png(const ReadBuf &pngbuf, ImageGreyscale &img);
// TODO
// bool decode_png(Buffer &&pngbuf, ImageRGB &img);
bool is_png(const ReadBuf &pngbuf);
bool decode_png(const ReadBuf &pngbuf, ImageGreyscale &img);
}}
#endif // PNGREAD_HPP