Sirius
0.0.0
|
Stream an image in block. More...
#include <sirius/gdal/input_stream.h>
Public Member Functions | |
InputStream (const std::string &image_path, const sirius::Size &block_size, const sirius::Size &block_margin_size, PaddingType block_padding_type) | |
Instanciate an InputStreamer and set its block size. More... | |
~InputStream ()=default | |
InputStream (const InputStream &)=delete | |
InputStream & | operator= (const InputStream &)=delete |
InputStream (InputStream &&)=delete | |
InputStream & | operator= (InputStream &&)=delete |
sirius::Size | Size () |
Get the size of the input file. More... | |
StreamBlock | Read (std::error_code &ec) |
Read a block from the image. More... | |
bool | IsAtEnd () |
Indicate end of image. More... | |
Stream an image in block.
sirius::gdal::InputStream::InputStream | ( | const std::string & | image_path, |
const sirius::Size & | block_size, | ||
const sirius::Size & | block_margin_size, | ||
PaddingType | block_padding_type | ||
) |
Instanciate an InputStreamer and set its block size.
image_path | path to the input image |
block_size | blocks size |
block_margin_size | block margin size |
block_padding_type | block padding type |
|
default |
|
delete |
|
delete |
|
inline |
Indicate end of image.
|
delete |
|
delete |
StreamBlock sirius::gdal::InputStream::Read | ( | std::error_code & | ec | ) |
Read a block from the image.
ec | error code if operation failed |
|
inline |
Get the size of the input file.