codec/mjpeg/jpeg.go: comment global slices used for huffman table creation

This commit is contained in:
Saxon 2019-12-29 22:16:09 +10:30
commit b5f87481ba
1 changed files with 23 additions and 22 deletions

View File

@ -57,6 +57,7 @@ var (
errReservedQ = errors.New("q value is reserved")
)
// Slices used in the creation of huffman tables.
var (
bitsDCLum = []byte{0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0}
bitsDCChr = []byte{0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0}
@ -110,8 +111,9 @@ var (
0xea, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8,
0xf9, 0xfa,
}
)
defaultQuantisers = []byte{
var defaultQuantisers = []byte{
// Luma table.
16, 11, 12, 14, 12, 10, 16, 14,
13, 14, 18, 17, 16, 19, 24, 40,
@ -132,7 +134,6 @@ var (
99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99,
}
)
// Ctx describes a RTP/JPEG parsing context that will keep track of the current
// JPEG (held by p), and the state of the quantization tables.