Expand description
rust-aec is a pure Rust decoder for CCSDS 121.0-B-3 Adaptive Entropy Coding (AEC).
Primary goal: support GRIB2 Data Representation Template 5.0 = 42 (CCSDS/AEC) without
requiring native libaec.
§Quick start
use rust_aec::{decode, flags_from_grib2_ccsds_flags, AecParams};
// In a real GRIB2 pipeline, `payload` is Section 7 and `num_points` comes from Section 5.
// This snippet focuses on API shape and compiles without external files.
let payload: Vec<u8> = Vec::new();
let num_points: usize = 0;
let params = AecParams::new(12, 32, 128, flags_from_grib2_ccsds_flags(0x0e));
let decoded = decode(&payload, params, num_points);
assert!(decoded.is_ok());Re-exports§
Modules§
Functions§
- decode
- Decode an AEC bitstream into packed sample bytes.
- decode_
into - Decode an AEC bitstream into a caller-provided output buffer.
- flags_
from_ grib2_ ccsds_ flags - Helper: convert GRIB2
ccsdsFlags(template 5.42) toAecFlags.