摘要 |
In one embodiment, a method generates an output image having a reflection special effect at the time of capture of an original image having a first area. The output image is generated using a memory having a capacity limited to storing a single image and a buffer having a capacity limited to storing one line of the original image. The first area of the original image is stored in the memory at memory locations corresponding with an unmodified region of the output image and in the buffer. Modified pixels and addresses are generated. The modified pixels are stored in the memory. Each modified pixel is generated from one or more pixels of the first area stored in the buffer. Addresses for storing each modified pixel are generated according to a reflection mapping function and an offset mapping function. The output image is fetched from memory and rendered.
|