mirror of https://bitbucket.org/ausocean/av.git
codec/mjpeg/jpeg.go: componenting consts for SOF0 and SOS headers
This commit is contained in:
parent
323cc185dc
commit
31902f2448
|
@ -73,15 +73,15 @@ const (
|
||||||
|
|
||||||
// SOF0 (start of frame) header fields.
|
// SOF0 (start of frame) header fields.
|
||||||
const (
|
const (
|
||||||
sofLen = 17
|
sofLen = 17 // Length of SOF0 segment excluding marker.
|
||||||
sofPrecision = 8
|
sofPrecision = 8 // Data precision in bits/sample.
|
||||||
sofNoOfComponents = 3
|
sofNoOfComponents = 3 // Number of components (1 = grey scaled, 3 = color YcbCr or YIQ 4 = color CMYK)
|
||||||
)
|
)
|
||||||
|
|
||||||
// SOS (start of scan) header fields.
|
// SOS (start of scan) header fields.
|
||||||
const (
|
const (
|
||||||
sosLen = 12
|
sosLen = 12 // Length of SOS segment excluding marker.
|
||||||
sosComponentsInScan = 3
|
sosComponentsInScan = 3 // Number of components in scan.
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Reference in New Issue