Extracting RAW histogram

Hi!
Is it straightforward to extract/build a RAW histogram (as a bitmap or even just as an array of values) from/using LibRAW?
I have a license for RawDigger and I'm using it for producing the histogram charts but I want to integrate this functionality into another application.
Thanks!
Assaf

p.s. I hope I'm posting in the right forum.

Forums: 

LibRaw do not calculates raw

LibRaw do not calculates raw data histogram.
So, you need to
1) unpack raw values using LibRaw::unpack()
2) (if needed) subtract black level (bias)
3) calculate histogram by you own code

-- Alex Tutubalin @LibRaw LLC