48 SubFile(std::filesystem::path fname,
DetectorType detector, ssize_t rows, ssize_t cols, uint16_t bitdepth);
62 template <
typename DataType>
size_t read_impl_flip(std::byte *buffer);
Class to read a subfile from a RawFile.
Definition SubFile.hpp:13
size_t(SubFile::*)(std::byte *) pfunc
type of the read_impl function pointer
Definition SubFile.hpp:20
ssize_t m_rows
Definition SubFile.hpp:88
size_t bytes_per_part()
Definition SubFile.hpp:81
size_t get_part(std::byte *buffer, int frame_number)
read the subfile into a buffer with the bytes reordered and flipped
Definition SubFile.cpp:24
pfunc read_impl
Definition SubFile.hpp:21
size_t read_impl_normal(std::byte *buffer)
read the subfile into a buffer
Definition SubFile.cpp:40
std::filesystem::path m_fname
Definition SubFile.hpp:87
size_t pixels_per_part()
Definition SubFile.hpp:82
int m_sub_file_index_
Definition SubFile.hpp:91
size_t read_impl_reorder(std::byte *buffer)
read the subfile into a buffer with the bytes reordered
Definition SubFile.cpp:42
FILE * fp
Definition SubFile.hpp:85
ssize_t n_frames
Definition SubFile.hpp:90
std::map< std::pair< DetectorType, int >, pfunc > read_impl_map
map to store the read_impl functions for different detectors
Definition SubFile.hpp:28
ssize_t m_bitdepth
Definition SubFile.hpp:86
size_t frame_number(int frame_index)
Definition SubFile.cpp:92
ssize_t m_cols
Definition SubFile.hpp:89
size_t read_impl_flip(std::byte *buffer)
read the subfile into a buffer with the bytes flipped
Definition SubFile.cpp:70
Frame class to represent a single frame of data model class should be able to work with streams comin...
Definition CircularFifo.hpp:11
DetectorType
Definition defs.hpp:41