SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
io.h
Go to the documentation of this file.
1#pragma once
2
7
8#include "image.h"
9#include <string>
10
11namespace satdump
12{
13 namespace image
14 {
22 void save_png(Image &img, std::string file, bool fast = true);
23
31 void load_png(Image &img, std::string file, bool disableIndexing = false);
32
41 void load_png(Image &img, uint8_t *buffer, int size, bool disableIndexing = false);
42
49 void load_jpeg(Image &img, std::string file);
50
58 void load_jpeg(Image &img, uint8_t *buffer, int size);
59
66 void save_jpeg(Image &img, std::string file);
67
75 void save_tiff(Image &img, std::string file);
76
84 void load_tiff(Image &img, std::string file);
85
92 void save_pbm(Image &img, std::string file);
93
100 void load_pbm(Image &img, std::string file);
101
108 void save_j2k(Image &img, std::string file);
109
116 void load_j2k(Image &img, std::string file);
117
124 void save_qoi(Image &img, std::string file);
125
132 void load_qoi(Image &img, std::string file);
133
141 void load_img(Image &img, std::string file);
142
151 void load_img(Image &img, uint8_t *buffer, int size);
152
161 void save_img(Image &img, std::string file, bool fast = true);
162
172 void save_img_safe(Image &img, std::string file, bool fast = true);
173
182 bool append_ext(std::string *file, bool prod = false);
183 } // namespace image
184} // namespace satdump
Definition image.h:17
Core Image class.
void save_jpeg(Image &img, std::string file)
Save an image to a JPEG (8-bit!) file.
Definition jpegio.cpp:130
void save_qoi(Image &img, std::string file)
Save an image to a QOI file.
Definition qoiio.cpp:14
void load_pbm(Image &img, std::string file)
Load an image from a PBM (and similar) file.
Definition pbmio.cpp:87
void load_png(Image &img, std::string file, bool disableIndexing=false)
Load an image from a PNG file.
Definition pngio.cpp:91
void save_pbm(Image &img, std::string file)
Save an image to a PBM (and similar) file.
Definition pbmio.cpp:14
void load_tiff(Image &img, std::string file)
Load an image from a TIFF file. Supports part of GeoTIFF specification.
Definition tiffio.cpp:100
void load_j2k(Image &img, std::string file)
Load an image from a JPEG2000 file.
Definition j2kio.cpp:125
void save_png(Image &img, std::string file, bool fast=true)
Save an image to a PNG file.
Definition pngio.cpp:13
void load_qoi(Image &img, std::string file)
Load an image from a QOI file.
Definition qoiio.cpp:62
void save_j2k(Image &img, std::string file)
Save an image to a JPEG2000 file.
Definition j2kio.cpp:13
void save_tiff(Image &img, std::string file)
Save an image to a TIFF file. Supports part of GeoTIFF specification.
Definition tiffio.cpp:17
void load_jpeg(Image &img, std::string file)
Load an image from a JPEG (8-bit!) file.
Definition jpegio.cpp:25