I try to do my own image processing, I am using LibRaw only to extract the raw data and all kinds of info from the header. I do my own debayering and so on.
My problem is that after applying the WB from cam_mul and then the gamma curve (at 2.2) the image is sort of OK but washed out in DNGs and so and so (not very accurate and washed out) on different RAWs (from Canon and panasonic). If I multiply every pixel with the rgb_cam matrix, the image looks worse than if I don't do it. Also, multiplying with that matrix will sometimes make some dark colors to go negative, so I have to check for that as well (is this normal, or am I doing something wrong?)
Is there any magic step besides of what I am doing?
What I do is:
1. Load image
4. Do my own debayering
5. Do white balance
6. Convert to sRGB with rgb_cam
7. Tone curve
8. Display the image on screen (I am using SDL2)
Anything else I should be doing to get some similar to JPG colors?
I am not doing any other adjustments (yet), nor do I trim the levels to avoid the pinkish hue in over-exposed areas.