Skip to main content

decode

Function decode 

Source
pub fn decode(llrs: &[i16], output: &mut [u8]) -> Result<usize, ConvError>
Expand description

Decodes a convolutionally coded frame using soft-decision Viterbi.

llrs contains paired (G1, G2) log-likelihood ratios per trellis step. Positive LLR means bit 0 is more likely. The trellis must be terminated (K−1 tail steps appended by the encoder).

Returns the number of decoded data bytes written to output.