RAII File class for reading and writing image files in various formats wrapper on a FileInterface to abstract the underlying file format.
More...
#include <File.hpp>
RAII File class for reading and writing image files in various formats wrapper on a FileInterface to abstract the underlying file format.
- Note
- documentation for each function is in the FileInterface class
◆ File() [1/2]
Construct a new File object.
- Parameters
-
| fname | path to the file |
| mode | file mode (r, w, a) |
| cfg | file configuration |
- Exceptions
-
| std::runtime_error | if the file cannot be opened |
| std::invalid_argument | if the file mode is not supported |
◆ File() [2/2]
Move constructor.
- Parameters
-
| other | File object to move from |
◆ ~File()
◆ bitdepth()
| ssize_t aare::File::bitdepth |
( |
| ) |
const |
◆ bytes_per_frame()
| size_t aare::File::bytes_per_frame |
( |
| ) |
|
◆ cols()
| ssize_t aare::File::cols |
( |
| ) |
const |
◆ frame_number()
| size_t aare::File::frame_number |
( |
size_t |
frame_index | ) |
|
◆ iread()
| Frame aare::File::iread |
( |
size_t |
frame_number | ) |
|
◆ pixels()
| size_t aare::File::pixels |
( |
| ) |
|
◆ read() [1/2]
| Frame aare::File::read |
( |
| ) |
|
◆ read() [2/2]
| std::vector< Frame > aare::File::read |
( |
size_t |
n_frames | ) |
|
◆ read_into() [1/2]
| void aare::File::read_into |
( |
std::byte * |
image_buf | ) |
|
◆ read_into() [2/2]
| void aare::File::read_into |
( |
std::byte * |
image_buf, |
|
|
size_t |
n_frames |
|
) |
| |
◆ rows()
| ssize_t aare::File::rows |
( |
| ) |
const |
◆ seek()
| void aare::File::seek |
( |
size_t |
frame_number | ) |
|
◆ tell()
| size_t aare::File::tell |
( |
| ) |
const |
◆ total_frames()
| size_t aare::File::total_frames |
( |
| ) |
const |
◆ write()
| void aare::File::write |
( |
Frame & |
frame | ) |
|
◆ file_impl
The documentation for this class was generated from the following files: