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

GK-2A-specific Segmented Decoder. More...

#include <segment_decoder.h>

Inheritance diagram for satdump::xrit::GK2ASegmentedImageDecoder:
satdump::xrit::SegmentedImageDecoder

Public Member Functions

void init (int bit_depth, int max_seg, int segment_width, int segment_height)
 GK2ASegmentedImageDecoder (XRITFile &file)
void pushSegment (image::Image &data, int segc, int pos)
void pushSegment (XRITFile &file)
 Push a segment into the work-in-progress image. These should already be filtered using file_info.seg_groupid.
bool isComplete ()
 Allows knowing if an image is complete, to save it instantly.
void reset ()
 Resets the decoder, to lower RAM usage.
bool hasData ()
 Allows knowing if an image has data at all (and hence, worth saving)

Additional Inherited Members

Public Attributes inherited from satdump::xrit::SegmentedImageDecoder
image::Image image
XRITFileInfo info

Detailed Description

GK-2A-specific Segmented Decoder.

Member Function Documentation

◆ hasData()

bool satdump::xrit::GK2ASegmentedImageDecoder::hasData ( )
inlinevirtual

Allows knowing if an image has data at all (and hence, worth saving)

Returns
true if at least 1 segment is present

Implements satdump::xrit::SegmentedImageDecoder.

◆ isComplete()

bool satdump::xrit::GK2ASegmentedImageDecoder::isComplete ( )
inlinevirtual

Allows knowing if an image is complete, to save it instantly.

Returns
true if complete

Implements satdump::xrit::SegmentedImageDecoder.

◆ pushSegment()

void satdump::xrit::GK2ASegmentedImageDecoder::pushSegment ( XRITFile & file)
inlinevirtual

Push a segment into the work-in-progress image. These should already be filtered using file_info.seg_groupid.

Parameters
filesegment to push

Implements satdump::xrit::SegmentedImageDecoder.

◆ reset()

void satdump::xrit::GK2ASegmentedImageDecoder::reset ( )
inlinevirtual

Resets the decoder, to lower RAM usage.

Implements satdump::xrit::SegmentedImageDecoder.


The documentation for this class was generated from the following file: