Closed Alexey-Danilchenko closed 5 years ago
Thank you a lot!
I have these values for bytes 33 and 34:
33 | byte | 1 | raw small = 41, raw big = 40, craw small = 41, craw big = 40 |
---|---|---|---|
34 | byte | 1 | raw small = 00, raw big = 00, craw small = 03, craw big = 03 |
following values are 4 bits: at 33, number of plane is 4, OK at 33+4bits is always 1 for small, 0 for big. extra bits ? at 34 is always 0. CFA ? at 34+4bits 0 (raw) or 3 (craw). seems wavelets levels, yes
Just to make it clear the information I provided is not a guess from a data and is based on internals of CRX decoder.
33+4bits is CFA layout. It will be different for different type of raw cameras and images. The values are 0..3 (at least those are the ones that CRX decoder uses).
The meaning for 34 (first 4 bits) I already specified - they may not exist in raw files yet but they are there. They are used by decoder to calculate the sample size in bits (that may be larger than raw bits).
ok. do you confirm structures of ff01, ff02 and ff03 headers ?
Correct structure of CMP1 tag (terminology and structure from internals of CRX decoder). In terms of CRX decoder this CMP1 is essentially image header for encoded image (exists for each image track). Decoder uses CMP1 data to decode image track.
CMP1