|
SatDump 2.0.0-alpha-520736c72
|
All-in-on class to convert a set of xRIT files provided in an arbitrary order into products. More...
#include <xrit_channel_processor.h>
Classes | |
| struct | wip_images |
Public Types | |
| enum | xrit_image_status { RECEIVING , SAVING , IDLE } |
Public Member Functions | |
| void | push (xrit::XRITFileInfo &finfo, XRITFile &file) |
| Push a file to process. See class documenation for more information on using this class. | |
| void | flush () |
| Forces all segmented decoders that do hold data to save their images now. Should be called when the decoder is about to exit, to save lingering data. | |
Public Attributes | |
| std::map< std::string, std::unique_ptr< wip_images > > | all_wip_images |
| std::mutex | ui_img_mtx |
| std::string | directory = "" |
| bool | in_memory_mode = false |
| std::map< std::string, std::shared_ptr< products::ImageProduct > > | in_memory_products |
All-in-on class to convert a set of xRIT files provided in an arbitrary order into products.
This will handle allocating segmented decoders for each channel, calibration, metadata...
Files provided should be provided sequentially for each 'groupid' you wish to decode, as upon a change, the segmented decoders resets themselves. This is well suited to live downlinks which are always sequential, and offline decoding where files are already filtered by group.
| directory | directory to save output files into. MUST be set by the user (unless in_memory_mode is true) |
| in_memory_mode | If true, generated products are kept in memory. NOT recommended for live processing, as RAM usage will only increase. |
| in_memory_products | if in_memory_mode is enabled, contains the output products |
| void satdump::xrit::XRITChannelProcessor::push | ( | xrit::XRITFileInfo & | finfo, |
| XRITFile & | file ) |
Push a file to process. See class documenation for more information on using this class.
| finfo | xRIT file info |
| file | actual xRIT file |