|
CCSDS 124.0-B-1 C 1.0.0
CCSDS 124.0-B-1 Lossless Compression
|
CCSDS 124.0-B-1 mask update logic. More...
#include "ccsds124.h"Go to the source code of this file.
Functions | |
Build Vector Functions | |
Implements CCSDS 124.0-B-1 Section 4 (Mask Update):
CCSDS Equation 6:
The build vector accumulates bits that have changed over time. When new_mask_flag is set, the build is used to replace the mask and is then reset to zero. | |
| void | ccsds124_update_build (bitvector_t *build, const bitvector_t *input, const bitvector_t *prev_input, int new_mask_flag, size_t t) |
| Update build vector (CCSDS Equation 6). | |
Mask Vector Functions | |
CCSDS Equation 7:
The mask tracks which bits are unpredictable. When new_mask_flag is set, the mask is replaced with the build vector. | |
| void | ccsds124_update_mask (bitvector_t *mask, const bitvector_t *input, const bitvector_t *prev_input, const bitvector_t *build_prev, int new_mask_flag) |
| Update mask vector (CCSDS Equation 7). | |
Change Vector Functions | |
CCSDS Equation 8:
The change vector tracks which mask bits changed between time steps. This is used in encoding to communicate mask updates. At t=0, the caller sets Mₜ₋₁ = M₀ so that D₀ = M₀ XOR M₀ = 0 (no change at initialization). | |
| void | ccsds124_compute_change (bitvector_t *change, const bitvector_t *mask, const bitvector_t *prev_mask, size_t t) |
| Compute change vector (CCSDS Equation 8). | |
CCSDS 124.0-B-1 mask update logic.
Definition in file mask.c.