A utility to stream MagaO-X images from xrif compressed archives to an ImageStreamIO stream. More...
#include <xrif2shmim.hpp>
Public Member Functions | |
~xrif2shmim () | |
virtual void | setupConfig () |
virtual void | loadConfig () |
virtual int | execute () |
Protected Attributes | |
xrif_t | m_xrif {nullptr} |
Configurable Parameters | |
std::string | m_dir |
The directory to search for files. Can be empty if pull path given in files. If files is empty, all archives in dir will be used. More... | |
std::vector< std::string > | m_files |
List of files to use. If dir is not empty, it will be pre-pended to each name. More... | |
size_t | m_numFrames {0} |
The number of frames to store in memory. This defines how many different images will be streamed. If 0 (the default), all frames found using dir and files are loaded and stored. More... | |
bool | m_earliest {false} |
If true, then the earliest numFrames in the archive are used. By default (if not set) the latest numFrames are used. More... | |
std::string | m_shmimName {"xrif2shmim"} |
The name of the shared memory buffer to stream to. Default is "xrif2shmim". More... | |
uint32_t | m_circBuffLength {1} |
The length of the shared memory circular buffer. Default is 1. More... | |
double | m_fps {10} |
The rate, in frames per second, at which to stream images. Default is 10 fps. More... | |
Image Data | |
uint32_t | m_width {0} |
The width of the image. More... | |
uint32_t | m_height {0} |
The height of the image. More... | |
mx::improc::eigenCube< float > | m_frames |
uint8_t | m_dataType |
The ImageStreamIO type code. More... | |
size_t | m_typeSize {0} |
The size of the type, in bytes. Result of sizeof. More... | |
IMAGE | m_imageStream |
The ImageStreamIO shared memory buffer. More... | |
A utility to stream MagaO-X images from xrif compressed archives to an ImageStreamIO stream.
Definition at line 69 of file xrif2shmim.hpp.
|
inline |
Definition at line 126 of file xrif2shmim.hpp.
|
inlinevirtual |
Definition at line 160 of file xrif2shmim.hpp.
|
inlinevirtual |
Definition at line 148 of file xrif2shmim.hpp.
|
inlinevirtual |
Definition at line 135 of file xrif2shmim.hpp.
|
protected |
The length of the shared memory circular buffer. Default is 1.
Definition at line 86 of file xrif2shmim.hpp.
Referenced by execute(), and loadConfig().
|
protected |
The ImageStreamIO type code.
Definition at line 104 of file xrif2shmim.hpp.
Referenced by execute().
|
protected |
The directory to search for files. Can be empty if pull path given in files. If files is empty, all archives in dir will be used.
Definition at line 76 of file xrif2shmim.hpp.
Referenced by execute(), and loadConfig().
|
protected |
If true, then the earliest numFrames in the archive are used. By default (if not set) the latest numFrames are used.
Definition at line 82 of file xrif2shmim.hpp.
Referenced by execute(), and loadConfig().
|
protected |
List of files to use. If dir is not empty, it will be pre-pended to each name.
Definition at line 78 of file xrif2shmim.hpp.
Referenced by execute(), and loadConfig().
|
protected |
The rate, in frames per second, at which to stream images. Default is 10 fps.
Definition at line 88 of file xrif2shmim.hpp.
Referenced by execute(), and loadConfig().
|
protected |
Definition at line 102 of file xrif2shmim.hpp.
Referenced by execute().
|
protected |
|
protected |
The ImageStreamIO shared memory buffer.
Definition at line 109 of file xrif2shmim.hpp.
Referenced by execute().
|
protected |
The number of frames to store in memory. This defines how many different images will be streamed. If 0 (the default), all frames found using dir and files are loaded and stored.
Definition at line 80 of file xrif2shmim.hpp.
Referenced by execute(), and loadConfig().
|
protected |
The name of the shared memory buffer to stream to. Default is "xrif2shmim".
Definition at line 84 of file xrif2shmim.hpp.
Referenced by execute(), and loadConfig().
|
protected |
The size of the type, in bytes. Result of sizeof.
Definition at line 106 of file xrif2shmim.hpp.
Referenced by execute().
|
protected |
|
protected |
Definition at line 93 of file xrif2shmim.hpp.
Referenced by ~xrif2shmim(), and execute().