CCSDS 124.0-B-1 C 1.0.0
CCSDS 124.0-B-1 Lossless Compression
Loading...
Searching...
No Matches
ccsds124_decompressor Struct Reference

Decompressor state structure. More...

#include <ccsds124.h>

Data Fields

Configuration (immutable after init)
size_t F
 
bitvector_t initial_mask
 
uint8_t robustness
 
State (updated each cycle)
bitvector_t mask
 
bitvector_t prev_output
 
bitvector_t Xt
 
Cycle counter
size_t t
 
Diagnostics
uint8_t mask_inconsistent
 
uint8_t count_f_mismatch
 
Accuracy guarantee tracking
uint8_t mask_synced
 
uint8_t received_status_ring [CCSDS124_MAX_VT_HISTORY]
 
uint8_t received_status_count
 
uint8_t received_status_index
 

Detailed Description

Decompressor state structure.

Maintains all state needed for sequential packet decompression. Must be initialized with ccsds124_decompressor_init() before use.

Definition at line 872 of file ccsds124.h.

Field Documentation

◆ count_f_mismatch

uint8_t ccsds124_decompressor::count_f_mismatch

Set when COUNT(F) in rt=1 packet differs from expected F

Definition at line 895 of file ccsds124.h.

Referenced by ccsds124_decompress_packet_checked(), ccsds124_decompress_packet_internal(), ccsds124_decompressor_init(), and ccsds124_decompressor_reset().

◆ F

size_t ccsds124_decompressor::F

Output vector length in bits

Definition at line 875 of file ccsds124.h.

Referenced by ccsds124_decompress(), ccsds124_decompress_packet_internal(), and ccsds124_decompressor_init().

◆ initial_mask

bitvector_t ccsds124_decompressor::initial_mask

M₀: Initial mask vector

Definition at line 876 of file ccsds124.h.

Referenced by ccsds124_decompressor_init(), and ccsds124_decompressor_reset().

◆ mask

bitvector_t ccsds124_decompressor::mask

Mₜ: Current mask vector

Definition at line 882 of file ccsds124.h.

Referenced by ccsds124_decompress_packet_internal(), ccsds124_decompressor_init(), and ccsds124_decompressor_reset().

◆ mask_inconsistent

uint8_t ccsds124_decompressor::mask_inconsistent

Set when ft=1 full mask differs from delta-updated mask

Definition at line 894 of file ccsds124.h.

Referenced by ccsds124_decompress_packet_checked(), ccsds124_decompress_packet_internal(), ccsds124_decompressor_init(), and ccsds124_decompressor_reset().

◆ mask_synced

uint8_t ccsds124_decompressor::mask_synced

1 when decoder mask is known to match encoder mask

Definition at line 900 of file ccsds124.h.

Referenced by ccsds124_decompress_packet_checked(), ccsds124_decompressor_init(), ccsds124_decompressor_notify_packet_loss(), and ccsds124_decompressor_reset().

◆ prev_output

bitvector_t ccsds124_decompressor::prev_output

Iₜ₋₁: Previous output packet

Definition at line 883 of file ccsds124.h.

Referenced by ccsds124_decompress_packet_internal(), ccsds124_decompressor_init(), and ccsds124_decompressor_reset().

◆ received_status_count

uint8_t ccsds124_decompressor::received_status_count

◆ received_status_index

uint8_t ccsds124_decompressor::received_status_index

◆ received_status_ring

uint8_t ccsds124_decompressor::received_status_ring[CCSDS124_MAX_VT_HISTORY]

Status history: 0x00=guaranteed, 0x01=unguaranteed, 0x02=lost

Definition at line 901 of file ccsds124.h.

Referenced by ccsds124_decompress_packet_checked(), ccsds124_decompressor_init(), ccsds124_decompressor_notify_packet_loss(), and ccsds124_decompressor_reset().

◆ robustness

uint8_t ccsds124_decompressor::robustness

Rₜ: Base robustness level (0-7)

Definition at line 877 of file ccsds124.h.

Referenced by ccsds124_decompressor_init().

◆ t

size_t ccsds124_decompressor::t

◆ Xt

bitvector_t ccsds124_decompressor::Xt

Xₜ: Robustness window (positive changes)

Definition at line 884 of file ccsds124.h.

Referenced by ccsds124_decompress_packet_internal(), ccsds124_decompressor_init(), and ccsds124_decompressor_reset().


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