We are finally getting stuff flowing through and getting valid jp2 files from our ADV212s (they decode properly in jasper, openjpeg, kakadu)
We are seeing something weird, and think it's due to some input bit ordering, maybe you can help. In an image (12 bit precision set in the advs and 12bit camera) we see "sane" data, except the bright areas seem "clamped" (for lack of a better word) and the very dark areas are at ~max value.
Looking through the various datasheets there's mention of different byte ordering, so I'd like to see if you can tell me the (correct) lineup of bits for HIPI mode (32 bit input)
What we are doing is (Px1 = pixel 1, Px2 = pixel2):
Px1 - MSB = HDATA(31)
Px1 - LSB = HDATA( 20)
Px2 - MSB = HDATA(15)
Px2 - LSB = HDATA(4)
Is this the correct formating?