transform

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: BSD-2-Clause Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultScalingList4x4Inter = [16]uint8{
	10, 14, 20, 24,
	14, 20, 24, 27,
	20, 24, 27, 30,
	24, 27, 30, 34,
}
View Source
var DefaultScalingList4x4Intra = [16]uint8{
	6, 13, 20, 28,
	13, 20, 28, 32,
	20, 28, 32, 37,
	28, 32, 37, 42,
}
View Source
var DefaultScalingList8x8Inter = [64]uint8{
	9, 13, 15, 17, 19, 21, 22, 24,
	13, 13, 17, 19, 21, 22, 24, 25,
	15, 17, 19, 21, 22, 24, 25, 27,
	17, 19, 21, 22, 24, 25, 27, 28,
	19, 21, 22, 24, 25, 27, 28, 30,
	21, 22, 24, 25, 27, 28, 30, 32,
	22, 24, 25, 27, 28, 30, 32, 33,
	24, 25, 27, 28, 30, 32, 33, 35,
}
View Source
var DefaultScalingList8x8Intra = [64]uint8{
	6, 10, 13, 16, 18, 23, 25, 27,
	10, 11, 16, 18, 23, 25, 27, 29,
	13, 16, 18, 23, 25, 27, 29, 31,
	16, 18, 23, 25, 27, 29, 31, 33,
	18, 23, 25, 27, 29, 31, 33, 36,
	23, 25, 27, 29, 31, 33, 36, 38,
	25, 27, 29, 31, 33, 36, 38, 40,
	27, 29, 31, 33, 36, 38, 40, 42,
}
View Source
var FlatWeightScale4x4 = [16]uint8{
	16, 16, 16, 16, 16, 16, 16, 16,
	16, 16, 16, 16, 16, 16, 16, 16,
}
View Source
var FlatWeightScale8x8 = [64]uint8{
	16, 16, 16, 16, 16, 16, 16, 16,
	16, 16, 16, 16, 16, 16, 16, 16,
	16, 16, 16, 16, 16, 16, 16, 16,
	16, 16, 16, 16, 16, 16, 16, 16,
	16, 16, 16, 16, 16, 16, 16, 16,
	16, 16, 16, 16, 16, 16, 16, 16,
	16, 16, 16, 16, 16, 16, 16, 16,
	16, 16, 16, 16, 16, 16, 16, 16,
}
View Source
var ZigZagScan8x8 = [64]uint8{
	0, 1, 8, 16, 9, 2, 3, 10,
	17, 24, 32, 25, 18, 11, 4, 5,
	12, 19, 26, 33, 40, 48, 41, 34,
	27, 20, 13, 6, 7, 14, 21, 28,
	35, 42, 49, 56, 57, 50, 43, 36,
	29, 22, 15, 23, 30, 37, 44, 51,
	58, 59, 52, 45, 38, 31, 39, 46,
	53, 60, 61, 54, 47, 55, 62, 63,
}

Functions

func AddResidual4x4

func AddResidual4x4(plane []byte, stride, offset int, b *Block)

func AddResidual8x8 added in v1.2.0

func AddResidual8x8(plane []byte, stride, offset int, b *Block8x8)

func BlockToScan

func BlockToScan(dst *[16]int32, b *Block)

func Clip1

func Clip1(v int32) byte

func Dequant4x4

func Dequant4x4(b *Block, qp int, skipDC bool)

func Dequant8x8 added in v1.2.0

func Dequant8x8(b *Block8x8, qp int, ls *LevelScale8x8)

func DequantChromaDC

func DequantChromaDC(b *ChromaDC, qp int)

func DequantLumaDC

func DequantLumaDC(b *Block, qp int)

func Forward4x4

func Forward4x4(b *Block)

func Forward8x8 added in v1.2.0

func Forward8x8(b *Block8x8)

func Hadamard2x2

func Hadamard2x2(b *ChromaDC)

func Hadamard4x4

func Hadamard4x4(b *Block)

func HadamardForwardDC4x4

func HadamardForwardDC4x4(b *Block)

func Inverse4x4

func Inverse4x4(b *Block)

func Inverse8x8 added in v1.2.0

func Inverse8x8(b *Block8x8)

func Quant4x4

func Quant4x4(b *Block, qp int, intra bool)

func Quant8x8 added in v1.2.0

func Quant8x8(b *Block8x8, qp int, qs *QuantScale8x8, intra bool)

func QuantChromaDC

func QuantChromaDC(b *ChromaDC, qp int, intra bool)

func QuantLumaDC

func QuantLumaDC(b *Block, qp int, intra bool)

func Residual4x4

func Residual4x4(dst *Block, src []byte, srcStride, srcOff int, pred []byte, predStride, predOff int)

func ScanToBlock

func ScanToBlock(dst *Block, scan *[16]int32)

func ZigZagIndex

func ZigZagIndex(i int) int

Types

type Block

type Block [16]int32

type Block8x8 added in v1.2.0

type Block8x8 [64]int32

type ChromaDC

type ChromaDC [4]int32

type LevelScale4x4 added in v1.2.0

type LevelScale4x4 [6][16]int32

func BuildLevelScale4x4 added in v1.2.0

func BuildLevelScale4x4(weightScale [16]uint8) LevelScale4x4

type LevelScale8x8 added in v1.2.0

type LevelScale8x8 [6][64]int32

func BuildLevelScale8x8 added in v1.2.0

func BuildLevelScale8x8(weightScale [64]uint8) LevelScale8x8

type QuantScale4x4 added in v1.2.0

type QuantScale4x4 [6][16]int32

func BuildQuantScale4x4 added in v1.2.0

func BuildQuantScale4x4(weightScale [16]uint8) QuantScale4x4

type QuantScale8x8 added in v1.2.0

type QuantScale8x8 [6][64]int32

func BuildQuantScale8x8 added in v1.2.0

func BuildQuantScale8x8(weightScale [64]uint8) QuantScale8x8

Jump to

Keyboard shortcuts

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