mirror of https://bitbucket.org/ausocean/av.git
codec/mjpeg/jpeg.go: comment global slices used for huffman table creation
This commit is contained in:
commit
b5f87481ba
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue