mmr

package
v0.0.0-...-fc0e231 Latest Latest
Warning

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

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

Documentation

Overview

Package mmr contains the jbig2 mmr decoder used to decode jbig2 encoded data segments.

Index

Constants

View Source
const (
	EOF = -3

	EOL = -1
)

Constants used be the MMR decoder.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

Decoder is the jbig2 mmr data decoder.

func New

func New(r reader.StreamReader, width, height int, dataOffset, dataLength int64) (*Decoder, error)

New creates new jbig2 mmr decoder for the provided data stream.

func (*Decoder) UncompressMMR

func (m *Decoder) UncompressMMR() (b *bitmap.Bitmap, err error)

UncompressMMR decompress the stream value using MMR method. As a result returns the bitmap.Bitmap.

Jump to

Keyboard shortcuts

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