OV7670 How to programmed it with Arduino Mega ?

Hi, i am beginner for Arduino, currently doing project using Ov7670 camera module as a security camera . I meet problem in finding source code online. Can anyone give guidelines about OV7670 with Arduino Mega 2560? Thanks a lots… :wink: