@Danne, ah I see you're also trying to solve the puzzle, that's good, because I can't solve it

Others are free to join to solve this puzzle

I'm not sure, but I think there are 4 tags at play here:
BlackLevel
BlackLevelRepeatDim
BlackLevelDeltaV
BlackLevelDeltaHAll described in on page 26 to 28 in adobe dng 1.4 spec:
https://www.adobe.com/content/dam/acom/en/products/photoshop/pdfs/dng_spec_1.4.0.0.pdfI've read the pages over and over again, but I'm still not sure how black levels are calculated here.
But I think, you can set a global base black level with
BlackLevelAnd a matrix that's repeated with
BlackLevelRepeatDimWith
BlackLevelDeltaH you can put an offset per column, in the matrix described with
BlackLevelRepeatDimWith
BlackLevelDeltaV you can put an offset per row, in the matrix described with
BlackLevelRepeatDimWe have 4 channels, Red, Green1, Green2, Blue.
But how to setup the matrix ?
4 by 1, so we get the 4 channels in one row with 4 columns.
R |
G1 |
G2 |
BOr do we have to set it up as 2 by 2 , So we get two rows with two columns.
R |
G1G2 |
BOr maybe 1 by 4 will work too ?
R G1G2 BA lossless dng straight out off the 6d has a global black level of 2047:
The per channel offset has to be altered in a raw editor as follows:
R = -128 -> Effective black level of 2047 -128 = 1919
G1 = -256 -> Effective black level of 2047 -256 = 1791
G2 = -512 -> Effective black level of 2047 -512 = 1535
B = -1024 -> Effective black level of 2047 -1024 = 1024
Now we need to setup the 4 tags so that the above black levels per channel are in the dng file.
Maybe things get easier if we use a global black level of 1024, that case, the blue offset black level is 0
black level offset would become:
R = 896
G1 = 768
G2 = 512
B = 0
Anybody, ideas for the correct values for the following tags?
BlackLevel
BlackLevelRepeatDim
BlackLevelDeltaV
BlackLevelDeltaH