A digital photometric survey of the magellanic clouds: First results from one million stars