SatDump 2.0.0-alpha-520736c72
Loading...
Searching...
No Matches
segment_decoder.h
Go to the documentation of this file.
1#pragma once
2
7
8#include "image/image.h"
9#include "xrit/identify.h"
10#include "xrit/xrit_file.h"
11#include <cstring>
12
13namespace satdump
14{
15 namespace xrit
16 {
26 {
27 public:
33 virtual void pushSegment(XRITFile &file) = 0;
34
40 virtual bool isComplete() = 0;
41
45 virtual void reset() = 0;
46
52 virtual bool hasData() = 0;
53
54 public:
55 image::Image image;
56 XRITFileInfo info;
57 };
58 } // namespace xrit
59} // namespace satdump
Definition image.h:17
Abstract Segmented decoder implementation to be overriden for mission-specific decoders.
Definition segment_decoder.h:26
virtual bool hasData()=0
Allows knowing if an image has data at all (and hence, worth saving)
virtual bool isComplete()=0
Allows knowing if an image is complete, to save it instantly.
virtual void pushSegment(XRITFile &file)=0
Push a segment into the work-in-progress image. These should already be filtered using file_info....
virtual void reset()=0
Resets the decoder, to lower RAM usage.
Contains functions to identify and process xRIT files.
Core Image class.
Struct holding all identifying information on a xRIT files being processed.
Definition identify.h:56
Definition xrit_file.h:143