SatDump 2.0.0-alpha-76a915210
|
Image saving/loading. More...
Go to the source code of this file.
Functions | |
void | satdump::image::save_png (Image &img, std::string file, bool fast=true) |
Save an image to a PNG file. | |
void | satdump::image::load_png (Image &img, std::string file, bool disableIndexing=false) |
Load an image from a PNG file. | |
void | satdump::image::load_png (Image &img, uint8_t *buffer, int size, bool disableIndexing=false) |
Load an image from a PNG buffer. | |
void | satdump::image::load_jpeg (Image &img, std::string file) |
Load an image from a JPEG (8-bit!) file. | |
void | satdump::image::load_jpeg (Image &img, uint8_t *buffer, int size) |
Load an image from a JPEG (8-bit!) buffer. | |
void | satdump::image::save_jpeg (Image &img, std::string file) |
Save an image to a JPEG (8-bit!) file. | |
void | satdump::image::save_tiff (Image &img, std::string file) |
Save an image to a TIFF file. Supports part of GeoTIFF specification. | |
void | satdump::image::load_tiff (Image &img, std::string file) |
Load an image from a TIFF file. Supports part of GeoTIFF specification. | |
void | satdump::image::save_pbm (Image &img, std::string file) |
Save an image to a PBM (and similar) file. | |
void | satdump::image::load_pbm (Image &img, std::string file) |
Load an image from a PBM (and similar) file. | |
void | satdump::image::save_j2k (Image &img, std::string file) |
Save an image to a JPEG2000 file. | |
void | satdump::image::load_j2k (Image &img, std::string file) |
Load an image from a JPEG2000 file. | |
void | satdump::image::save_qoi (Image &img, std::string file) |
Save an image to a QOI file. | |
void | satdump::image::load_qoi (Image &img, std::string file) |
Load an image from a QOI file. | |
void | satdump::image::load_img (Image &img, std::string file) |
Load an image from an image file, automatically from the right format if supported. | |
void | satdump::image::load_img (Image &img, uint8_t *buffer, int size) |
Load an image from a memory buffer automatically from the right format if supported. | |
void | satdump::image::save_img (Image &img, std::string file, bool fast=true) |
Save an image to an image file automatically to the right format if supported. | |
void | satdump::image::save_img_safe (Image &img, std::string file, bool fast=true) |
Save an image to an image file automatically to the right format if supported. This variant will NOT override existing files. | |
bool | satdump::image::append_ext (std::string *file, bool prod=false) |
Append default image file format extension as configured in satdump_cfg.json. |
Image saving/loading.
bool satdump::image::append_ext | ( | std::string * | file, |
bool | prod = false ) |
Append default image file format extension as configured in satdump_cfg.json.
file | path of the image (with or without extension) |
prod | if true, returns the default file extesions for product images |
void satdump::image::load_img | ( | Image & | img, |
std::string | file ) |
Load an image from an image file, automatically from the right format if supported.
img | image to load to |
file | filepath to load the image from |
void satdump::image::load_img | ( | Image & | img, |
uint8_t * | buffer, | ||
int | size ) |
Load an image from a memory buffer automatically from the right format if supported.
img | image to load to |
buffer | buffer to load the image from |
size | size of the buffer |
void satdump::image::load_j2k | ( | Image & | img, |
std::string | file ) |
Load an image from a JPEG2000 file.
img | image to load to |
file | filepath to load the image from |
void satdump::image::load_jpeg | ( | Image & | img, |
std::string | file ) |
Load an image from a JPEG (8-bit!) file.
img | image to load to |
file | filepath to load the image from |
void satdump::image::load_jpeg | ( | Image & | img, |
uint8_t * | buffer, | ||
int | size ) |
Load an image from a JPEG (8-bit!) buffer.
img | image to load to |
buffer | buffer to load the image from |
size | size of the buffer |
void satdump::image::load_pbm | ( | Image & | img, |
std::string | file ) |
Load an image from a PBM (and similar) file.
img | image to load to |
file | filepath to load the image from |
void satdump::image::load_png | ( | Image & | img, |
std::string | file, | ||
bool | disableIndexing = false ) |
Load an image from a PNG file.
img | image to load to |
file | filepath to load the image from |
disableIndexing | ignore palette, as to get grayscale |
void satdump::image::load_png | ( | Image & | img, |
uint8_t * | buffer, | ||
int | size, | ||
bool | disableIndexing = false ) |
Load an image from a PNG buffer.
img | image to load to |
buffer | buffer to load the image from |
size | size of the buffer |
disableIndexing | ignore palette, as to get grayscale |
void satdump::image::load_qoi | ( | Image & | img, |
std::string | file ) |
Load an image from a QOI file.
img | image to load to |
file | filepath to load the image from |
void satdump::image::load_tiff | ( | Image & | img, |
std::string | file ) |
Load an image from a TIFF file. Supports part of GeoTIFF specification.
img | image to load to |
file | filepath to load the image from |
void satdump::image::save_img | ( | Image & | img, |
std::string | file, | ||
bool | fast = true ) |
Save an image to an image file automatically to the right format if supported.
img | image to save |
file | filepath to save the image to with extension |
fast | whether to save using fast mode (slightly worse compression on PNG) or not |
void satdump::image::save_img_safe | ( | Image & | img, |
std::string | file, | ||
bool | fast = true ) |
Save an image to an image file automatically to the right format if supported. This variant will NOT override existing files.
img | image to save |
file | filepath to save the image to with extension |
fast | whether to save using fast mode (slightly worse compression on PNG) or not |
void satdump::image::save_j2k | ( | Image & | img, |
std::string | file ) |
Save an image to a JPEG2000 file.
img | image to save |
file | filepath to save the image to with extension |
void satdump::image::save_jpeg | ( | Image & | img, |
std::string | file ) |
Save an image to a JPEG (8-bit!) file.
img | image to save |
file | filepath to save the image to with extension |
void satdump::image::save_pbm | ( | Image & | img, |
std::string | file ) |
Save an image to a PBM (and similar) file.
img | image to save |
file | filepath to save the image to with extension |
void satdump::image::save_png | ( | Image & | img, |
std::string | file, | ||
bool | fast = true ) |
Save an image to a PNG file.
img | image to save |
file | filepath to save the image to with extension |
fast | whether to save using fast mode (slightly worse compression) or not |
void satdump::image::save_qoi | ( | Image & | img, |
std::string | file ) |
Save an image to a QOI file.
img | image to save |
file | filepath to save the image to with extension |
void satdump::image::save_tiff | ( | Image & | img, |
std::string | file ) |
Save an image to a TIFF file. Supports part of GeoTIFF specification.
img | image to save |
file | filepath to save the image to with extension |