libbsb is a C library for reading and writing BSB format image files.
Typically used for nautical charts, BSB image files use the .KAP
extension and store cartographic information in addition to a run-length
encoded raster image. The conversion tools included are bsb2tif,
tif2bsb, bsb2png, bsb2ppm, and ppm2bsb.