Ultra-low power high-dynamic range color pixel embedding RGB to rg chromaticity transformation