3.3.2.19. Class InputStream¶
- Defined in File input_stream.h
3.3.2.19.1. Class Documentation¶
-
class
InputStream
¶ Stream an image in block.
Public 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.
- Parameters
image_path
: path to the input imageblock_size
: blocks sizeblock_margin_size
: block margin sizeblock_padding_type
: block padding type
-
~InputStream
()¶
-
InputStream
(const InputStream&)¶
-
InputStream &
operator=
(const InputStream&)¶
-
InputStream
(InputStream&&)¶
-
InputStream &
operator=
(InputStream&&)¶
-
StreamBlock
Read
(std::error_code &ec)¶ Read a block from the image.
- Return
- block read
- Parameters
ec
: error code if operation failed
-
bool
IsAtEnd
()¶ Indicate end of image.
- Return
- boolean if end is reached
-