Documentation
¶
Index ¶
- Variables
- func AddResidual4x4(plane []byte, stride, offset int, b *Block)
- func AddResidual8x8(plane []byte, stride, offset int, b *Block8x8)
- func BlockToScan(dst *[16]int32, b *Block)
- func Clip1(v int32) byte
- func Dequant4x4(b *Block, qp int, skipDC bool)
- func Dequant8x8(b *Block8x8, qp int, ls *LevelScale8x8)
- func DequantChromaDC(b *ChromaDC, qp int)
- func DequantLumaDC(b *Block, qp int)
- func Forward4x4(b *Block)
- func Forward8x8(b *Block8x8)
- func Hadamard2x2(b *ChromaDC)
- func Hadamard4x4(b *Block)
- func HadamardForwardDC4x4(b *Block)
- func Inverse4x4(b *Block)
- func Inverse8x8(b *Block8x8)
- func Quant4x4(b *Block, qp int, intra bool)
- func Quant8x8(b *Block8x8, qp int, qs *QuantScale8x8, intra bool)
- func QuantChromaDC(b *ChromaDC, qp int, intra bool)
- func QuantLumaDC(b *Block, qp int, intra bool)
- func Residual4x4(dst *Block, src []byte, srcStride, srcOff int, pred []byte, ...)
- func ScanToBlock(dst *Block, scan *[16]int32)
- func ZigZagIndex(i int) int
- type Block
- type Block8x8
- type ChromaDC
- type LevelScale4x4
- type LevelScale8x8
- type QuantScale4x4
- type QuantScale8x8
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 AddResidual8x8 ¶ added in v1.2.0
func BlockToScan ¶
func Dequant4x4 ¶
func Dequant8x8 ¶ added in v1.2.0
func Dequant8x8(b *Block8x8, qp int, ls *LevelScale8x8)
func DequantChromaDC ¶
func DequantLumaDC ¶
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 QuantChromaDC ¶
func QuantLumaDC ¶
func Residual4x4 ¶
func ScanToBlock ¶
func ZigZagIndex ¶
Types ¶
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
Click to show internal directories.
Click to hide internal directories.