mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
Move SLA import to libslic3r with png reading using libpng
Also fix flipped object issue
This commit is contained in:
parent
2bcd36d155
commit
769ee15475
9 changed files with 359 additions and 375 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue