Merged 12 bit camera code with new buffer/cache memory changes.