Documentation
¶
Overview ¶
Package transform implements VP9 inverse transforms (spec §8.7.1). Sizes 4/8/16/32; kernels DCT-II and ADST (no 32×32 ADST in VP9). Integer arithmetic: constants scaled by 2^14; drs = (v+(1<<13))>>14. 2-D pass: rows → >>4 → transpose → cols → >>4 → transpose.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DCOnlyValue ¶
DCOnlyValue returns the uniform output value of a DCT_DCT inverse 2-D transform when only the DC coefficient (after dequantization) is non-zero. Identical for all block sizes 4×4 … 32×32.
func InvTransform2D ¶
InvTransform2D applies the inverse 2-D transform in-place. coeffs is bs×bs int16, row-major. bs ∈ {4,8,16,32}; bs=32 forces DCT_DCT.