BSD Ports

devel/rscode 1.0 NetBSD

Reed Solomon error correction code library

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Categories
devel
Package size
15.7 KiB, 53.9 KiB installed

Description

The Reed-Solomon Code is an algebraic code belonging to the class of BCH (Bose-Chaudry-Hocquehen) multiple burst correcting cyclic codes. The Reed Solomon code operates on bytes of fixed length.

Given m parity bytes, a Reed-Solomon code can correct up to m byte errors in known positions (erasures), or detect and correct up to m/2 byte errors in unknown positions.

This is an implementation of a Reed-Solomon code with 8 bit bytes, and a configurable number of parity bytes. The maximum sequence length (codeword) that can be generated is 255 bytes, including parity bytes. In practice, shorter sequences are used.

The more general error-location algorithm is the Berlekamp-Massey algorithm, which will locate up to four errors, by iteratively solving for the error-locator polynomial. The Modified Berlekamp Massey algorithm takes as initial conditions any known suspicious bytes (erasure flags) which you may have (such as might be flagged by a laser demodulator, or deduced from a failure in a cross-interleaved block code row or column).

Once the location of errors is known, error correction is done using the error-evaluator polynomial.

Install

Binary package:

pkgin install rscode

From pkgsrc:

cd /usr/pkgsrc/devel/rscode && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.0
NetBSD 10.1 aarch641.0
SmartOS / illumos x86_641.0
macOS 15 arm641.0

Dependencies

No port depends on this one.