g3

package
v0.0.0-...-d61b845 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package g3 implements data encoding using the CCITT (renamed to ITU-T in 1993) fax standard in its Group 3, One-Dimensional (G31D) variant.

It follows the standard ITU-T T.4 (07/2003), section 4.1: https://www.itu.int/rec/T-REC-T.4-200307-I/en

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

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

Encoder is a Group 3 One-Dimensional fax encoder.

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

NewEncoder returns a ready-to-use Encoder, writing to w.

func (*Encoder) Encode

func (e *Encoder) Encode(m *image.Gray) error

Encode compresses the specified image using Group 3 One-Dimensional fax encoding.

If the resulting bit stream does not end on a byte boundary, zero bits are added as padding.

Jump to

Keyboard shortcuts

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