3.3.2.19. Class InputStream

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 image
  • block_size: blocks size
  • block_margin_size: block margin size
  • block_padding_type: block padding type

~InputStream()
InputStream(const InputStream&)
InputStream &operator=(const InputStream&)
InputStream(InputStream&&)
InputStream &operator=(InputStream&&)
sirius::Size Size()

Get the size of the input file.

Return
input file size

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