codec/mjpeg/jpeg.go: fixed conflicts

This commit is contained in:
Saxon 2020-01-03 19:41:23 +10:30
commit f67fcd35e7
1 changed files with 23 additions and 22 deletions

View File

@ -89,6 +89,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}
@ -142,8 +143,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,
@ -163,8 +165,7 @@ var (
99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99,
}
)
}
// Context describes a RTP/JPEG parsing context that will keep track of the current
// JPEG (held by p), and the state of the quantization tables.