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
ac23e126e3
commit
c42d58ea85
|
@ -73,15 +73,15 @@ const (
|
|||
|
||||
// SOF0 (start of frame) header fields.
|
||||
const (
|
||||
sofLen = 17
|
||||
sofPrecision = 8
|
||||
sofNoOfComponents = 3
|
||||
sofLen = 17 // Length of SOF0 segment excluding marker.
|
||||
sofPrecision = 8 // Data precision in bits/sample.
|
||||
sofNoOfComponents = 3 // Number of components (1 = grey scaled, 3 = color YcbCr or YIQ 4 = color CMYK)
|
||||
)
|
||||
|
||||
// SOS (start of scan) header fields.
|
||||
const (
|
||||
sosLen = 12
|
||||
sosComponentsInScan = 3
|
||||
sosLen = 12 // Length of SOS segment excluding marker.
|
||||
sosComponentsInScan = 3 // Number of components in scan.
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
Loading…
Reference in New Issue