SatDump 2.0.0-alpha-520736c72
Loading...
Searching...
No Matches
satdump::xrit::XRITChannelProcessor Class Reference

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

Detailed Description

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.

Parameters
directorydirectory to save output files into. MUST be set by the user (unless in_memory_mode is true)
in_memory_modeIf true, generated products are kept in memory. NOT recommended for live processing, as RAM usage will only increase.
in_memory_productsif in_memory_mode is enabled, contains the output products

Member Function Documentation

◆ push()

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.

Parameters
finfoxRIT file info
fileactual xRIT file

The documentation for this class was generated from the following files:
  • plugins/xrit_support/xrit/processor/xrit_channel_processor.h
  • plugins/xrit_support/xrit/processor/xrit_channel_processor.cpp
  • plugins/xrit_support/xrit/processor/xrit_channel_processor_saveimg.cpp