coefficient

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package coefficient adapts the f5coefficient primitive to the internal API used by the embed and extract capabilities. It is a thin, allocation-free forwarding layer that keeps the dependency on f5coefficient in one place so the capability packages do not each import it directly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStegoBit

func GetStegoBit(c int16) int

GetStegoBit returns the steganographic bit (0 or 1) carried by a DCT coefficient. See f5coefficient.GetStegoBit for the sign-based rule.

func IsUsable

func IsUsable(index int, c int16) bool

IsUsable reports whether the coefficient at index can carry data, i.e. it is non-zero and not a DC term. See f5coefficient.IsUsableCoefficient.

func ModifyCoefficient

func ModifyCoefficient(c int16) int16

ModifyCoefficient decrements the magnitude of a coefficient toward zero, the modification F5 applies when a carried bit must change. See f5coefficient.ModifyCoefficient.

Types

This section is empty.

Jump to

Keyboard shortcuts

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