This paper presents a novel on-chip image processing architecture with CMOS image sensor, which applies APB bus to implement image processing. The proposed architecture presents the issues related to color image processing and gives the differences between the proposed architecture and the traditional image processing pipeline used in digital still cameras. Considering the hardware implementation and power requirement, this paper combines two efficient auto white balance method together to adjust the three independent color channels. By applied on FPGA, the proposed method can greatly enhance the image quality ofraw data. The results show that the proposed image processing architecture and the auto white balance algorithms work well on FPGA development board.