jbig2

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: AGPL-3.0, AGPL-3.0-only Imports: 6 Imported by: 0

Documentation

Overview

Package jbig2 provides the jbig2 standard image Encoder and Decoder. All the comments reference to the 'ISO/IEC 14992 INFORMATION TECHNOLOGY - CODED REPRESENTATION OF PICTURE AND AUDIO INFORMATION - LOSSY/LOSSLESS CODING OF BI-LEVEL IMAGES JBIG committee 1999 July 16' document. The document is available and can be downloaded at: 'https://github.com/agl/jbig2enc/blob/master/fcd14492.pdf'

The decoder was based on the 'Apache PDFBox JBIG2 Java plugin' which can be found at: 'https://github.com/apache/pdfbox-jbig2'.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBytes

func DecodeBytes(encoded []byte, parameters decoder.Parameters, globals ...Globals) ([]byte, error)

DecodeBytes decodes jbig2 'encode' byte slice data, with provided 'parameters' and optional 'globals'. The function decodes only a single page from the given input.

Types

type Globals

type Globals map[int]*segments.Header

Globals is the v3 mapping of the jbig2 segments to header mapping.

func DecodeGlobals

func DecodeGlobals(encoded []byte) (Globals, error)

DecodeGlobals decodes globally defined data segments from the provided 'encoded' byte slice.

func (Globals) ToDocumentGlobals

func (g Globals) ToDocumentGlobals() *document.Globals

ToDocumentGlobals converts 'jbig2.Globals' into '*document.Globals'

Directories

Path Synopsis
Package basic contains common structures, slices and maps used within the jbig2 package.
Package basic contains common structures, slices and maps used within the jbig2 package.
Package bitmap contains the bitmap data container for the binary images used when decoding the jbig2 encoded images.
Package bitmap contains the bitmap data container for the binary images used when decoding the jbig2 encoded images.
Package decoder provides primitives used to decode the jbig2 data stream.
Package decoder provides primitives used to decode the jbig2 data stream.
arithmetic
Package arithmetic contains the jbig2 arithmetic decoder used to decode the jbig2 encoded segments.
Package arithmetic contains the jbig2 arithmetic decoder used to decode the jbig2 encoded segments.
huffman
Package huffman contains jbig2 huffman tables used to decode jbig2 encoded data segments.
Package huffman contains jbig2 huffman tables used to decode jbig2 encoded data segments.
mmr
Package mmr contains the jbig2 mmr decoder used to decode jbig2 encoded data segments.
Package mmr contains the jbig2 mmr decoder used to decode jbig2 encoded data segments.
Package document provides jbig2 encoding primitives used for encoding and decoding purpose.
Package document provides jbig2 encoding primitives used for encoding and decoding purpose.
segments
Package segments provides jbig2 segments models used in the jbig2 document decoding process.
Package segments provides jbig2 segments models used in the jbig2 document decoding process.
encoder
arithmetic
Package arithmetic provides jbig2 arithmetic encoder definitions.
Package arithmetic provides jbig2 arithmetic encoder definitions.
classer
Package classer contains apache leptonica like implementation of the jbig2 classificator.
Package classer contains apache leptonica like implementation of the jbig2 classificator.
Package errors contains error wrappers and creators used for precise error messaging in the jbig2 package.
Package errors contains error wrappers and creators used for precise error messaging in the jbig2 package.
Package reader provides the stream readers used by the jbig2 segments decoder.
Package reader provides the stream readers used by the jbig2 segments decoder.
Package tests contains the tests and benchmarks for the JBIG2 decoder and encoder.
Package tests contains the tests and benchmarks for the JBIG2 decoder and encoder.
Package writer contains the data writer that implements io.Writer, io.ByteWriter and allows to write single bits.
Package writer contains the data writer that implements io.Writer, io.ByteWriter and allows to write single bits.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL