![]() |
Prusa Slicer 2.6.0
|
Classes | |
| struct | Image |
| struct | IStream |
| struct | PNGDescr |
| struct | ReadBuf |
Typedefs | |
| using | ImageGreyscale = Image< uint8_t > |
Functions | |
| bool | is_png (const ReadBuf &rb) |
| static void | png_read_callback (png_struct *png_ptr, png_bytep outBytes, png_size_t byteCountToRead) |
| bool | decode_png (IStream &in_buf, ImageGreyscale &out_img) |
| static bool | write_rgb_or_gray_to_file (const char *file_name_utf8, size_t width, size_t height, int png_color_type, const uint8_t *data) |
| bool | write_rgb_to_file (const char *file_name_utf8, size_t width, size_t height, const uint8_t *data_rgb) |
| bool | write_rgb_to_file (const std::string &file_name_utf8, size_t width, size_t height, const uint8_t *data_rgb) |
| bool | write_rgb_to_file (const std::string &file_name_utf8, size_t width, size_t height, const std::vector< uint8_t > &data_rgb) |
| bool | write_gray_to_file (const char *file_name_utf8, size_t width, size_t height, const uint8_t *data_gray) |
| bool | write_gray_to_file (const std::string &file_name_utf8, size_t width, size_t height, const uint8_t *data_gray) |
| bool | write_gray_to_file (const std::string &file_name_utf8, size_t width, size_t height, const std::vector< uint8_t > &data_gray) |
| static bool | write_rgb_or_gray_to_file_scaled (const char *file_name_utf8, size_t width, size_t height, int png_color_type, const uint8_t *data, size_t scale) |
| bool | write_rgb_to_file_scaled (const char *file_name_utf8, size_t width, size_t height, const uint8_t *data_rgb, size_t scale) |
| bool | write_rgb_to_file_scaled (const std::string &file_name_utf8, size_t width, size_t height, const uint8_t *data_rgb, size_t scale) |
| bool | write_rgb_to_file_scaled (const std::string &file_name_utf8, size_t width, size_t height, const std::vector< uint8_t > &data_rgb, size_t scale) |
| bool | write_gray_to_file_scaled (const char *file_name_utf8, size_t width, size_t height, const uint8_t *data_gray, size_t scale) |
| bool | write_gray_to_file_scaled (const std::string &file_name_utf8, size_t width, size_t height, const uint8_t *data_gray, size_t scale) |
| bool | write_gray_to_file_scaled (const std::string &file_name_utf8, size_t width, size_t height, const std::vector< uint8_t > &data_gray, size_t scale) |
| template<class Img > | |
| bool | decode_png (const ReadBuf &in_buf, Img &out_img) |
| using Slic3r::png::ImageGreyscale = typedef Image<uint8_t> |
References Slic3r::png::ReadBuf::buf, decode_png(), and Slic3r::png::ReadBuf::sz.
Here is the call graph for this function:| bool Slic3r::png::decode_png | ( | IStream & | in_buf, |
| ImageGreyscale & | out_img | ||
| ) |
References Slic3r::png::Image< PxT >::buf, Slic3r::png::Image< PxT >::cols, Slic3r::png::PNGDescr::info, Slic3r::png::PNGDescr::png, png_read_callback(), Slic3r::png::IStream::read(), and Slic3r::png::Image< PxT >::rows.
Referenced by decode_png(), and Slic3r::anonymous_namespace{SL1.cpp}::extract_slices_from_sla_archive().
Here is the call graph for this function:
Here is the caller graph for this function:References Slic3r::png::ReadBuf::buf, and Slic3r::png::ReadBuf::sz.
|
static |
References Slic3r::png::IStream::read().
Referenced by decode_png().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Slic3r::png::write_gray_to_file | ( | const char * | file_name_utf8, |
| size_t | width, | ||
| size_t | height, | ||
| const uint8_t * | data_gray | ||
| ) |
References write_rgb_or_gray_to_file().
Referenced by write_gray_to_file(), and write_gray_to_file().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Slic3r::png::write_gray_to_file | ( | const std::string & | file_name_utf8, |
| size_t | width, | ||
| size_t | height, | ||
| const std::vector< uint8_t > & | data_gray | ||
| ) |
References write_gray_to_file().
Here is the call graph for this function:| bool Slic3r::png::write_gray_to_file | ( | const std::string & | file_name_utf8, |
| size_t | width, | ||
| size_t | height, | ||
| const uint8_t * | data_gray | ||
| ) |
| bool Slic3r::png::write_gray_to_file_scaled | ( | const char * | file_name_utf8, |
| size_t | width, | ||
| size_t | height, | ||
| const uint8_t * | data_gray, | ||
| size_t | scale | ||
| ) |
References scale(), and write_rgb_or_gray_to_file_scaled().
Referenced by Slic3r::SupportGridPattern::SupportGridPattern(), write_gray_to_file_scaled(), and write_gray_to_file_scaled().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Slic3r::png::write_gray_to_file_scaled | ( | const std::string & | file_name_utf8, |
| size_t | width, | ||
| size_t | height, | ||
| const std::vector< uint8_t > & | data_gray, | ||
| size_t | scale | ||
| ) |
References scale(), and write_gray_to_file_scaled().
Here is the call graph for this function:| bool Slic3r::png::write_gray_to_file_scaled | ( | const std::string & | file_name_utf8, |
| size_t | width, | ||
| size_t | height, | ||
| const uint8_t * | data_gray, | ||
| size_t | scale | ||
| ) |
References scale(), and write_gray_to_file_scaled().
Here is the call graph for this function:
|
static |
Referenced by write_gray_to_file(), write_rgb_or_gray_to_file_scaled(), and write_rgb_to_file().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References row(), scale(), Slic3r::scaled(), and write_rgb_or_gray_to_file().
Referenced by write_gray_to_file_scaled(), and write_rgb_to_file_scaled().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Slic3r::png::write_rgb_to_file | ( | const char * | file_name_utf8, |
| size_t | width, | ||
| size_t | height, | ||
| const uint8_t * | data_rgb | ||
| ) |
References write_rgb_or_gray_to_file().
Referenced by write_rgb_to_file(), and write_rgb_to_file().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Slic3r::png::write_rgb_to_file | ( | const std::string & | file_name_utf8, |
| size_t | width, | ||
| size_t | height, | ||
| const std::vector< uint8_t > & | data_rgb | ||
| ) |
References write_rgb_to_file().
Here is the call graph for this function:| bool Slic3r::png::write_rgb_to_file | ( | const std::string & | file_name_utf8, |
| size_t | width, | ||
| size_t | height, | ||
| const uint8_t * | data_rgb | ||
| ) |
| bool Slic3r::png::write_rgb_to_file_scaled | ( | const char * | file_name_utf8, |
| size_t | width, | ||
| size_t | height, | ||
| const uint8_t * | data_rgb, | ||
| size_t | scale | ||
| ) |
References scale(), and write_rgb_or_gray_to_file_scaled().
Referenced by Slic3r::EdgeGrid::Grid::calculate_sdf(), Slic3r::EdgeGrid::save_png(), write_rgb_to_file_scaled(), and write_rgb_to_file_scaled().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Slic3r::png::write_rgb_to_file_scaled | ( | const std::string & | file_name_utf8, |
| size_t | width, | ||
| size_t | height, | ||
| const std::vector< uint8_t > & | data_rgb, | ||
| size_t | scale | ||
| ) |
References scale(), and write_rgb_to_file_scaled().
Here is the call graph for this function:| bool Slic3r::png::write_rgb_to_file_scaled | ( | const std::string & | file_name_utf8, |
| size_t | width, | ||
| size_t | height, | ||
| const uint8_t * | data_rgb, | ||
| size_t | scale | ||
| ) |
References scale(), and write_rgb_to_file_scaled().
Here is the call graph for this function: