title: Auto white balancing for camera
body: <p>I am developing a sample camera and I am able to control image sensor directly. The sensors gives out Bayer image and I need to do show images as live view.</p>
  
  <p>I looked at debayering codes and also white balancing. Is there any library in C/C++ that can help me in this process?</p>
  
  <p>Since I need to have live view,  I need to do these things very fast and hence I need algorithms that are very fast. </p>
  
  <p>For example, I can change the RGB gains on sensor and hence I need an algorithm that act at that level, instead of acting on generated image.</p>
  
  <p>Is there any library that help to save images in raw format? </p>