Documentation ¶
Index ¶
- Variables
- func DCT1D(input []float64) []float64
- func DCT2D(input [][]float64, w int, h int) [][]float64
- func DCT2DFast256(input *[]float64) (flattens [256]float64)
- func DCT2DFast32(input *[]float64) (flattens [64]float64)
- func DCT2DFast64(input *[]float64) (flattens [64]float64)
- func Rgb2Gray(colorImg image.Image, pixels []uint8) []uint8
Constants ¶
This section is empty.
Variables ¶
View Source
var FastYCBCR = true
Functions ¶
func DCT1D ¶
DCT1D function returns result of DCT-II. DCT type II, unscaled. Algorithm by Byeong Gi Lee, 1984.
func DCT2DFast256 ¶
DCT2DFast256 function returns a result of DCT2D by using the separable property. DCT type II, unscaled. Algorithm by Byeong Gi Lee, 1984. Fast uses static DCT tables for improved performance. Returns flattened pixels.
func DCT2DFast32 ¶
func DCT2DFast64 ¶
DCT2DFast64 function returns a result of DCT2D by using the separable property. Fast uses static DCT tables for improved performance. Returns flattened pixels.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.