Unexpected behaviour of adjust_bl()

00000462 2019/07/01 12:02:48.502 041868 0000aab4 +int __thiscall CRawDecod::LoadRawFile(class CMemoryBitmap *,class CDSSProgress *,int)(rawutils.cpp:661)
00000463 2019/07/01 12:02:48.509 041868 0000aab4 +int __thiscall CRawDecod::IsRawFile(void)(rawutils.cpp:1134)
00000464 2019/07/01 12:02:48.517 041868 0000aab4 -int __thiscall CRawDecod::IsRawFile(void)
00000465 2019/07/01 12:02:48.542 041868 0000aab4 >Calling LibRaw::unpack()
00000466 2019/07/01 12:02:50.793 041868 0000aab4 >Processing Bayer pattern raw image data
00000467 2019/07/01 12:02:50.818 041868 0000aab4 >Extracting real image data (excluding the frame) from RawData.raw_image
00000468 2019/07/01 12:02:50.843 041868 0000aab4 >Before adjust_bl() C.black = 2048.
00000469 2019/07/01 12:02:50.854 041868 0000aab4 >First 10 C.cblack elements
00000469 2019/07/01 12:02:50.854 041868 0000aab4 > 0, 0, 0, 0
00000469 2019/07/01 12:02:50.854 041868 0000aab4 > 0, 0
00000469 2019/07/01 12:02:50.854 041868 0000aab4 > 0, 0, 0, 0
00000470 2019/07/01 12:02:50.866 041868 0000aab4 >Subtracting black level of C.black = 0 from raw_image data.
00000471 2019/07/01 12:02:50.878 041868 0000aab4 >First 10 C.cblack elements
00000471 2019/07/01 12:02:50.878 041868 0000aab4 > 0, 0, 0, 0
00000471 2019/07/01 12:02:50.878 041868 0000aab4 > 0, 0
00000471 2019/07/01 12:02:50.878 041868 0000aab4 > 0, 0, 0, 0
00000472 2019/07/01 12:02:50.900 041868 0000aab4 >Using Daylight White Balance.

Note that C.Black was set to zero when adjust_bl() was called which I don't think is correct.

Please could you clarify this for me?

Forums: 

It isn't a problem with

It isn't a problem with libraw :) This turned out to be an end user who had forgotten that he'd set an option that results in imgdata.params.user_black being set to zero with the result you saw! He was complaining that Black Level subtraction wasn't being done when he had in fact chosen to not do that!

Ho-hum! Sorry to bother you

David Partridge